Clickin problems

i have just made a little site here and have encounter a small problem .
the buttons at the bottom . if i repeatly click , for example , the profile section . the page keeps on loading .
is there a AS command to make it click once and that’s it .

Thanks for any help

http://www20.brinkster.com/rui3n/

you can disable the button :slight_smile:

myButton.onRelease = function() {
// your actions here
	this.enabled = false;
}

to enable the button again …

myButton.enabled = true;

:wink: =)

sorry , abit slow on AS thing

so my current AS setting for a button is this

on (release) {
gotoAndPlay(1);

}

the new one shd look like … ???

on (release) {
	gotoAndPlay(1);
	this.enabled = false;
}

=)

doesnt seem to works . ?

it works … :sigh:

give me more info … post all your code or attach your fla :wink:

gimme a min , i go upload it .

http://www.smartgroups.com/vault/ckf83/default.fla

thanks :slight_smile:

holy ****! you’re right … i’ve done this one million times before :-
but this time i just can’t get it :hair:

i’ll keep trying though :wink:

thanks alot :stuck_out_tongue:

does it have anything to do with the layers ?

nah … i don’t think so :slight_smile:

Hey kax , while waiting for your reply . i went to flashkit to ask for help on this also , hope u’r not offended in anyway .

thing is i just solve the problem , here’s the code given to me . just to share :slight_smile:

// Button for section 1
on (release) {
if(section1!=“on”){
gotoAndPlay(1);
section1=“on”;
// For other sections
section2=“off”;
section3=“off”;
section4=“off”;
section5=“off”;
}
}

cheers

yeah … i was thinking about using variables :slight_smile:

but it was like 6:00 am here, two days without sleeping and i just decided to go to sleep :beam: :stuck_out_tongue:

glad you got it working :wink: =)