2 Replies Latest reply on Aug 13, 2009 6:25 AM by andyulrika_is_back

    Using isBusy with sprite problem

    andyulrika_is_back Level 1

      Hello

       

      I'm trying to do the following but having problems.

       

      Click on a sprite which plays a wav file and blends another sprite on the stage from 0 to 100 until the wav file stops playing...

       

      What happens? The sprite that has been blended displays but doesn't dissapear when the wav file has finished.

       

      Here is the code I have used using a blend function.

       

      on beginSprite me

      sprite(9).blend=0

       

      on mouseUp me

      sound(3).play(member("f1wav"))

      sprite(9).blend=100

      if sound(3). isBusy () then

      sprite(9).blend=100

      else sprite(9).blend=0

      end if

      end

       

      any help is much appreciated.

       

      Andy