#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    5
    Rep Power
    0

    Make movie play backwards


    I have this swf file trying to make it go backwards in famers if anyone knows please post Thanks!!!
  2. #2
  3. No Profile Picture
    flash junkie
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Location
    CO, USA
    Posts
    172
    Rep Power
    12
    here's a quick function that will play back to a specified frame:

    PHP Code:
    rewind = function (objf)
    {
        
    obj.onEnterFrame = function ()
        {
            if (
    this._currentframe>f) {
                
    this.gotoAndStop(this._currentframe-1);
            } else {
                
    delete this.onEnterFrame;
            }
        };
    }; 
    Just call the function, pass the object you want to rewind in, and specify a frame to rewind to. this will rewind the _root:

    rewind(_root,1);

    cheers,

    bret

IMN logo majestic logo threadwatch logo seochat tools logo