Skip to main content
July 3, 2008
Question

dynamic scrolling text

  • July 3, 2008
  • 3 replies
  • 424 views
hi guys,
i made a continiously scrolling banner using dynamic text box and tweening it in timeline.
updating the text in the textbox with new text using the following code worked only once. as the movie loops, again the default text is seen.
This topic has been closed for replies.

3 replies

Inspiring
July 3, 2008
I think I did not understand you
Inspiring
July 3, 2008
It was a question to rauniyar_dinesh. What is an expected behavior?
Inspiring
July 3, 2008
What do you expect it to do? Where the new text is coming from?
Inspiring
July 3, 2008
Hi,
I tried to do what you said and it is working,
I made a movie clip named m1 inside it movie clip named m2 and inside it the dynamic text insde it named Text and I had animated m2 using the time line.

I created a button to change the text named B1 and this is the code and it is working:

m1.m2.Text.text="5555";
B1.addEventListener(MouseEvent.CLICK,ff);
var i:Number=new Number;
function ff(event:MouseEvent) {
//to change the text
if (i==0) {
m1.m2.Text.text="444";

} else {
m1.m2.Text.text="43333334";
}
i++;
}