hi,
I guess you'll have to make sure that the animation is at the frame you want it to be. For example, suppose you want the last frame:
code:
animation_mc.onEnterFrame = function()
{
if (this._currentframe == this._totalframes)
{
// show text here
delete this.onEnterFrame;
}
};
The piece of code you have only waits one frame, so I guess it's pretty useless.
It's almost the same as
code:
for (i = 1; i < 10; i++)
{
mc = ciBox.duplicateMovieClip('ciBox' + i, this.getNextHighestDepth());
mc.txt.text = (i + 1) * 0.1;
}
You can verify that with this piece of code attached to the first frame of a timeline with more frames:
code:
this.onEnterFrame = function()
{
trace(_currentframe); // outputs 2
delete this.onEnterFrame;
};
trace(_currentframe); // outputs 1