Placing MC's Dynamically onstage
In need of some help.
I’m Trying to place MC’s dynamically from the library using buttons that are onstage into a container MC placed on stage at run time using addChild.
My problem is on the placement of the MovieClips within the container MC after the user has clicked the appropriate button(s).
What I’m looking for is a way that I can register when a mc has been placed within the container mc onstage, so when a new mc is placed in the container it offsets the placement on the y axis.
I’ve have tried using conditional ‘if’ statements etc but nothing seems to work as it should, especially when there might be 20+ buttons placing 20+ mc’s
So my question is….does anyone know of any tutorials that might help me with a solution.
Something like this might help... Listens for when a clip has been added to the stage...
var test:MovieClip = new MovieClip();
trace("this had been added");
Click Here to Expand Forum to Full Width