I am after some pointers in respect to designing, and organizing class structures. Sorry if this is a bit verbose but I’m trying to clearly explain my issue and maybe I lack the right vocabulary.
I have a Map with markers placed on it in an array
that associates with an instance of the marker.
eg declared with code like
public var myArray:Array = new Array();
var MyObjView:MyViewClass = new MyViewClass;
Ok I can iterate the Array and manipulate the Instances as I desire
but:
Now I want a second view of the Object however represented in a different manner
eg
var MyObjView2:My2ViewClass = new My2ViewClass
I can associate My2ViewClass with myArray quite easily via declaring myArray as Global form the initiation,
//
However I cannot refer to both MyObjView MyObjView2 together in the same class via myArray.
I am eventually going to have 7 views of the document,
Currently Im considering building a true GLOBAL document class that holds all the statuses of the objects and then plague every instance with an event handler to update its situation in the View.
SO My question is , whats a better or more efficient way of doing this?
and: Is there an appropriate Doc/View Architecture in Flash for this already?
Thx