2 Replies Latest reply on Jun 15, 2006 1:48 PM by Newsgroup_User

    Roll over color problems

    Level 7
      I have created a rollover color change for a text sprite however the colors
      are not appearing correctly I tried these 2 versions. What is wrong?

      on mouseEnter me

      sprite(me.spritenum).color = rgb( 255, 205, 222 )

      end

      on mouseLeave me

      sprite(me.spritenum).color = rgb( 255, 0, 0 )

      on mouseDown me

      sprite(me.spritenum).color = rgb( 5, 0, 122 )

      on mouseUp me

      sprite(me.spritenum).color = rgb( 0, 0, 255 )

      end

      ----and then I tried this to use the pallete:


      on mouseEnter me

      sprite(me.spritenum).color = 3

      end

      on mouseLeave me

      sprite(me.spritenum).color = 6

      on mouseDown me

      sprite(me.spritenum).color = 5

      on mouseUp me

      sprite(me.spritenum).color = 3

      end

      --The colors change but not to expected colors. Why is that? I would
      think 255,0,0 would be red and 0,0,255 would be blue.

      thanks,
      cj