Displaying Text and/or Images with MouseOver Events
Document ID: IR10066The information in this article applies to:
- AutoPlay Media Studio 5.0 Standard Edition
- AutoPlay Media Studio 5.0 Professional Edition
SUMMARY
This article describes how to create mouseover effects.
DISCUSSION
Most objects in AutoPlay Media Studio 5.0 have two events useful for mouseover effects: On Enter and On Leave.
As an example, we will create a button that on mouseover will display an image, and on mouseout will hide the image:
- Create an image object.
- Set its default visible state to false.
- Create a button object.
- In the On Enter event of the button, enter the following script:
Image.SetVisible("Image1", true);
- In the On Leave event of the button, enter the following script:
Image.SetVisible("Image1", false);
When the user's mouse is over the button, the image object will appear. When the user's mouse leaves the button, the Image Object will disappear.
To make text appear on a mouseover, follow the above steps, but with a paragraph object instead of an Image Object.
KEYWORDS: AutoPlay Media Studio 5.0, Image, Text, Mouse, Over, Enter, Leave
Last reviewed: October 1, 2003
Copyright © 2003 Indigo Rose Corporation. All rights reserved.