Category Archives: ActionScript

AS3 – Access root from a movie clip

Use like this to access root from a movie clip MovieClip(root).someThing; For example suppose you have a text box in root with instance name txtAddress in your root. If you need to set the text of txtAddress from a movie … Continue reading

Posted in ActionScript | Tagged , , | 4 Comments

ActionScript : Find code execution time

Using the script below you can find how much time it took to execute your ActionScript code var startTime:Date = new Date(); // execute your code here var endTime:Date = new Date(); trace("Time take to execute the code "+String(endTime.getTime()-startTime.getTime())+" milliseconds"); … Continue reading

Posted in ActionScript, Flash/Flex, Web development | Tagged , , | Leave a comment