PDA

View Full Version : Disable a button from reloading a file


Developer
08-16-2002, 04:15 PM
Hello everyone, first of all just want to let you know, I have searched this forum but did not find any answers on this particular question I have, on how to disable a button from reloading external .swf . Ok here is what I’m talking about, I have a navigation, which resides on level 0, and each button loads a new .swf into the main movie onto level 1 (the usual). If you press the same button several times it reloads the same file. What action can I put on the button, that if it has loaded a movie it disables from reloading the same movie again. Thanks ahead for any help you might have for me.

xxlm
08-16-2002, 04:31 PM
MyButton.enabled = false;
;)

Developer
08-16-2002, 05:56 PM
i think it is exactly what i was looking for, just one problem, where do i put this code ? It doesn’t look like it is going to be working, if i were to put this action on my button, I’m missing the logic here.

xxlm
08-17-2002, 03:31 AM
On your buttons:

on(release) {
this.enabled = false;
_root.lastclick.enabled = true;
_root.lastckick = eval(this);
// your code;
}


What is lastclick? It's the var containing the entire path and name of the last clicked button... Then you can put its enabled property to true when another one is clicked. See what I mean?
;)