Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-03-2008, 03:59 PM   PM User | #1
Andrew Johnson
Banned

 
Join Date: Feb 2008
Location: Winnipeg, Canada
Posts: 396
Thanks: 0
Thanked 29 Times in 29 Posts
Andrew Johnson can only hope to improve
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:
Code:
item.buttonMode = true;
item.useHandCursor = true;
Basically I have a setup right now like the following so basically I'm looking for something like: Mouse.Cursor = Pointer ... however google is not helping me and I'm not very good at Flash development.
Code:
   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);
Thanks in advance
Andrew Johnson is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:35 AM.


Advertisement
Log in to turn off these ads.