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!

Horizontal ticker 1

Status
Not open for further replies.

monkeymeister

Programmer
Mar 17, 2005
58
GB
Does anybody know how to create a simple horizontal ticker? Or where to download a free one? I have a little Flash experience and have managed to create a vertical ticker, but I'm not sure how to do this.

Any help would be really appreciated.


Cheers,

Mike
 
Code:
function ticker() {
	//cut off first character
	char1 = this['ticker_text'].text.substr(0, 1);
	//get rest of phrase that's left
	rest = this['ticker_text'].text.substr(1);
	//add them back together with the first character baclk on the end
	this['ticker_text'].text = rest+char1;
}
//make some text
this.createTextField('ticker_text', 10, 100, 150, 350, 20);
this['ticker_text'].text = '+++this is a horizontally scrolling phrase+++  ';
//start ticker
this.onEnterFrame = ticker;
//
stop();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top