actionscript - How to edit a _root function in Flash Pro CS 5.5 -


i need create global function in .fla file. understand should put in _root.

i'm having trouble finding how edit _root in flash pro cs 5.5.

sorry naive question.

this bad idea, global functions pollute global scope, make unextendable , unscalable code not play nice other code.

that said, inn actionscript 2 following should work:

_root.myfunctionname = function(){     trace("do whatever here");     //your actions };  // can call _root.myfunctionname; 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -