Set a true/false flag or test if the about.swf is visible

"this._parent._parent._parent"   wooo

-- Chuck

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tony
Watkins
Sent: Tuesday, May 23, 2006 11:54 AM
To: [email protected]
Subject: [Flashcoders] How to disable button if MC is loaded

Ok, take a look at my scribble. Notice that onRelease, the about button
loads "resources/about.swf". Great, but if "resources/about.swf" is
already
loaded and you release the button, about.swf loads all over again. If
about.swf is already loaded I would like the about button to ignore
onRelease - or something like that.
----------------

mainMenu.menu01.about.onRollOver = function() {
    this.gotoAndPlay(2);
};
mainMenu.menu01.about.onRollOut = function() {
    this.gotoAndPlay(_totalframes-_currentframe);
};
mainMenu.menu01.about.onRelease = function() {
    this._parent._parent._parent.grassAni01.gotoAndPlay("playOut");
 
this._parent._parent._parent.workingHereAni01.gotoAndPlay("playOut");
    this._parent._parent._parent.nurses.gotoAndPlay("playOut");
    this._parent._parent._parent.about.loadMovie("resources/about.swf",
1);
};

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to