Announcement

Collapse
No announcement yet.

Displaying Text and/or Images with MouseOver Events

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Displaying Text and/or Images with MouseOver Events

    AutoPlay Media Studio 5.0 Knowledge Base

    Displaying Text and/or Images with MouseOver Events

    Document ID: IR10066
    The 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:

    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);

    5. 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.
Working...
X