1 Reply Latest reply on Mar 13, 2007 1:47 PM by Newsgroup_User

    checkbox problem

    TzKennedy
      Hi All,

      I'm trying to add an 'on mouseUp me' script to a built-in check box object, but it doesn't seem to work. Here's my script (which is meant to check or uncheck all other check boxes):

      on mouseUp me

      if sprite(me.spriteNum).selected = 1 then

      repeat with n = 5 to 10
      sprite(n).selected = 1
      end repeat
      else
      repeat with n = 5 to 10
      sprite(n).selected = 0
      end repeat
      end if

      end

      Can anyone tell me where I'm going wrong?

      Thanks,

      TzK.