Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Scrolling text on rollover
Author: Thom Lee
| Website: http://www.waterfrontartists.com/thomlee/index.html |
Untitled Page
1 - Create a dynamic text field and give it an instance name. (adding _txt at the end of the instance name is good practice)
2 - Add some text
3 - Shift-Doubleclick on the box in the lower right corner maket the dynamic textbox scrollable.
4 - Make a small movie clip (around the size of a cursor) to follow the mouse around. Give it an instance name of mouseFollower and attach this script
onClipEvent (load) {
this.startDrag(true);
this._visible = false;
}
We're going to look for a positive hitTest between mouseFollower and movie clips that will act as your up and down buttons. So mouseFollower cannot be an empty MC.
5 - Add Movie clips that will act as buttons
6 - Attach this script to the up movie clip
onClipEvent (enterFrame) {
if(hitTest(_parent.mouseFollower)){
_parent.scrollText_txt.scroll -=1;
}
}
7 - Attach this script to the down movieClip
onClipEvent (enterFrame) {
if(hitTest(_parent.mouseFollower)){
_parent.scrollText_txt.scroll +=1;
}
}
| » Level Intermediate |
|
|
Added: : 2004-12-02
Rating: 7.09 Votes: 45
Hits: 1132
|
| » Author |
|
http://www.waterfrontartists.com/thomlee/index.html
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (7 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|