PDA

View Full Version : Easing of TextArea


sanderH
07-13-2004, 07:23 PM
Hi,
I just followed the "Loading Extrenal XML formatted content into flash MX 2004" tutorial. Thnx Neil :D

Now I was wondering if it is possible to "ease in" a textArea?
I tryed to do it with an:
myTextArea.onEnterFrame
but the frame disapears?

could anybody put me into the right direction?
thnx

sanderH
07-13-2004, 08:34 PM
Ok I found a solution
I don't know if this is a decent way to do it, but it works

nInterval = setInterval(moveArea, 10);
function moveArea():Void {
friction = 0.2;
targety = 200;
ydif = targety-_root.myText._y;
_root.myText._y = _root.myText._y+ydif*friction;
if (Math.abs(ydif)<0.500000) {
_root.myText._y = targety;
clearInterval(nInterval);
}
updateAfterEvent();
}

regards

Tink
07-14-2004, 05:01 PM
see this thread

http://www.actionscript.org/forums/showthread.php3?t=50291&highlight=tween