I am trying to use setChildIndex() to bring the current movieClip to the front.
I have the following code on the first frame of the TimeLine.
setChildIndex(currentMovieClip,numChildren – 1);
And am getting the following errors.
Scene 1, Layer 'Layer 2', Frame 1, Line 20 1093: Syntax error.
Scene 1, Layer 'Layer 2', Frame 1, Line 20 1084: Syntax error: expecting rightparen before 1.
Should I be using stage or something else is wrong?
Thanks