{"id":39,"date":"2007-01-22T03:52:02","date_gmt":"2007-01-22T11:52:02","guid":{"rendered":"http:\/\/fox-gieg.com\/tutorials\/?p=39"},"modified":"2024-09-12T04:53:57","modified_gmt":"2024-09-12T12:53:57","slug":"sound-in-flash","status":"publish","type":"post","link":"https:\/\/fox-gieg.com\/tutorials\/2007\/sound-in-flash\/","title":{"rendered":"Sound in Flash"},"content":{"rendered":"<p>Working with sound in Flash can be a bit confusing, since it doesn&#8217;t behave like the sound or video editing programs you may be used to.  Here&#8217;s how to add a basic audio track to your animation:<\/p>\n<p><b>Step 1.<\/b> Import an audio file.  (For best results, use an uncompressed format like AIFF or WAV.  Also, be aware that older versions of Flash may have trouble with audio sampling rates higher than 44.1 kHz.)<br \/>\n<img src=\"http:\/\/www.fox-gieg.com\/tutorials\/tut-images\/flash-sound01.jpg\" vspace=\"5\" border=\"1\/\"\/><\/p>\n<p><b>Step 2.<\/b> Go to your <b>Library<\/b> window, where you should see the file you just imported:<\/p>\n<div style=\"width: 600px; margin-top: -13px;\"><img src=\"http:\/\/www.fox-gieg.com\/tutorials\/tut-images\/flash-sound02.jpg\" vspace=\"5\" border=\"1\" style=\"vertical-align: top; margin-right: 5px;\"\/><img src=\"http:\/\/www.fox-gieg.com\/tutorials\/tut-images\/flash-sound03.jpg\" vspace=\"5\" border=\"1\" style=\"vertical-align: top;\"\/><\/div>\n<p><b>Step 3.<\/b> Drag and drop the file from your Library to the first frame of a new layer.  The frame&#8217;s icon will change and display a tiny, oh-so-subtle horizontal line.<\/p>\n<div style=\"width: 600px; margin-top: -13px;\"><img src=\"http:\/\/www.fox-gieg.com\/tutorials\/tut-images\/flash-sound04.jpg\" vspace=\"5\" border=\"1\" style=\"vertical-align: top; margin-right: 5px;\"\/><img src=\"http:\/\/www.fox-gieg.com\/tutorials\/tut-images\/flash-sound05.jpg\" vspace=\"5\" border=\"1\" style=\"vertical-align: top;\"\/><\/div>\n<p><b>Step 4.<\/b> That horizontal line is actually the very beginning of your audio waveform.  But, as always in Flash, space only exists on the Timeline where you deliberately create it.  Add more time to your sound layer with the <b>Insert Frame<\/b> command.  (<b>F5<\/b> is the shortcut for this; it&#8217;s worth learning, as this is something you&#8217;ll have to do a lot.)<br \/>\n<img src=\"http:\/\/www.fox-gieg.com\/tutorials\/tut-images\/flash-sound06.jpg\" vspace=\"5\" border=\"1\/\"\/><br \/>\n<img src=\"http:\/\/www.fox-gieg.com\/tutorials\/tut-images\/flash-sound07.jpg\" vspace=\"5\" border=\"1\/\"\/><\/p>\n<p><b>Step 5.<\/b> Add frames to your layer until the entire sound file is visible.  (Remember that you can select multiple frames&#8211;you don&#8217;t have to make them one at at time.)<br \/>\n<img src=\"http:\/\/www.fox-gieg.com\/tutorials\/tut-images\/flash-sound08.jpg\" vspace=\"5\" border=\"1\/\"\/><\/p>\n<p><b>Step 6.<\/b> Next, bring up your <b>Properties<\/b> window:<br \/>\n<img src=\"http:\/\/www.fox-gieg.com\/tutorials\/tut-images\/flash-sound09.jpg\" vspace=\"5\" border=\"1\/\"\/><\/p>\n<p><b>Step 7.<\/b> Set the sync mode to <b>Stream<\/b>.  Newer versions of Flash should do this automatically, but it&#8217;s worth checking.  The other sync modes have their uses too, but this is generally easiest to work with.  (I prefer to stick with this and do any additional sound editing in a dedicated program.)<br \/>\n<img src=\"http:\/\/www.fox-gieg.com\/tutorials\/tut-images\/flash-sound10.jpg\" vspace=\"5\" border=\"1\/\"\/><\/p>\n<p><b>Step 8.<\/b> You might want to double-click on your sound layer and give it a helpful name, like &#8220;audio.&#8221;  Then click the <b>Lock<\/b> to prevent any changes (you don&#8217;t want to accidentally shift your sound layer around later on).<br \/>\n<img src=\"http:\/\/www.fox-gieg.com\/tutorials\/tut-images\/flash-sound11.jpg\" vspace=\"5\" border=\"1\/\"\/><\/p>\n<p><b>Step 9.<\/b> Make a <b>new layer<\/b>, and you&#8217;re ready to start drawing.<br \/>\n<img src=\"http:\/\/www.fox-gieg.com\/tutorials\/tut-images\/flash-sound12.jpg\" vspace=\"5\" border=\"1\/\"\/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Working with sound in Flash can be a bit confusing, since it doesn&#8217;t behave like the sound or video editing programs you may be used to. Here&#8217;s how to add a basic audio track to your animation: Step 1. Import an audio file. (For best results, use an uncompressed format like AIFF or WAV. Also, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15,4],"tags":[],"_links":{"self":[{"href":"https:\/\/fox-gieg.com\/tutorials\/wp-json\/wp\/v2\/posts\/39"}],"collection":[{"href":"https:\/\/fox-gieg.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fox-gieg.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fox-gieg.com\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/fox-gieg.com\/tutorials\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":1,"href":"https:\/\/fox-gieg.com\/tutorials\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":1247,"href":"https:\/\/fox-gieg.com\/tutorials\/wp-json\/wp\/v2\/posts\/39\/revisions\/1247"}],"wp:attachment":[{"href":"https:\/\/fox-gieg.com\/tutorials\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fox-gieg.com\/tutorials\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fox-gieg.com\/tutorials\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}