Created
April 10, 2013 06:48
-
-
Save amowu/5352362 to your computer and use it in GitHub Desktop.
Pause sound.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private var pausePosition:Number = 0; | |
| public function pause():void | |
| { | |
| pausePosition = soundChannel.position; | |
| } | |
| public function resume():void | |
| { | |
| soundChannel = sound.play(pausePosition); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment