Create nested clips

I need to create 2 video clips: clipA is the cover movie. clipB - container movie clip. There is a 15 pixel spacing between them. clipB is then passed to another function that adds other elements to it (buttons, graphics, etc.). What's the best way to do this?

0


a source to share


1 answer


var clipA:MovieClip = new MovieClip();
var clipB:MovieClip = new MovieClip();

clipB.x = clipA.x + clipA.width + 15;

this.addChild(clipA);
this.addChild(clipB);

otherFunction(clipB);

      



I'm not entirely sure what you are going with this, but it seems like a basic question like this.

0


a source







All Articles