2 Replies Latest reply on Jan 26, 2007 4:52 PM by Newsgroup_User

    Turn off Sprite's Availability

    quadpolar
      Hello, I am creating a project right now that goes something like this.

      There is a series of images that you can roll over and they get bigger as you roll over them, and get smaller as you roll off of them. When you click on one, that image gets larger, and there are 3 other images that enlarge as well, to show a "connection" between related images. What I want to do, is write a Lingo script that says, if this image was clicked, the other three images get larger, but the remaining images that did not enlarge, now, cannot have any type of enlarging effect happen even if the mouse rolls over them.

      I think basically its something that would say, if this "event" happens, then this "event" cannot happen. Keep in mind there is approximately 91 images that will have this "connections" interaction. I have written a Lingo script that looks like this....I'm hoping someone could give me some type of information. Thanks.

      property pShrink

      on beginSprite me
      pShrink=0 --set it to not shrink when it starts up
      end

      on mouseEnter me
      sprite(11).blend = 100
      sprite(11).height = 95
      sprite(11).width = 100
      sprite(10).blend = 100
      sprite(2).blend = 50
      end


      on mouseLeave me
      pShrink=1 --start shrinking now
      sprite(2).blend=0
      end


      on mouseUp me
      _movie.go(4)
      sprite("1_Image").blend = 100
      sprite("Close").blend = 100
      sprite("Start Over").blend = 100
      sprite("Close Text").blend = 100
      sprite("Japan One").height = 95
      sprite("Japan One").width = 100
      sprite("Japan One").blend = 100
      sprite("Japan One Highlight").blend = 100
      sprite("Decorative Arts 5").height = 95
      sprite("Decorative Arts 5").width = 100
      sprite("Decorative Arts 5").blend = 100
      sprite("Decorative Arts 5 Highlight").blend = 100
      sprite("Hollyhock").height = 95
      sprite("Hollyhock").width = 100
      sprite("Hollyhock").blend = 100
      sprite("Hollyhock Highlight").blend = 100
      end


      on enterFrame me
      if pShrink=1 then
      if sprite(11).width>70 then
      sprite(11).height=sprite(11).height-10
      sprite(11).width=sprite(11).width-10
      sprite(11).blend=sprite(11).blend-10
      sprite(10).blend=0
      else
      pShrink=0 --now it will stop shrinking
      end if
      end if
      end

      ~Quadpolar