1 Reply Latest reply on Jun 28, 2011 1:11 PM by GRAMOPHONE

    Creating a click effect

    M.Trikz

      Hi, i created buttons for a project my self instead of using the ready made ones and i was wondering if its possible to create a click effect (I mean the little movement that occurs when you click on a button) for them and how? thanks

        • 1. Re: Creating a click effect
          GRAMOPHONE Level 1

          You can make different images for each mouse event:

           

          Let's say you create 3 images: image1.jpg, image2.jpg, and image3.jpg

           

          This is what you have to do:

           

          on mouseEnter me

          sprite(me.SpriteNum).member = member "image2"

          end

           

          on mouseLeave me

          sprite(me.SpriteNum).member = member "image1"

          end

           

          on mouseDown me

          sprite(me.SpriteNum).member = member "image3"

          end

           

          on mouseUp me

          sprite(me.SpriteNum).member = member "image2"

          end

           

          Also add your behavior or script.

          Hope this will help