Scrolling Text
By admin | January 26, 2010
Scrolling Text
To create a Scrolling text in your flash document, follow the steps below.
1. Open a Flash document and place a text box using the Text tool on the stage.
2. Choose the following parameters for the text box you just inserted.
    � Text: Dynamic
   ÂÂ
    � Choose Multiline
   ÂÂ
    � Type the following code in the Var text box.
_root.text1
   ÂÂ
3. Create buttons that are used for scrolling Up and down.
4. Create a Movie Clip name it �scrollUp�.
5. Create 3 KeyFrames in the first layer.
6. On the 1st Frame click, Right click –>Actions, choose the �+�Global Functions –> Timeline Control –> Stop;
7. On the Second frame, type the following action script:
_root.text1.scroll–;
8. In the 3rd Frame, type the following Action code:
gotoAndPlay(2);
9. Copy the scrollUp movie clip and name it �scrollDN�. Click the instance tab and type scrollDN in the instance text box.
10. Edit the second frame scrollDN and type the following action script:
_root.text1.scroll++;
11. Go back to the main time line, drag both the movie clips you created. Name both the movie clips instances as scrollUp and scrollDN respectively.
12. Create 3 layers in the main Time line and name them:
    � Text
    � Arrow
    � Circle
13. Insert the buttons and double click it to view the editing mode.
14. Select the actions for the UP button and type the following action code:
on (press) {
tellTarget(_root.scrollDN) {
play();
}
}
on (release) {
tellTarget(_root.scrollDN) {
stop();
}
}
15. Select the actions for the Down button and type the following action script:
on (press) {
tellTarget(_root.scrollDN) {
play();
}
}
on (release) {
tellTarget(_root.scrollDN) {
stop();
}
}
16. Save your work and Test movie.
   ÂÂ
Topics: Lina Roberts Blog, Uncategorized |
Comments
You must be logged in to post a comment.
