Copy link to clipboard
Copied
Hello everyone,
I have a movieclip following my mouse to act as a custom cursor.
I am using startDrag on the movie clip and mouse.hide()
What I am trying to resolve is the following:
I have several hidden simple button objects in the background of my flash movie. ( I am using these to detect when the user has the mouse in certain areas of the flash movie)
When i go to move over these simple buttons, my custom cursor movieclip stops following the mouse cursor. Normally my cursor would also then change to the Hand cursor, but i disabled that.
Can anyone think of any method or hack that would make this work for me? I would like my custom cursor following the mouse pointer at all times even when hovering over a simple button.
thanks in advance.
ID2335HoverBlock1.addEventListener(MouseEvent.MOUSE_OVER, ID2335HOVER);
function ID2335HOVER(event:MouseEvent):void
{
//more code here
// recall the startDrag
myCustomCursor.startDrag();
}
Copy link to clipboard
Copied
Change the simple button objects to movieClips
Copy link to clipboard
Copied
Ok so id like to do that but I dont seem to get the event listener called while using a movie clip. Im using the following code:
ID2335HoverBlock1.addEventListener(MouseEvent.MOUSE_OVER, ID2335HOVER);
function ID2335HOVER(event:MouseEvent):void
{
//more code here
}
Copy link to clipboard
Copied
The addEventListener works fine with MovieClips
Copy link to clipboard
Copied
You are right I got it working now, But now its acting the same as a simple button would have. My custom cursor stops following my mouse while over these movieclips that have the listener attached... hmmm
Copy link to clipboard
Copied
Copy link to clipboard
Copied
It is not changing to the hand cursor, my custom cursor stops following my mouse pointer. Ill try a few more things
Copy link to clipboard
Copied
ID2335HoverBlock1.addEventListener(MouseEvent.MOUSE_OVER, ID2335HOVER);
function ID2335HOVER(event:MouseEvent):void
{
//more code here
// recall the startDrag
myCustomCursor.startDrag();
}
Copy link to clipboard
Copied
That seems to work for me, thank you so much