This content has been marked as final. Show 5 replies
you can't use the sound class, either. you'll attach your sound to a movieclip frame (say 10) in a timeline on the movieclip's last frame along with a counter that increments to test the number of loops. if the counter is less than 3, execute a this.gotoAndPlay(10) else execute a this.stop(). on the first frame of your movieclip attach a this.stop().
you can use the _currentframe property of your movieclip to toggle the on-off state of your sound.
thanks for your help kglad, but I'm still stuck
this is probably a really dumb question, but it's the other half of my problem:
what can I use for a counter if I can't declare a var?
don't declare/type it. just use it.
prefixing a timeline variable with var does nothing anyway.
told you it was a dumb question!
thanks, now it all makes sense *blush*