PDA

View Full Version : hiding the menu


flashelp
08-26-2007, 02:49 AM
I have a couple of labels that slide from left to right and each open content in the midle of the screen.

what can I do so the user cant click on a different label when one is open, it needs to be close first so other labels can be use.:eek:

Here is how I control the labels:

homeSlider.home_mc.home_btn.onRelease = function (){
homeSlider.play(nextFrame);
}

photoSlider.photo_mc.photo_btn.onRelease = function (){
photoSlider.play(nextFrame);
}

Alexus
08-26-2007, 07:54 AM
in onRelease function just check if there any open labels. If there are just close them and then open another.
To implement this you can add some variables like:

var current_open_label:Number;
var label_to_open_after_closing_current:Number;