PDA

View Full Version : question about a tutorial



skytwist
June 24th, 2007, 08:29 AM
in "Animating Dynamic MovieClips in AS3" tutorial on page 2,
when we are in 'function AddCircle' our MC is 'newCircle' but in the following function 'zoomCircle' this MC is changed to 'circleMC'. Why there is a name change?
I am new to AS3

Chesso
June 24th, 2007, 08:46 AM
Take a closer look at the function.

It accepts a parameter that will result into a reference (I assume) to that movieclip.

Think of this:

var myCircle:MovieClip = SomeClass();
this.addChild(myCircle);

var myOtherCircle:MovieClip = myCircle;

myOtherCircle will reference myCircle.