trying to do a rollover - please help!!!

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

  1. #1

    Default trying to do a rollover - please help!!!

    Hi,
    I'm a bit new to Director and i'm trying to make a rolloverbutton so that when i entermouse i want the transparency to go from 100 to 0. And when a leavemouse i want the transparency to go back from 0 to 100.
    I don't have the lingo script for that so i'm hoping that someone can help me!!

    Thanks!!! :)
    *Susanne


    sussie.k webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. help with rollover in DW 8
      im trying to do this http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm and here is my code. it doesnt actually do what is...
    2. Rollover
      take a look at this for example of rollovers... http://portfolio.jumpout.co.uk/examples/director "Robert Lee" <rjlee@earthling.net> wrote in...
    3. rollover in 3D
      I would like to make a kind of a rollover in a 3d world. I use this script voor a mouseDown action: on mouseDown (me) -- update the mouse down...
    4. Rollover and making another rollover with links
      Hi, This website is nicely designed and the rollover menu design is simple, but clear and effective. http://earthtrends.wri.org/ Does...
    5. Rollover ???
      hi, I am trying to build my first site with flash and i have a question. what I am trying to do is to get photos to change from grayscale to...
  3. #2

    Default Re: trying to do a rollover - please help!!!

    on mousseEnter me
    sprite(me.spritenum).blend = 0
    end

    on mousseLeave me
    sprite(me.spritenum).blend = 100
    end

    -- cound set the visible to false to get result similar to blend 0
    -- but rollover detect may be lost with invisible sprite
    JB Guest

  4. #3

    Default Re:trying to do a rollover - please help!!!

    Hi Susanne,

    what you are looking for is the sprites blendLevel. an example would be something like this...
    sprite(whichSprite).blend = 0 -- this makes the sprite invisible
    sprite(whichSprite).blend = 100 -- this makes the sprite 100% visible

    So in your behaviour script do this...

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

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



    Roofy webforumsuser@macromedia.com Guest

  5. #4

    Default Re: trying to do a rollover - please help!!!

    If you were looking for an animated blend, like it kind of sounds, then try
    this on for size:


    property myBlend, myBlending, myBlendStep
    property sp

    on beginSprite me
    sp = sprite(me.spriteNum)
    myBlend = 100
    myBlendStep = 10
    myBlending = #up
    end

    on mouseEnter me
    myBlending = #down
    end

    on mouseLeave me
    myBlending = #up
    end

    on enterFrame me
    if myBlending = #up then
    if myBlend + myBlendStep <= 100 then
    myBlend = myBlend + myBlendStep
    sp.blend = myBlend
    end if
    else
    if myBlend - myBlendStep >= 0 then
    myBlend = myBlend - myBlendStep
    sp.blend = myBlend
    end if
    end if
    end



    --


    Dave Mennenoh
    [url]http://www.crackconspiracy.com/~davem[/url]


    Dave Mennenoh Guest

  6. #5

    Default Re: trying to do a rollover - please help!!!

    Thanks everyone for all your help! It was really helpful.
    // Susanne


    sussie.k webforumsuser@macromedia.com 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