[Xerte] Re: Remove Custom Cursor Outside of SWF

Fay Cross Fay.Cross at nottingham.ac.uk
Thu Nov 24 14:51:18 GMT 2011

I have just got a custom cursor to work ok using this script in the swf, although I did have it on the main timeline so I'm not sure if this would mean you'd have to rewrite much else...

this._lockroot = true;

var cursor = _root.attachMovie("cursor_mc", "cursor_mc", 0);

onEnterFrame = function() {
                if (this._xmouse < 0 || this._xmouse > 550 || this._ymouse < 0 || this._ymouse > 400) {
                                cursor._visible = false;
                } else {
                                cursor._x = this._xmouse;
                                cursor._y = this._ymouse;
                                cursor._visible = true;

Hope this helps

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Deborah Delin
Sent: 24 November 2011 14:31
To: Xerte discussion list
Subject: [Xerte] Re: Remove Custom Cursor Outside of SWF

I tried putting it in the onClipEvent on the custom cursor and also just stuck it on the timeline (oops....with no event).  Neither had any effect.  When the mouse is moved outside of the stage and onto the Xerte page it disappears and it is impossible to navigate the Xerte.
On Thu, Nov 24, 2011 at 3:22 PM, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>> wrote:
What event triggers this?

if (custom_cursor_mc._x>+530 || custom_cursor_mc._x<0) {
//remove custom cursor

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111124/be29927b/attachment.html>

More information about the Xerte mailing list