1 Reply Latest reply on Mar 12, 2008 7:23 AM by Newsgroup_User

    scope of  static variables

      When I have a movie clip that uses some class that has a static variable,
      all refrences to that variable in that class are common.

      suppose I use this to configure some aspect of the movie (e.g. color).
      say a moive gets a variable in flashvar that determines a color,
      a config class holds a static color variable
      and other classes use that variable to render different shapes with that color.

      now if this swf is loaded into another swf more then once then the confic class seems to be shared between both.

      where would you recommand saving configuration data that is passed into a swf so that it will be common to all the classes used in that movie clip but distinct between multiple instances of that movie clip ?