_global variable in actionscript 3.0

here is a simple class that help global vars in actionscript 3.0

package {
public class globals {
public static var vals:Object = new Object();
}
}

now you can access the globals.vals any where from your movie.

globals.vals.red = 0xFF0000;
trace(glo.bal.red);

0 comments:


PHP developer Cochin |PHP developer Kerala | PHP developer India | Flash developer/programmer Cochin | Flash developer/programmer Kerala | Flash developer/programmer India | web programmer kerala |web programmer Cochin |web programmer India |web developer kerala |Web developer Cochin | Kerala PHP | PHP freelancer| flash actionscript freelancer