flash Q
- Started
- Last post
- 10 Responses
- pr2
on (rollover) i want an animation to play. But if the visistor choses not to clcik i want the anim to play backwards. I'm lazy so i just animated the anim backwards later in teh timeline and placed a button saying on(rollout) go and play that anim. The problem is that when teh viweres quickly rollover the buttons (and triger the anims) sometimes the rollout button doesn't trigger.... Is there a more efficient way of doing it?
- unfittoprint0
Movieclip.prototype.backPos = function(){
this.gotoAndStop(target._current... -1);
}Movieclip.prototype.back = function(status, speed){
clearInterval(this.backLoop);
(status) ? this.backLoop = setinterval(this, "backPos", speed) : false;
}//button.
myButton.onRollOver = function(){
myMC.back(true, 30);
}myButton.onRollOut = function(){
myMC.back(false);
}
- unfittoprint0
where
this.gotoAndStop(tar get._currentframe -1);
should be
this.gotoAndStop(this._currentfr... -1);
- MX_OnD0
nice unfit!
do you have a collection?
- pr20
yeah man if i only knew what you are talking about...
- ozhanlion0
fitto digging as2 nowadays ?
got my brand newbook I have been awaiting since september. essential as2.0 by colin moock.
rockS!!
- unfittoprint0
pr: prototype class to play a movie backwards + button action to control it. [all inside 1 layer].
oz: halfway through it. as2 is major league now.
- lvl_130
"yeah man if i only knew what you are talking about... "
that was such a fucking awesome response it made me laugh.
the guy writes the code for you and all you can do is sit there.
just kidding. that always happens to me too :)
- ozhanlion0
aceee!
don't u leave pvn again will ya!*goes to sleep now.
- pixelbreaker0
no wonder is doesn't work, your typing skills are atrocious! so your code my run, well, not at all!!!!
- pixelbreaker0
and.... i just made a typo! :S