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\$
  • \$\begingroup\$ Instead of updating your question with the solution, you should post an answer and mark it as accepted. \$\endgroup\$ – Sean Middleditch Oct 10 '13 at 15:55
-1
\$\begingroup\$

I just solved my issue

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

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.