Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
boxhead #1
flip menu function
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
boxhead Guest
-
flip book
Hello Does anyone know how to make flipbook in Director or Flash? I'm trying to make the simulation of pages being turned. anghunt -
How do I flip view?
Total simple one here: I'm doing a layout where part of the design is upside down. I'd like to be able to rotate the view so I can work on the... -
Tools menu in Word doesn't function
I have Win2k, and Office 2003 with Adobe Acrobat 4.0 Clicking on the tools menu in word, doesn't give me the drop down menu like it should. I read... -
Can I flip only one layer?
Lee, You might have the "use all layers" function enabled. That's what comes to mind for this problem. (It's on the top menu bar). Patty -
Start Menu - All Programs function inoperative
When I click Start, then All Programs, nothing happens. If I right click on Start, then choose open or explore, everything is in the directory. ...



Reply With Quote

