Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ticker tape

Status
Not open for further replies.

Crundy

Programmer
Jul 20, 2001
305
GB
Hello,
Does anyone know how to to make a marquee style ticker tape which takes the text from an external text file? C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
 
Regards,

oldman3.gif


Don't worry, if my reply is wrong,
Bill Watson will clean it up for me!
 
Thanks for that. I've downloaded the ticker component, but I can't get it to work.

I have a movie with an instance of the ticker component called myTicker on it. I right-clicked on frame one of the movie and selected actions, and then added the below code in expert mode:

myTicker.loadVariables("myText.txt");
myTicker.onData = function() {
this.setText(this.myVariable);
}

I published the movie and created a text file called myText.txt containing:

&myVariable=This is a test for my ticker tape

and saved it in the same directory. The scroller doesn't work though. it just scrolls a small square.

This hapens even if I change the above code to:

myTicker.setText("Hello there")

What am I doing wrong? C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
 
try not adding any code until you get it to work.....just alter the variables through the property inspector
 
i just had a look at the methods and properties of the component

to add messages dynamically the syntax is

myticker.addMessage("my message");

get a full list from the actions panel and check the examples in the reference
 
No Luck. I get this now:

Scene=Scene 1, Layer=Ticker component, Frame=1: Line 16: Statement must appear within on/onClipEvent handler
myTicker.addMessage("Hello there!! this is a test")
C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
 
I dont know what you are doing wrong.
Anyway try this
open a new file
At its simplest and without any actionscript just drag a copy of the component from the component panel onto the stage
click it and open up properties
click the first line in the properties click the expand button and enter the message(s)
set font, color etc and test movie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top