You're just on the verge of breaking into a coding architecture question here, which is good. My suggestion to avoid this issue is to get away from generic objects as you are doing here and define everything as a class.
class MySpecialClass extends MovieClip So you'll never ever use new Object(). You'll use new MySpecialClass() instead. Then, you'll want to start thinking in terms of a design pattern - even just a very simplified version of MVC. For example, have a data class that manipulares data (i.e. a Model class) - have a view class that checks what the value is, and changes the MySpecialClass instances accordingly. How to make that happen? Have a controller class listen to those instances for when they are clicked on, and when they are, get the value from the model, and tell the MySpecialClass instances to change visually. Jason Merrill Bank of America Global Learning Learning & Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -----Original Message----- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Geografiek Sent: Friday, February 26, 2010 12:12 PM To: Flash Coders List Subject: [Flashcoders] (no subject) Hi list, Suppose I have an associative array like this: var myArray:Object = new Object(); myArray.item1 = item1; myArray.item2 = item2; myArray.selected = false; item1 and item2 are 2 mc's living on the stage. Selected is a newly created property on myArray. Now I want to change myArray.selected by clicking on one of both item and change the appearance of both items based on the value of myArray.selected. Is this possible? In other words: myArray knows it contains item1 but does item1 have a way of knowing it is part of myArray. Thanks, Willem van den Goorbergh =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders