1 Reply Latest reply on May 8, 2007 10:52 AM by Newsgroup_User

    if script

      Hi I'm new to lingo. I have a rollover button and a picture next to the button. If it hovers over the button I want the picture next to the button to change to another picture . How would I do that?
        • 1. Re: if script
          Level 7
          on mouseWithin me
          sprite(the currentSpriteNum + 1).member = member("mouseOverPic")

          on mouseLeave me
          sprite(the currentSpriteNum + 1).member = member("NormalPic")

          The code above uses a relative sprite location. You could also just
          hard-code the location in, like . . .

          sprite(5).member = member("mouseOverPic")