From: minzojian on
at last,i have to use thes delay method to solove this problem.
code like this.
[B][I]
import flash.utils.Timer;
import flash.events.*;
mc.stop()
var tim:Timer=new Timer(0);
tim.addEventListener(TimerEvent.TIMER,dosth)
function goNext(evt:Event){
mc.nextFrame()
tim.start()
}
function dosth(evt:Event)
{
if(mc.currentFrame==2)
{
mc.tablelimit0.text="hello"
}
}
nextBT.addEventListener("click",goNext)
[/I][/B]

From: NedWebs on
If all of the code you have is in the first frame, then it has processed long
before anything ever moved to the second frame.

What you could try is to have a variables layer that extends both frames, and
assign the value of the textfield text to that variable. Make the textfield
associate with that variable (in the properties section for it), So when the
movieclip moves to the second frame the text field should automatically acquire
the variable value.

I may not have interpretted your problem correctly, so you might have to
clarify things if I missed the target.


From: minzojian on
thanks Ned,it could be a good solution for AS1 or AS2,but textfield variable
property is not supported in AS3 anymore.so,i am thinking as if i have to add a
Timer object to make a short delay till the objects initialized completely. or
any other bright ideas?