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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BigBadDave...question about sliding text

Status
Not open for further replies.

Firehawk734

Technical User
Jan 22, 2002
155
US
You sent me a file with script on a movie clip containing txt that would slide across the screen and gradually stop.

How do you go from stop to a graduall fast pace?

The text on the fla u gave me was "this is how we do it"

or something like that hehe. Thanks
 
ask wangbar he would be a better bet (I only know half as much) Regards
David Byng
spider.gif

davidbyng@hotmail.com
 
A really simple way would be to do something like:

onClipEvent(enterFrame){
clip._x+=speed;
speed++;
}

or

onClipEvent(enterFrame){
clip._x+=speed;
speed*=1.1;
}

But you'll have to be careful to stop the animation at some point after the clip has left then stage area.

Maybe...

if(clip._x<550){
//move code
}

or use removeMovieClip to get rid of it when it's no longer visible.

..will be enough to get what you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top