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!

Scrolling Text (marquee)..

Status
Not open for further replies.

basepointdesignz

Programmer
Jul 23, 2002
566
GB
Hi,

I know that this subject has probably already been covered many, many times but I would like to create a scrolling marquee, much like on the About box in the help menu of Flash itself..

I know how to do this in HTML using <MARQUEE> etc but as a newbir to Flash I was wndering how to do it and change the speed, direction and height, etc using ActionScript. Is there a way to add HTML to the script?

Cheers,

Paul @ basepoint designz..


basepoint designz
renegade@tiscali.co.uk
 
check out
&quot;I want scrolling bar with mouse over links&quot; posted today.

aspro
 
Can't that effect be achieved by simply having a motion tween that loops?

luds
 
Try this - it's completely self contained just place it in frame one of the main timeline:

Code:
//cut the message up
doMarquee = function (message) {
	short = message.slice(0, 1);
	long = message.slice(1);
	return (long+short);
};
//message content
this.createTextField('display', 1, 100, 100, 400, 20);
marquee = &quot;This is my scrolling message... &quot;;
//run script
this.onEnterFrame = function() {
	marquee = doMarquee(marquee);
	display.text = marquee;
};
 
Or you can try these components...



Or one of these...


Regards,

cubalibre2.gif

I'm Bill Watson's biggest fan!
 
Hi,

Thanks guys and gals - I'll try them all..

Cheers,

Paul @ basepoint designz..


basepoint designz
renegade@tiscali.co.uk
 
Hi,

I've tried all of the available downloads but they all scroll the text either left-to-right or right-to-left - I would like the text to scroll upwards - a lot like the about Flash page in the help menu of Flash itself, where the text fades in and scroll upwards in a box..

Is there way to do this or even add HTML to the script so I can use the <marquee> tag?

Cheers,

Paul @ basepoint designz..


basepoint designz
renegade@tiscali.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top