-
I have a MC on the stage which I have finally managed to get rotating using:
onClipEvent (enterFrame) {
_rotation = RotateBox;
RotateBox = RotateBox+5;
}
on the MC.
Is it possible to reverse the rotation when the mouse is over the MC,
I've tried using an invisible button with the folowing
on (release) {
tellTarget ("_root.box") {
_rotation = n;
}
n = -5;
}
but it doesn't work
-
-
Here, try this.
The script on the MC should read:
onClipEvent(load){
rot = 5;
}
onClipEvent(enterFrame){
_rotation += rot;
}
Place the invisible button within rotating MC and use the following script on the button:
on(rollOver){
rot = -rot;
}
on(rollOut){
rot = -rot;
}
Let me know how you get on.
Bingoman
-
ohh somthing wrong...
give this action into blank mc
and give action to button goto and play blank mc
-
Hi..
Your codes fine, just needs a couple of adjustments:
onClipEvent (load) {
_root.rot = 5;
}
onClipEvent (enterFrame) {
_rotation +=_root.rot;
}
If your buttons are in the MC then do the same.
Good luck.
-
thanks bingoman,
worked a treat..
Originally posted by bingoman
Here, try this.
The script on the MC should read:
onClipEvent(load){
rot = 5;
}
onClipEvent(enterFrame){
_rotation += rot;
}
Place the invisible button within rotating MC and use the following script on the button:
on(rollOver){
rot = -rot;
}
on(rollOut){
rot = -rot;
}
Let me know how you get on.
Bingoman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|