Adding an object to a specific frame in a dynamically created movie clip
Hello,
I have created an mc in the library for a specific purpose and I can load it dynamically. Its shape is a square. The square works fine with labels for up, down, over etc.
For a new project I will need to have a shape that needs to be a randomly sized rectangle. How do I build the movie clip, with javascript, so that it has 4 frames and the labels up, over etc, in it?
I believe if I could do this then I could just make it work the same as the square built in the authoring environment.
I have read the createjs movie clip definitions and I can see addchild(shape) but I can't understand how to add shape1 to frame 1, shape2 to frame 2 etc.
Any help would be appreciated.
Ron
