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