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 Votes: 45 |
| » Author |
| http://www.waterfrontartists.com/thomlee/index.html |
| » Download |
| Download the files used in this tutorial. |
| Download (7 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!