|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I'm having a great deal of difficulty doing something that I found pretty easy in old versions of Flash - maybe I'm just too tired! How do you scroll a movie (up and down) in MX 2004 using both up and down buttons? Can anyone provide a link to or fla example? Many thanks! |
|
#2
|
|||
|
|||
|
put the whole movie clip on the stage. Put 2 buttons on the side. Put a mask over the area you want to see. Then do something like this for the movie clip that's going to scroll:
onClipEvent (enterFrame) { if (_root.rollup == true) { if (this._y>=topboundary) { this._x -= 15; } } if (_root.rolldown == false) { if (this._y<=bottomboundary) { this._x += 15; } } } where _root.rollup is changed by... on(press){ _root.rollup==true; } on(release){ _root.rollup==false; } get the idea? |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > How to scroll a MC using buttons in MX2004 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|