Problem with export classes frame

Hi! Well, briefly (fla attached):

  • there’s a movie clip in the stage (box)
  • box has some code like this inside:

stop();

var holder:Sprite = new Sprite();
holder.mask = masker;
addChild(holder);

From the stage main timeline, frame 5, there’s a command like this:


trace(box);
trace(box.holder);

it traces:


"[object box_1]"
"[object Sprite]"

THE PROBLEM:

as soon as I set the export classes frame to something different form 1 (for ex. 4), the trace actions traces this:


"[object MovieClip]"
"undefined"

So, THE QUESTIONS:

  • Why are the trace different?
  • How can I reference box.holder from the stage main timeline when I export classes to a frame different from 1?

Please help! :slight_smile: