View Single Post
Old 06-24-2012, 12:48 PM   PM User | #1
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
Flash movie clip classes.

I'm working on a flash project where I have a bunch of different movie clips that should all have the same behavior but the movie clips themselves are different.

I have 15 different movie clips with any 3 at a time being displayed. They should all have the same onclick event - (basically they change colour depending on which colour is selected)

In the mockup I did I had to create a separate class for each movie clip that extends a common based class (that extends movie clip) - is that really how its supposed to be done? It wouldn't let me set the same class for each of them.

Also, what is the best practice way of passing data between objects? I'm not happy with the way I'm currently doing it.

Palettes (also a movie clip with a custom class) need to know which object is currently selected and objects need to know what the currently selected palette is.
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote