# DocView Design Type Issue,

**URL:** <https://forum.kirupa.com/t/docview-design-type-issue/319782>\
**Category:** flash\
**Created:** [March 4, 2011, 4:55am UTC](https://forum.kirupa.com/t/docview-design-type-issue/319782 "2011-03-04T04:55:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ColinDavies](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@ColinDavies](https://forum.kirupa.com/u/ColinDavies)\
**Post date:** [March 4, 2011, 4:55am UTC](https://forum.kirupa.com/t/docview-design-type-issue/319782/1 "2011-03-04T04:55:05Z")

</div>

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

```auto
 
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

```auto

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
