-
Cursing that damn cursor again...
I have a custom cursor in an SWF on a web page. The rest of the page (non-Flash) also has the same custom cursor which has been added via dhtml.
Here's my problem; When the mouse runs off the Flash onto the rest of the page it leaves part of the cursor image at the edge of the swf. The transition from Flash to page is flawless except for this one thing.
I was wondering if there was a way to reset the x/y coordinates to somewhere off the SWF once the cursor leaves. Or maybe hide the cursor completely when it leaves.
Please help.
-
Running Plodding & Limping
You could try adding some check to hide the custom cursor should the x and y coords go beyond the limits of your movie, so you hide the cursor just before your user leaves the flash for the html.
say your movie size is 500x300, hMax = 500, hMin = 0, vMin = 0, vMax = 300
where xpos is yourCustomCursor._x and
ypos is yourCustomCursor._y
if(xpos > hMax || xpos < hMin || ypos > vMax || ypos < vMin){
// cursor beyond movie boundaries, hide it
_root.yourCustomCursor._visible = false;
} else {
//cursor ok, show it
_root.yourCustomCursor._visible = true;
}
something like that.
edit - cant fit all the if statement in, not showing up for some reason.
Last edited by SpockBert; 04-05-2005 at 05:21 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|