Update Dynamtic TextField

Posted by srfc35 
Update Dynamtic TextField
September 30, 2008 12:37PM
Hello,

I have a dymamic textfield inside a movieClip and a FlashEff instance attached to this textfield.
I success in using show or hide fonction, but i can't update dynamic textfield without apply a transition.
Is it possible to change textfield data directly ?

Here my function ::

function updateData ():void
{
myClip.myDynamicText.text = "new value";
myClip.effText.target = myClip.myDynamicText;
myClip.effText.transitionEffect("show");
}

Thanks in advance
Re: Update Dynamtic TextField
October 01, 2008 06:51AM
You need to have the isTargetVisibleAtEnd property set to true before you do that.

myClip.effText.isTargetVisibleAtEnd = true;
myClip.effText.target = myClip.myDynamicText;

function updateData ():void
{
myClip.effText.target.text = "new value";
myClip.effText.transitionEffect("show" ) ;
}

Just make sure you embed the new characters too.
Re: Update Dynamtic TextField
October 01, 2008 03:50PM
thanks a lot. It's good I begin to understand the flasEff mecanic.
Sorry, you do not have permission to post/reply in this forum.