I have a menu which I want to flip 'over' to show a different menu on the back.
I have done this by creating two menu MCs (men1 and men2), one set to xscale
100 and visible the other to xscale 0 and invisable. I have a function which
reduces the first to xscale 0 and hide it and then the revearse on the second
menu to give the flip illusion. There is a button in each menu MC and there is
also two shadow MCs for the menu - (menshadlow and menshadhigh). here is my
code -

the button in the menu MCs look like this-

on (release) {
Flip("men2", "men1", "men");
}

the function in the root of the movie is-

MovieClip.prototype.Flip = function(flipto, flipfrom, shad) {
finalFlip = flipto;
firstFlip = flipfrom;
lowShad = shad+"shadlow";
highShad = shad+"shadhigh"
finalScale = _root.men1._xscale;
flipping = firstFlip;
scaller = finalScale/10;

this.onEnterFrame = function(){
flipping._xscale -= scaller;
highShad._xscale -= scaller;
lowShad._xscale -= scaller;
trace(flipping);
trace(flipping._xscale);
trace(firstFlip);
if(flipping._xscale == 0 && flipping == firstFlip){
firstFlip._visible = 0;
finalFlip._visible = 1;
flipper = finalFlip;
scaller *= -1;
}else if(flipper == finalFlip && _root.flipping == finalScale){
delete this.onEnterFrame;
};
};
};

you will notice there are some traces inthe middle - 2 work but
trace(flipping._xscale); gives undefined! and the whole lot doesnt work.

Any ideas? (the reason I have done it with variables, is that I intend to
reuse this function to flip other elements in the page)

Monkey