title: How to Play/Pause All for Adobe Air Application using AS3 in Flash CS4
body: <p>I am new to <code>Flash</code> and I'm creating an educational application in <code>AS3</code> in <code>Flash CS4</code> for <code>Adobe Air</code>. I want to use buttons to play and pause all content (<code>movieclips</code> AND <code>sound</code>). </p>
  
  <p>I have created <code>play</code> and <code>pause</code> buttons that worked by switching the frame rate between <code>0</code> and <code>20</code>, unfortunately I've realized that it's never really <code>0 fps</code>, but rather <code>0.01 fps</code>, and so it continues playing, albeit very very slowly. Also this doesn't affect the audio; I have set sound files to Stream which are synced to <code>movieclips</code> on their timelines, but even when the application is set to <code>0 fps</code> the audio continues.</p>
  
  <p>Since I have various levels with numerous <code>movieclips</code> each with synced audio, what i'd like is to be able to do is pause absolutely everything within each <code>movieclip</code> with one button and to be able to resume from the same place using another button. Is this possible? If not, is there a global function to <code>pause</code>/<code>resume</code> the entire <code>application</code>/<code>program</code>? </p>