globe
March 22, 2003, 2:16am
1
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/
system
March 22, 2003, 2:28am
2
you can disable the button
myButton.onRelease = function() {
// your actions here
this.enabled = false;
}
to enable the button again …
myButton.enabled = true;
=)
system
March 22, 2003, 2:35am
3
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 … ???
system
March 22, 2003, 2:36am
4
on (release) {
gotoAndPlay(1);
this.enabled = false;
}
=)
system
March 22, 2003, 2:53am
6
it works … :sigh:
give me more info … post all your code or attach your fla
system
March 22, 2003, 2:58am
7
gimme a min , i go upload it .
system
March 22, 2003, 3:03am
8
system
March 22, 2003, 3:51am
9
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
system
March 22, 2003, 4:59am
10
thanks alot
does it have anything to do with the layers ?
system
March 22, 2003, 2:30pm
12
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
// 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
system
March 22, 2003, 9:59pm
13
yeah … i was thinking about using variables
but it was like 6:00 am here, two days without sleeping and i just decided to go to sleep :beam:
glad you got it working =)