all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

Playing layered buttons or movieclips in reverse



Playing layered buttons or movieclips in reverse Dusty Bottoms
12/3/2004 8:59:03 PM
flash actionscript: I was wondering if anyone had any idea what type of action script is used in
the flash at this homepage:
http://www.netsuite.com/portal/home.shtml

There are a couple of different flash presentation so you may have to refresh
a few time to get to the one I'm talking about. I am referring to the flash
that has 3 levels that go up and down if you roll over or off of them.

Thanks
Re: How did they do this? Christian_Flanagan
12/3/2004 9:27:36 PM
You can control the "depth" of a movieclip by assigning a value to the depth
parameter when you use attachMovieClip(); method to dynamically place
movieclips on the stage from the library..

Or, you can put each movieclip in a different timeline layer to control which
one appears in front of the other movieclips on the stage.
Re: How did they do this? Dusty Bottoms
12/3/2004 9:44:41 PM
Thanks, that answers one question, but I'm having trouble getting the movie clip to play in reverse, any suggestions on the actionscript that will cause the roll over and roll out effects.

Re: How did they do this? NSurveyor
12/3/2004 9:50:37 PM
Something like this:
myMC.onRollOut = function(){
myMC.onEnterFrame = function(){
if(myPrevFrame == 1){
delete (myMC.onEnterFrame);
myPrevFrame = myMC._currentframe - 1;
gotoAndStop(myPrevFrame);
}
}
AddThis Social Bookmark Button