xNicolex8
04-04-2011, 04:34 PM
Hi, iv been trying to find out how i can reverse a motion tween..
So for my site you click next and its slides from right to left,, then for the back button i just wanted it to go back.. (i know i can do it the long way by doing seperate tweens for it to go back)
but iv got loads of them to do and very little time so i was hoping i could try found out if this way is possible first.
Iv tried searching, some people have said it's impossible but some have said its not, if you tell it to go backwards until its on a certain frame
i saw a thread about it on this forum and someone posted this code:
on (rollOver) {
playBW = true;
}
on (rollOut) {
playBW = false;
}
onClipEvent (enterFrame) {
if (playBW) {
// if the variable playBW is true
gotoAndStop (prevFrame ());
}
}
but on the "onClipEvent" line it says "Clip events are permitted only for movie clip instances"
i'v been puttin on my action script on the buttons, have i just done something wrong?
Sorry not too good with flash :/
Thankyouu
So for my site you click next and its slides from right to left,, then for the back button i just wanted it to go back.. (i know i can do it the long way by doing seperate tweens for it to go back)
but iv got loads of them to do and very little time so i was hoping i could try found out if this way is possible first.
Iv tried searching, some people have said it's impossible but some have said its not, if you tell it to go backwards until its on a certain frame
i saw a thread about it on this forum and someone posted this code:
on (rollOver) {
playBW = true;
}
on (rollOut) {
playBW = false;
}
onClipEvent (enterFrame) {
if (playBW) {
// if the variable playBW is true
gotoAndStop (prevFrame ());
}
}
but on the "onClipEvent" line it says "Clip events are permitted only for movie clip instances"
i'v been puttin on my action script on the buttons, have i just done something wrong?
Sorry not too good with flash :/
Thankyouu