Professional Web Applications Themes

Visible on MouseOver - Adobe Flash, Flex & Director

I would like for some text to become visible with mouseover on a button or symbol. This means two objects, one that supports the mouseover and another that becomes visible and returns to invisibility as the user mousesover the first object. I can do this with mouseover and DIV tags in DHTML, but I can't seem to find this in any of the Macromedia doentation....

  1. #1

    Default Visible on MouseOver

    I would like for some text to become visible with mouseover on a button or symbol.

    This means two objects, one that supports the mouseover and another that becomes
    visible and returns to invisibility as the user mousesover the first object.

    I can do this with mouseover and DIV tags in DHTML, but I can't seem to find this in
    any of the Macromedia doentation.




    gmitchell5 webforumsuser@macromedia.com Guest

  2. #2

    Default Re: Visible on MouseOver

    To do such an operation easily you will need to make two (or more) objects. Here's the way I would do it:

    1. First create a movie clip which will be the master and contain the other two objects (for organization's sake).
    2. Inside the "master" movie clip, create a new symbol, and put whatever text, image, etc. in there that you want. We will call this new movie clip the "content" movie clip.
    3. Give the "content" movie clip instance a unique name.
    4. Back inside the "master", create another layer on top of that of your "content" movie clip.
    5. In that layer, create an invisible button the size or larger than your "content" movie clip.
    6. On the button's actions, put the following code:

    on (rollOver) {
    setProperty (content, _visible, true);
    }
    on (rollOut) {
    setProperty (content, _visible, false);
    }

    7. On the content movieclip's actions, put the following code:

    onClipEvent(load) {
    setProperty(this, _visible, false);
    }

    That should do it.

    Kevin Cathey
    digitalMstudios
    [url]www.breadwild.com/digitalm/[/url]
    Kevbo webforumsuser@macromedia.com Guest

Similar Threads

  1. Message on mouseover
    By vaxa1 in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: September 12th, 11:00 AM
  2. alt label on mouseover
    By the-hen in forum Macromedia Dynamic HTML
    Replies: 3
    Last Post: May 22nd, 01:42 PM
  3. mouseOver not rollOver
    By steph14 in forum Macromedia Flash Actionscript
    Replies: 3
    Last Post: February 29th, 04:34 PM
  4. mouseOver?
    By Nicco in forum Macromedia Flash Sitedesign
    Replies: 2
    Last Post: August 7th, 10:37 AM
  5. LinkButtons and MouseOver
    By sramruttun in forum ASP.NET Building Controls
    Replies: 4
    Last Post: July 14th, 06:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139