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