[F8] Adding button behavior on the fly
Hi all,
Can anyone suggest the best way to approach the following?
I currently am trying to load an array of movieclips (one on top of the other):
Code:
createEmptyMovieClip("content_holder_mc", this.getNextHighestDepth());
content_holder_mc._x = 21
content_holder_mc._y = 121
for (var i = 0; i<return_query.length; i++) {
content_holder_mc.attachMovie("blueMovie", "blue"+i, content_holder_mc.getNextHighestDepth(), {_y:content_holder_mc._height+5, _x:5+i});
}
This all works fine however is there away of adding an onRelease method to the newly attached movieclips rather than adding the code inside the movieclip itself?
Cheers