Tag Archives: Flash

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

Disable right click menu in Flash (swf files)

There are times when you have to disable the default right click menu on flash files on your webpages. Uza has a suggested a method to completely disable the flash right menu. Check the article link at his website http://www.uza.lt/blog/2007/08/solved-right-click-in-as3 … Continue reading

Posted in Flash/Flex | Tagged , , , , , | 4 Comments