Solved

Getting cursor to be a hand over a Flash screen

Posted on 2011-03-06
5
538 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now