all groups > macromedia flash sitedesign > august 2003 >
You're in the

macromedia flash sitedesign

group:

Can I Make Text Scroll Automatically?


Can I Make Text Scroll Automatically? PJ_Metzger
8/13/2003 3:40:21 AM
macromedia flash sitedesign: Hi!

Does anyone know how I can make a text field scroll automatically? What I'm looking to do is have a single lined text block scroll automatically like a "Stock Ticker" so that i can have links to different sections of my site scroll across. Then when people mouseover, the text stops so they can click on it...Any ideas will be appreciated!

Thanks a lot!
Peter

Re:Can I Make Text Scroll Automatically? manny-MMTS
8/13/2003 8:44:37 PM
You may take the following steps:

1) Create a movie clip which contains text that motion tweens from right to left
2) Drag that movie clip on the stage. Name the instance of your movie clip.
3) Create a mask over the movie clip. The dimension of the mask is up to you. Just make sure that the height of the text is covered.
4) make an invisible button which has the same size as your mask and drag it on top of your mask layer. Creating a separate layer for the invisible button.
5) Attach a the following action in your invisible button.

on (rollOver) {
_root.instancename.stop();
}
on (rollOut) {
_root.instancename.play();
}
on (release) {
getURL("http://www.someURL.com");
}


Hope this helps...

AddThis Social Bookmark Button