Click to See Complete Forum and Search --> : Flash question...
nialkeiz@hotmai
11-25-2003, 10:27 PM
Hi i have a code to put an animated cursor on my banner (ex. here: http://dkch.net/flash.html ) as you can see the click here cursor appears but still shows even if the cursor isn't in the banner area how can i make flash to only show the cursor when the mouse is actually in the banner area? the code is:
onClipEvent (load) {
Mouse.hide();
startDrag(clickhere,true);
}
Thanks a lot ! :)
fredmv
11-28-2003, 01:46 AM
You may get more help at FlashKit (http://www.flashkit.com/).
binkyboo
12-03-2003, 10:39 AM
Create a movieclip the exact size of your stage. Give it an instance name of 'stage' and set the alpha to zero. Add this code to your frame.
myCursor._visible = false;
_root.onMouseMove = function() {
myCursor._visible = true;
Mouse.hide();
myCursor._x = _root._xmouse;
myCursor._y = _root._ymouse;
updateAfterEvent();
};
_root.stage.onRollOut = function() {
myCursor._visible = false;
Mouse.show();
};
NOTE: In the example above the instance name of the movie clip cursor is 'myCursor'.