change button alpha on mouse over

Ask a Question related to Macromedia Director Basics, Design and Development.

  1. #1

    Default change button alpha on mouse over

    Hi

    I have made plain rectangular buttons for a movie and have set the 'transparent' option to 40% so that the background shows through and the button appears translucent.

    What I want to do is add a mouse over state for the button changing the transparent option to 80% so that it becomes more opaque in appearance. So far I have only used the script:

    on mouseenter me
    sprite(the currentspritenum).membernum=2
    updateStage
    end

    on mouseleave me
    sprite(the currentspritenum).membernum=1
    updateStage
    end

    I am trying to change this so that only the transparency property of the sprite is changed but can't get it right :-(

    on mouseenter me
    sprite(the currentspritenum).ink=1
    updateStage
    end

    on mouseleave me
    sprite(the currentspritenum).ink=1
    updateStage
    end

    but how can I set the LEVEL of transparency? - or am I barking up the wrong tree?

    thanks
    Karen


    miro20 webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. How do i programmatic-ally change the Mouse Up-triggered JavaScript Action of a Submit button in a form contained in hundreds of PDFs?
      Hi Guys! How do i programmatically change the Mouse Up-triggered JavaScript Action of a Submit button in a form contained in hundreds of PDFs? In...
    2. How do I change mouse pointer?
      Hi! I'm a Macromedia Flash user and creating my own personal website for my project in Internet subject. How do I change the default mouse pointer...
    3. Mouse button problem...
      Hi, i want to use both the left and the right mousebutton to navigate, the left button to move backwards, and the right to go forward from any...
    4. changing alpha on mouse within
      Assuming you've set the blend to 50% in Director you can do it with a behaviour attached to the sprite:- property spriteNum on mouseEnter...
    5. Fading alpha on mouse over/mouse off
      Hi, Wondering if someone could take a minute to help a flash newbie: I'm trying to create a set of images which fade to 1% alpha when the mouse is...
  3. #2

    Default Re: change button alpha on mouse over

    Hi Karen,

    You want to change the blend value of the sprite:

    on mouseEnter me
    sprite(me.spriteNum).blend = 50
    end

    on mouseLeave me
    sprite(me.spriteNum).blend = 100
    end

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

Posting Permissions

  • You may not post new threads
  • You may 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