PDA

View Full Version : Action on mouse click.



Lazerpower
11-27-2001, 04:33 PM
Hi all,

Here is my problem. I want to put the cursor over a button, let's use OK as an example. When I click and hold the mouse I want my highlighted image, or pushed OK button, to appear and stay on. Then when I release the mouse key the OK button returns to the up position and then my file loads/runs.

I can make the OK look pressed and depressed using a hightlighted image, but it happens when the cursor is over the image.

Any ideas?
Thanks for any help,
Lazerpower

Mark
11-30-2001, 02:47 PM
Hi,

This really isn't possible using AutoPlay Menu Studio 3.0, this is because AutoPlay does not support the "Mouse-Up" event.

It is something that has been brought up before, and would be a good future inclusion.

mark.

Lazerpower
11-30-2001, 03:00 PM
Well, that is a bummer!

Thanks for the info Mark!

Lazer of power.....

Jito463
12-03-2001, 02:21 PM
I've found a way to do close to what you want to do, if you don't mind making a little compromise. The image won't go back to normal until the mouse leaves it. I'll use two images (called Image1 and Image2) for examples. Here's what you do:

Upon Page Open
Hide Object -> Image2

Image1
Mouse Click Event
Show Object -> Image2
Hide Object -> Image1
Execute Program -> (your program here)

Image2
Mouse Leave Event
Show Object -> Image1
Hide Object -> Image2

Again, the image won't go back to the first one until the mouse leaves the object, but since the program will be running by then, I don't think they'll notice. Just make sure that both images are aligned exactly on the page, so it looks like there's only one image there.

[This message has been edited by Jito463 (edited 12-03-2001).]

Mark
12-10-2001, 11:38 AM
Hi Jito463,

Good idea and thanks for the post. I'm sure this information will help users in the future.

mark.

Lazerpower
12-10-2001, 11:49 AM
I agree with Mark.

Thanks Jito463!

Lazerpower