main_Player.txtScroll.tf.x = 0;
main_Player.txtScroll.tf.y = 0;
main_Player.txtScroll.x = 166;
main_Player.txtScroll.y = 182;
main_Player.txtScroll.width = main_Player.txtScroll.tf.width;
scrollWords();
function scrollWords():void {
main_Player.txtScroll.tf.wordWrap = false;
main_Player.txtScroll.tf.autoSize = TextFieldAutoSize.CENTER;
if(main_Player.txtScroll.tf.width >= 136) {
goForwardTween(tf);
}
}
function goForwardTween(tf:TextField):void {
TweenMax.to(tf, 3, {x:248, delay:1, onComplete:goBackTween, onCompleteParams:[tf] });
}
function goBackTween(tf:TextField):void {
TweenMax.to(tf, 3, {x:-tf.width, delay:1, onComplete:goForwardTween, onCompleteParams:[tf] });
}
Hi guys haven't been here in awhile here goes .....
...basically what I have is a TextField inside a MovieClip, and if the text inside the TextField exceeds a certain size it moves back & forth so that the far right of the MovieClip moves to the far left of the mask and far left of the MovieClip moves to the far right of the mask.
But for some reason I cant seem to get it to move
it populates the TextField ok .. but wont TweenMax.to functions even if the text is larger than the mask.
hope someone can help...
Steven