When I have a movie clip that uses some class that has a
all refrences to that variable in that class are common.
suppose I use this to configure some aspect of the movie
say a moive gets a variable in flashvar that determines a
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 ?
If I am reading this correctly, you basically want a class
that can be both
shared and separate. First, ditch the notion of using static
break oop and just generally suck in many ways. I believe
what you're after
is a singleton, but one that has been turned into a factory -
ie that can
allow multiple instances of itself.
I'd also suggest you look at the 'Registry Pattern', which I
think would be
a good solution here.