How do I...?

Display Text and/or Images with MouseOver Events

Most objects in AutoPlay Media Studio 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:

  1. Create an image object

  2. Set its default visible state to false.

  3. Create a button object.

  4. In the On Enter event of the button, enter the following script:

Image.SetVisible("Image1", true);

  1. In the On Leave event of the button, enter the following script:

Image.SetVisible("Image1", false);

Note: 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.

Tip: To make text appear on a mouseover, follow the above steps, but with a paragraph object instead of an Image Object.