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
Post a Comment