0

I need to create 2 movie clips: clipA is be a wrapper movieclip. clipB is a container movieclip. There is about 15 pixels spacing between them. clipB is then passed to another function which add other elements to it ( buttons,graphics etc). Whats the best way to get this done ?

Iris
  • 1,321
  • 4
  • 17
  • 19

1 Answers1

0
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 quite sure where you're going with this though, it seems like such a basic question.

quoo
  • 6,237
  • 1
  • 19
  • 36