Flash Animation
Q: How to make the MC inverted, from 100 frames to the 1th frame stop, through the button to control the normal playback of the MC, or inverted MC? As shown in figure:
For:
Method 1, add the code to the inverted button to go on it: (Give up the day to laugh)
On (release)
{
_root.onenterframe = function ()
{
if (This.mc._currentframe = 1)
{
Delete This.onenterframe;
}
This.mc.prevFrame ();
}
}
Method 2, (Ultimate hate to provide)
A_btn.onrelease = function () {
Delete This._parent.mc.onenterframe;
This._parent.mc.play ();
};
B_btn.onrelease = function () {
This._parent.mc.stop ();
This._parent.mc.onenterframe = function () {
This.prevframe ();
};
};
Effect:
Source file:
Method 3, (provided by Kingofkofs)
Source file:
In fact, the above three kinds of effect is the same, as long as you know that Flash has a forward and return the frame function can be, specific how to achieve is to see where you put.