Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








_help


Hello, i need to disable all my buttons on level0 when level1 loads.
I have used mybutton.enabled=false and it works perfect in simple buttons but i also have on level0 some videos with buttons inside, that i want to disable too. How i do write the action?

Here is the code when level1 is launched:

****frame 1*******************

tellTarget ("_level0") {
greenbutton.enabled=false;
bluebutton.enabled=false;
}

*******************************

the greenbutton.enabled=false is the line that i know is wrong
because the greenbutton is on level0 into a movieclip, and the
action to the bluebutton works fine.

I need some help, here is it the example FLA;




FlashKit > Flash Help > Flash MX
Posted on: 04-16-2003, 05:10 PM


View Complete Forum Thread with Replies

Sponsored Links:

Stage._help
hi you guys - i have this code:


ActionScript Code:
function mouseApp() {
    toolBar._visible = true;
    toolBar.onEnterFrame = function() {
        if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
            if (this._alpha <=100){
                this._alpha += 10;
            }
        } else {
            if(this._alpha >= 0) {
                this._alpha -=10;
            }
        }
    }
}


The code works fine... but my issue is the how would i go about adding a mouse out of stage. So... I replaced the code above with this code to follow. At the moment, it doesnt work somewhat, mouse outside the stage works great (at the moment im just trying to make it work, so i dont care about the effects). I've tried various examples here in ultrashock but the BUTTONS within my toolBar MC do not work whatsoever.

This is what I tried:


ActionScript Code:
//
var mouseIsHere:Boolean;
//
function unCheckMouse() {
    clearInterval(mouse_int);
    mouseIsHere = true;
    tF.text = 'mouse is here';
    toolBar._alpha = 100;
}
function checkMouse() {
    mouseIsHere = false;
    mouse_int = setInterval(function () {
        clearInterval(mouse_int);
        if (!_root.mouseIsHere) {
            tF.text = 'mouse is gone';
        }
        toolBar._alpha = 0;
    }, 200);
}
 
//
 
 
toolBar._visible = true;
toolBar.onRollOver = toolBar.onDragOver=function () {
    unCheckMouse();
};
toolBar.onRollOut = toolBar.onDragOut=function () {
    checkMouse();
};


Anyone avalable to help me out with this? The code above is what i like... but the buttons within the toolBar MC, do not work.
Thanks

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved