Link to home
Start Free TrialLog in
Avatar of Donelson
Donelson

asked on

soft buttons

I have a slideshow player which has an option to include hotspot areas based on a text-description file.

The slideshow player works fine, and the "soft" buttons (defined in a descr.txt file) work fine, however, I'd like to have the cursor change to a Hand when the mouse goes over one of these buttons. There are typically 10 - 15 hotspots, which are active and inactive depending on which frame of the slideshow is showing. For example:

10, 20, 100,100,200,200, goPlay, 75

This line from the text file says: Between time 10 secs and 20 secs, if the user clicks within the rect(100,100,200,200), then go to time 75 secs in the slideshow, and begin playing from there.

What options do I have to make the Hand cursor appear when over one of the 10 - 15 hotspots which are active at any one time?

A "simple" solution would be appreciated...

Thanks


Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

Hi,

I request if you can upload a sample source.
I assure to provide the solution.
Rgds
Aneesh
Avatar of Donelson
Donelson

ASKER

Aneesh, hello --

Here is the slideshow as it is now --

 http://www.explore-parliament.net/playMovie.htm?nssMovieName=1111

You can click on the audio playbar at the bottom of the window to skip the beginning of the movie. Then you will see (a) the history timeline (1100 AD - 1900 AD), which you can click on.  You will also occassionally see a small picture at the top left of the window which you can click on as well.

This is a sample of the kinds of "soft" hotspots I am using in a number of movies.

Note: The History Timeline consists of around ten "soft" buttons which are present from time 37.7 secs to time 583 secs.

The upper-left picture buttons come and go, depending on the part of the movie you are watching.
still not very clear,

it seems to me that mouseOver on allmost anything is showing hand cursor right now.
could u please provide more detail on it.
Yes, I set the whole image to have a mouseOver dummy handler

image_mc.onRollOver = function () { }

just to get some sort of cursor.

You might also look at the file --

<url>http://www.explore-parliament.net/nssMovies/11/1111/1111 descr.txt</url>

Hmm.. can't get that into a URL.  Note the <space> between "1111" and "descr.txt"
Without looking into the source code I might not be able to help.

secondly,
I would like to see the area where handcursor is not visible and you want it..
can you send me a screenshot with marked area...
Basically, right now, I have a mouse Listener.

When the mouse is clicked, I look at all the "btn" descriptors in the descr.txt file, check the times, then check the rectangles. If the click fits timewise and space-wise, then I execute the command, e.g. goPlay, 75

But there is NO rollover detection of the individual buttons.

Should I createMovie() some dummy movies (20+ !) and keep them around, and place them over the hotspot areas?  If I do that, I will have to check whether to show them or not on EVERY image change in the movie (remove non-used, and enable-add the in-use hotspots)

Or is there another way to have the hand-cursor appear whenever I want?

Perhaps onMouseMove I check to see if the mouse is over an active hotspot, then then useHandCursor=true/false for the whole image_mc  ?

I can think of several ways to do this; can you think of others ?  (without checking 30 times per second?)

Thanks to all.

I have decided to show the buttons by (a) having a hand cursor for the whole image and (b) showing a hilite of the buttons when a user clicks somewhere other than a hotspot.

See

  http://www.explore-parliament.net/playMovie.htm?nssMovieName=1111

and

  http://www.explore-parliament.net/playMovie.htm?nssMovieName=1500

for examples.

Question Closed.
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial