Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Set cursor to pointer (AS3)
04-03-2008, 03:59 PM #1
- Join Date
- Feb 2008
- Winnipeg, Canada
- Thanked 29 Times in 29 Posts
Set cursor to pointer (AS3)
Basically I'm using ActionScript 3 and when the user clicks a preview button it uses a script to load an image from an outside URL and pop it up for them to see and when they click it, it disappears.
I have it all working, however I'd like the cursor to change to the pointer instead of just the default cursor so the user will know it is clickable.
I've used the following method but it won't work for this class type:
item.buttonMode = true; item.useHandCursor = true;
var url:String; var ldr:Loader = new Loader(); url = "VALID URL HERE"; var urlReq:URLRequest = new URLRequest(url); ldr.load(urlReq); ldr.x = 70; ldr.y = 50; addChild(ldr); ldr.addEventListener(MouseEvent.MOUSE_OVER,hoverimage); //added this to help solve the problem ldr.addEventListener(MouseEvent.MOUSE_OUT,leaveimage); //added this to help solve the problem ldr.addEventListener(MouseEvent.CLICK,closeimage);