Solved

Getting cursor to be a hand over a Flash screen

Posted on 2011-03-06
5
540 Views
Last Modified: 2012-05-11
I've made a .swf in my HTML clickable by adding

                  onclick="window.location.href='authors.html'"

to either the outside object tag or to the div that contains the object tags. But I can't make the cursor turn to a hand when it rolls over the flash screen, using cursor:pointer; for the div or for the object.  When I give the containing div cursor:pointer; and the div is bigger than the Flash screen, the cursor is a pointer in the div area until the cursor moves over the Flash area and then it turns back to an ordinary arrow.

How can I keep the cursor a hand over the Flash area, to show that it's clickable?

Thanks for any ideas.
0
Comment
Question by:steva
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:sjklein42
ID: 35047073
It is up to the FLASH application to control the shape of cursor when it is over the FLASH window.  As far as I know, you cannot set the cursor from javascript, only from the FLASH code.

Is the FLASH code yours to change, or do you need to live with what you have?
0
 

Author Comment

by:steva
ID: 35047239
It would be mine.  
0
 
LVL 16

Accepted Solution

by:
sjklein42 earned 500 total points
ID: 35047280
In Actionscript3:

myMc.buttonMode = true;
myMc.useHandCursor = true;

Open in new window


http://codingrecipes.com/cursor-hand-when-mouse-over-images-actionscript-3-flash

also, for some discussion about the difference between AS3 and AS2:

http://www.kirupa.com/forum/showthread.php?t=291354
0
 

Author Closing Comment

by:steva
ID: 35047903
Great!  Thanks.  I gave you the points.
0
 
LVL 16

Expert Comment

by:sjklein42
ID: 35047927
Thanks.  Good luck with your project.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
High definition conversion videos in YouTube 12 287
What changes do I need to make when I create the MST file for Flash 18 6 121
Adobe Products Forum? 3 154
Flash ActionScript 6 53
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question