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!

How to make text move in a specific manner?

Status
Not open for further replies.

DigitalJepoy

Technical User
Feb 2, 2003
9
PK

Hello everyone...Im a newbie here and in using flash so please bear with me... I need some tips on how to make a text or image to move from right to left and appears back from the right stage..it exits from the left and appears back on the right..like the matrix screensaver..only different is that its vertical..i need to make my symbol move horizontal..thanks..
 
1) Type out your text
2) Convert it to vertical
3) Drag it out of the Movie window to the right
4) On the timeline, in the Frame that contains the text, right click, and create a motion tween.
5) Now select the frame(right click) where you want the tween to end, say Frame 15 ( This can easily be changed later).
6) select Insert KeyFrame
7) Highlight the keyframe you just created
8) Now drag the text to the left side of the movie outside of the window.
 
I would suggest using actionscript. Create your text in a Movie Clip. Now take that Movie Clip(MC) from the Library and place it on the main stage just off to the right side. Now right click the MC and click on actions.

Make sure that your action panel is set to Expert mode. There is a little black arrow type triangle to the right. Click on it and make sure that Expert Mode is checked, if not click on it.

Now in the actionscript text area, type in this.

onClipEvent ( load ) {
startPoint = 550; //this is where the clip will start
endPoint = 0; //this is where the clip will end, and restart to the startPoint.
speed = 5; //this is how many pixels the text will move each frame.
}

onClipEvent ( enterFrame ) {
this._x -= speed; //you are telling the MC to move to the left 5 pixels each frame.

if (this._x <= endPoint ) { //if your clip goes beyond the end point.
this._x = startPoint; //go back to the starting point.
}
}

You do not have to add what is after the //. This is just for your benefit to understand what is going on.

While motion tweening will accomplish your goal, actionscripting will make it easier to reuse and change.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top