all groups > flash actionscript > july 2007 >
You're in the

flash actionscript

group:

Reverse External SWF



Re: Reverse External SWF Patrick B
7/20/2007 5:55:04 PM
flash actionscript: onButtonPress (however you want to define this):

listenerLevel1.onEnterFrame=function() {
if (this._currentframe>1) {
this._gotoAndStop(this._currentframe--);
} else {
this.onEnterFrame=undefined;
}
}

This should make it run sdrawkcab.

Patrick

[quoted text, click to view]

--
http://www.baynewmedia.com
Faster, easier, better...ActionScript development taken to new heights.
Download the BNMAPI today. You'll wonder how you ever did without it!
Re: Reverse External SWF Patrick B
7/20/2007 5:55:41 PM
_gotoAndStop can probably just be gotoAndStop :)

[quoted text, click to view]

--
http://www.baynewmedia.com
Faster, easier, better...ActionScript development taken to new heights.
Download the BNMAPI today. You'll wonder how you ever did without it!
Reverse External SWF wackydesigner
7/20/2007 8:33:04 PM
Ok here is my code on the 1st frame inside a movie:

loadMovieNum("Vines.swf", 1);
this.createEmptyMovieClip("listenerLevel1", this.getNextHighestDepth());
listenerLevel1.onEnterFrame = function(){
_level1._x = 0; _level1._y = 200;
if(_level1 != undefined) delete listenerLevel1.onEnterFrame;
};

It automatically loads up the swf into a certain coordinate, Now when a user
clicks on a button, I want the movie to reverse out. Any idea guys?
Re: Reverse External SWF wackydesigner
7/21/2007 3:25:43 PM
AddThis Social Bookmark Button