Able to get the swap function to work but seem can’t get the reverse function to work (prefFrame):
var swaps:Array = [one, two, three, four, five];
var highest:Number = _root.getNextHighestDepth();
var current:Number;
for (i=0; i<swaps.length; i++) {
swaps*.onRollOver = function() {
current = this.getDepth();
this.swapDepths(highest);
this.gotoAndPlay(2);
};
swaps*.onRollOut = function() {
this.swapDepths(current);
this.onEnterFrame = function(){
prevFrame();
}
};
}
The functions I’m attempting to simulate is similar to this concept: http://www.templatemonster.com/flash-templates/8785.html
Any suggestion or better functions than above?
Thanks,
Friggin’ Mick