View Full Version : mouse cursor
rafnews
02-15-2008, 12:16 PM
Hi,
I would like to know how thanks AS3 i can change the mouse cursor to a pointing finger hand cursor...as if there was a htlm link.
thanks a lot.
A.
stompwampa
02-15-2008, 01:16 PM
do you want it to permanently be a hand cursor? or just when you hover over a certain thing?
Either way, you do this:
stage.buttonMode = true;
//OR
myObject.buttonMode = true;
rafnews
02-15-2008, 01:36 PM
only while mouse pointer will be over the movieclip
rafnews
02-15-2008, 01:39 PM
by the way, buttonMode = true, does not work with my MovieClip :-(
i've already tested it
stompwampa
02-15-2008, 02:26 PM
it should work.
Make sure that the insance name of your movie clips is exactly as you are referring to it in the code:
instanceName.buttonMode = true;
rafnews
02-16-2008, 08:13 AM
here is what i have :
this.oLang.oText.text="A simple test no more";
this.oLang.buttonMode = true;
where oLang is the instance of the movieclip.
but still does not work :-(
rafnews
02-16-2008, 09:18 AM
From my experience .buttonMode = true works only on sprite but not on MovieClip.
So i've created a class extending sprite and i did my custom button like that :-)
so now it works well.
thanks for help
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.