actionscript 3 - Where can I define a class globally? -
i have class, , i'd create available utilize anywhere within flash project. should set it? ideally, it'd in separate actionscript file.
if actionscript 3 project using classes, can create global variable using public static :
//myclass.as bundle { public class myclass { public static var myvalue = 3; } } //arbitrary.as bundle { public class arbitrary { function arbitrary():void { trace(myclass.myvalue); //3 } } }
you in every project, follow these steps enable.
click actionscript 3.0 settings... click source path folder icon, select want src folders.
actionscript-3 flash
No comments:
Post a Comment