flash actionscript:
Hi all
a long time ago I posted about this mystery and got no comment
whatsoever. Now, someone else said they were seeing it too, so now I
know it's real.
Here's the mystery:
Me and this other person are using an empty MC that excecute a script in
a two-keyframes loop, and the script's puprose is to make the flash
playhead play BACKWARDS in any targeted timeline.
That's very useful. The mystery is that although it takes that MC to
loop through two frames to make the playhead play backwards on frame,
when used, the movie plays substancially faster backwards than it
normally does forward.
This was observed on both Mac and Windows.
As anybody witnessed this, and does anybody know how that is possible?
Here's the script for the rewinder MC (provided ages ago by a forum user
called Navneet):
movieClip with 3 frames, with no graphics in it and it has
this structure
Frame1: Label: "fStop"
Frame2: Label: "fRewind"
Frame3: Label: "fRewLoop"
Actions on frame 1:
-------------------------------------
function playBackward($mcPath){
if(eval($mcPath)._currentFrame > 1){
eval($mcPath).prevFrame();
} else if (eval($mcPath)._currentFrame == 1) {
eval($mcPath).gotoAndStop(eval($mcPath)._totalFrames);
}//End if
}//End function
stop();
------------------------------------
Frame 2:
if(rewind == true){
playBackward(_level0.myMC2Rewind);
}//End if
----------------------------------
Frame 3
if(rewind == true){
playBackward(_level0.myMC2Rewind);
gotoAndPlay(_currentFrame-1);
} else { gotoAndStop("fStop");
}//End if
----------------------------------
Now, the button to activate the script: If the movie you want
to rewind is called myMC2Rewind and lives on _level0 So the path I will
use is
_level0.myMC2Rewind
So, on the button:
--------------------------------------
on (rollOver) {
if(_level0.mRewinder.rewind == true){
_level0.mRewinder.rewind = false;
}//End if
_level0.myMC2Rewind.play();
}//End rollover
on (rollOut) {
_level0.mRewinder.rewind = true;
_level0.mRewinder.gotoAndPlay("fRewind");
}//End roll out
---------------------------------------
--