Solved

Getting cursor to be a hand over a Flash screen

Posted on 2011-03-06
5
546 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
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.

623 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