-
Marquee that loads an external text
Hi,
Did someone know which is the script to make a marquee that loads an external .txt file text? So I can easily update the text of the marquee?
Also, how can I control the size, font, color and the speed ?
I´m using Flash MX.
Thanks in advance.
DAVID
-
FK'n_dog
msg1 is the <instance name> of a dynamic textfield
this code is on the main timeline, same frame as textfield -
Code:
function marquee(){
lv = new LoadVars();
lv.onLoad = function(){
msg1.text = lv.txt;
len = msg1.text.length;
tickSpeed = setInterval(ticker,100); // 100ms is the speed
};
//lv.load("ticker.txt?"+ new Date().getTime()); // test online file
lv.load("ticker.txt"); // test local file
};
function ticker(){
first = msg1.text.substring(0,1);
second = msg1.text.substring(1,len);
msg1.text = second+first;
updateAfterEvent();
};
// to stop and reset the marquee, end the setInterval with -
clearInterval(tickSpeed);
msg1.text = "";
// and start & restart with -
marquee();
the text file format is -
&txt=... you're ready, Momma ? ... make sure you don't type too fast this time, i mean this has to be the one...this has to be the one with all the right words in it&
-
It works Great !!!!
My friend: ... Xiexie again!!
C´ya.
DAVID
-
Huygens to Titan
I tried this and its not loading. Does someone have an example I can use? I just need something quickly.
THanks
PC
All out of Honey Buffers, so i grabed a few Goose Heads
-
Flashmatics
you can download a xml ticker from my library
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|