Tony,
This is how I do it... this example is code for the "About" button on the root timeline.
<code>
aboutBut.onPress = function() {
        if (_global.currentBtn == this) {
                this.enabled = false;
        } else {
                curMC = _global.currentBtn;
                curMC.enabled = true;
                curMC.onRollOut(); //sets the rollover effect back to a static 
mode
        }
};
aboutBut.onRelease = function() {
        _global.currentBtn = this;
        this.enabled = false;
sectLoadSeq("about.swf"); //a function to load the section which does other stuff...including setting the button // clicked to the rollOver state to signify the current section selected.
};
</code>

Gerry

........................................................................ ...
http://www.thespikeranch.com
Certified Macromedia Flash MX Designer
........................................................................ ...

On May 23, 2006, at 11:53 AM, Tony Watkins wrote:

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);
};

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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


_______________________________________________
Flashcoders@chattyfig.figleaf.com
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