Any one help ive create a flv player, and i want the controls (controlContainer) to fade in/out when the mouse is detected out of the flv player. i know you can do this using set intervals or set timeout.
this is as far as i got, can any one help, thankyou
function checkBounds(dx, dy){
if (checkX(dx) || checkY(dy)){
controlContainer._visible = false;
} else {
controlContainer._visible = true;
}
}
function checkX(dx) {
var Xmax = _root._width - 8;
if ((dx>1)&&(dx<Xmax)) {
return false;
} else {
return true;
}
}
function checkY(dy) {
var Ymax = _root._height - 5;
if ((dy>1)&&(dy<Ymax)) {
return false;
} else {
return true;
/
}
}
_root.onMouseMove = function() {
_root.checkBounds(_xmouse, _ymouse);