Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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

share|improve this question
    
Instead of updating your question with the solution, you should post an answer and mark it as accepted. –  Sean Middleditch Oct 10 '13 at 15:55

1 Answer 1

up vote -1 down vote accepted

I just solved my issue

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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