1
\$\begingroup\$

I just solved my issue

in my object (on the stage) I forgot to name the element


I'm trying to make workin a custom mouse cursor on my Scaleform menu. I have follow some tutorials but nothing good...

Right now I have tried the Matt Doyle's AS :

import scaleform.gfx.Extensions;
Extensions.enabled = true;

Mouse.hide();
var mCursor:MovieClip;
mCursor.mouseEnabled = false;
mCursor.tabEnabled = false;

function handleMouseMove( e:MouseEvent ):void 
{
    mCursor.x = e.stageX;
    mCursor.y = e.stageY;
}

stage.addEventListener( MouseEvent.MOUSE_MOVE, handleMouseMove, false, 0, true );

but i'm little confused on how declare the cursor should I add it on the stage, or can I use some addChild() to have it on the screen

for information mCursor is also the name of the cursor movieClip in my library

\$\endgroup\$
1
  • \$\begingroup\$ Instead of updating your question with the solution, you should post an answer and mark it as accepted. \$\endgroup\$ Oct 10, 2013 at 15:55

1 Answer 1

-1
\$\begingroup\$

I just solved my issue

in my object (on the stage) I forgot to name the element

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .