?
Solved

soft buttons

Posted on 2006-05-26
12
Medium Priority
?
213 Views
Last Modified: 2010-04-03
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


0
Comment
Question by:Donelson
  • 7
  • 3
11 Comments
 
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 16774293
Hi,

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

Author Comment

by:Donelson
ID: 16775068
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.

0
 

Author Comment

by:Donelson
ID: 16775071
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.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 16775835
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.
0
 

Author Comment

by:Donelson
ID: 16775863
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>

0
 

Author Comment

by:Donelson
ID: 16775872
Hmm.. can't get that into a URL.  Note the <space> between "1111" and "descr.txt"
0
 
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 16775898
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...
0
 

Author Comment

by:Donelson
ID: 16776009
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?)

0
 

Author Comment

by:Donelson
ID: 16784271
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.
0
 

Accepted Solution

by:
GranMod earned 0 total points
ID: 16974679
PAQed with points refunded (500)

GranMod
Community Support Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 …
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

864 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