<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Style Press, Best Practices from all the Web, Build Better Websites &#187; Sound</title>
	<atom:link href="http://www.webstylepress.com/tag/sound/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webstylepress.com</link>
	<description>Web VS Style</description>
	<lastBuildDate>Mon, 26 Dec 2011 10:35:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Sound Control In Flash &#8211; Tutorial and Downloads</title>
		<link>http://www.webstylepress.com/sound-control-in-flash/</link>
		<comments>http://www.webstylepress.com/sound-control-in-flash/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 08:44:51 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Control]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://www.webstylepress.com/?p=182</guid>
		<description><![CDATA[We can import any sound of supported format into flash (Shortcut: Ctrl+R). After importing, you can find sound in Library panel and by dragging that at stage it will be added in timeline of movie. Other way is to click at timeline which will give you sounds panel in movie properties panel, if you have [...]<p><a href="http://www.webstylepress.com/sound-control-in-flash/">Sound Control In Flash &#8211; Tutorial and Downloads</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
]]></description>
			<content:encoded><![CDATA[<p>We can import any sound of supported format into flash (Shortcut: Ctrl+R). After importing, you can find sound in Library panel and by dragging that at stage it will be added in timeline of movie. Other way is to click at timeline which will give you sounds panel in movie properties panel, if you have imported sounds into your movie. You can select any sound from there and add into your movie. By selecting any sound it further provides some options of Effects and Sync. By effects you can select left or right channel sound or sound fade in, fade out effect. By Sync you can select event, start, stop, stream options for selected sound and loop option or repeat times . Event sound is normal while stream sound is streamed when movie is played, if the movie is paused then stream sound will be paused also. Stream sound option is for synchronizing sound with visual animation where you need sound along with animation effects. If you need a loop sound, and you have a music loop and you want it to be played again and again then select event or play and select repeat and put value of 999 in repeat times. If you select stream sound, you will have to add frames to the sound till it ends and also we do not give repeat times to a streaming sound usually.</p>
<p><span id="more-182"></span></p>
<p>Now lets get started. I have some cool sound implementation examples here.</p>
<h5>Simple Sound Control On/Off</h5>
<p>For simple sound control we need two buttons and two frames.<br />
One frame containing sound and second one empty with a blank keyframe.<br />
Now when we want to start a sound we need to click the button which will have a simple action<br />
i.e.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">gotoAndStop</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>While at frame 2 sound is placed and suppose that the loop and it will repeat on until it is stopped.</p>
<p>Now if we need to stop that sound then we need a button with the following actionscript</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">gotoAndStop</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">stopAllSounds</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>While frame number 3 is blank key frame. And we can implement this by creating a movie clip and these two frames, sound and buttons in that movie clip and that can be always available for whole movie and whenever we can trigger sound to be stopped or played.</p>
<p>This example is very basic and does not deals with advanced issues relating to sound. We can control sound by fancy bars, We can gradually decrease and increase sound level. Examples below explain  advanced control of sounds.</p>
<h5>Fade in Out, On/Off Single Sound</h5>
<p>- Single Sound<br />
- Sound exported from library<br />
- On/Off &#8211; Fade in out<br />
- Sound starts again at the point from where it was stopped before after fade out to fade in.</p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/fadeinoutsingle.rar'>Download Example</a></span></p>
<h5>Buttons Bar Rollover Sound Control</h5>
<p>- Exported from library<br />
- Fade in out<br />
- Plays from where it was stopped<br />
- Buttons rollover volume control</p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/sound-buttons-on-off.jpg" alt="" title="sound-buttons-on-off" width="115" height="30" class="alignnone size-full wp-image-186" /></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/rolloverbuttonssound.rar'>Download Example</a></span></p>
<h5>Slider Sound Control With Button</h5>
<p>- Exported from library<br />
- Fade in out<br />
- Plays from where it was stopped<br />
- Sliderbar Control</p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/slidervolumectrl.jpg" alt="" title="slidervolumectrl" width="90" height="36" class="alignnone size-full wp-image-190" /></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/slider1.rar'>Download Slider Volume Control</a></span></p>
<h5>On Off Text &#8211; Internal Sound &#8211; Cross Fade</h5>
<p>- Fades in out<br />
- Plays from where it was stopped<br />
- On Off text display<br />
- Single Button on off control</p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/onoffcrossfadeflashsoundctr.jpg" alt="" title="onoffcrossfadeflashsoundctr" width="65" height="21" class="alignnone size-full wp-image-192" /></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/so1.rar'>Download Example</a></span></p>
<h5>Single Sound &#8211; Internal Sound &#8211; Cross Fade &#8211; Moving Bars</h5>
<p>- Fade in out<br />
- Plays from where it was stopped<br />
- Moving Bars<br />
- Single Button on off control</p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/so2.rar'>Download Example</a></span></p>
<h5>Single Sound &#8211; Internal Sound &#8211; Cross Fade &#8211; Static Bars</h5>
<p>- Fade in out<br />
- Plays from where it was stopped<br />
- Static Bars<br />
- Single Button on off control</p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/so3.rar'>Download Example</a></span></p>
<h5>Single Sound &#8211; Internal Sound &#8211; Vertical Bar Control</h5>
<p>- Vertical Bar control<br />
- Internal Sound</p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/vbar.gif" alt="" title="vbar" width="373" height="197" class="alignnone size-full wp-image-197" /></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/vbar.rar'>Download Example</a></span></p>
<h5>Single Sound &#8211; Vertical Bar Control/On Off Button &#8211; Cross Fade &#8211; Moving Bars on off</h5>
<p>- Vertical Bar control + Button Control<br />
- Moving bars which behave with on off<br />
- Cross Fadeing Sound</p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/advancedsoundctrl.gif" alt="" title="advancedsoundctrl" width="124" height="200" class="alignnone size-full wp-image-200" /></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/so4.rar'>Download Example</a></span></p>
<h5>Play External MP3 Sound Without Loading</h5>
<p>This Player has On, Off, Next, Forward buttons and can play many MP3 sounds from outside but it will not preload these sounds.</p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/mp3externalload.gif" alt="" title="mp3externalload" width="274" height="31" class="alignnone size-full wp-image-201" /></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/playexternalmp3.rar'>Download Example</a></span></p>
<h5>Multiple Sounds CrossFade</h5>
<p>Multiple Sounds &#8211; Crossfade &#8211; Slider Bars &#8211; On Off Button</p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/4-sounds.gif" alt="" title="4-sounds" width="200" height="121" class="alignnone size-full wp-image-203" /></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/4-sounds-crossfade.rar'>Download Example</a></span></p>
<h6>Sounds Tutorials Resources</h6>
<p><a rel="nofollow" target="_blank" href="http://kennybellew.cowfly.com/tutorial/index.html" target="_blank">http://kennybellew.cowfly.com/tutorial/index.html</a></p>
<h6>Equalizer Bars For Sound</h6>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/eq-bars-1.jpg" alt="" title="eq-bars-1" width="120" height="97" class="alignnone size-full wp-image-207" /></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/eq.rar'>Download Files</a></span></p>
<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/eq-bars-2.jpg" alt="" title="eq-bars-2" width="51" height="29" class="alignnone size-full wp-image-208" /></p>
<p><span class="downloadfile"><a href='http://www.webstylepress.com/wp-content/uploads/2008/10/eq2.rar'>Download Files</a></span></p>
<p><a href="http://www.webstylepress.com/sound-control-in-flash/">Sound Control In Flash &#8211; Tutorial and Downloads</a> is a post from: <a href="http://www.webstylepress.com">Web Style Press, Best Practices from all the Web, Build Better Websites</a></p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://www.webstylepress.com/how-to-control-font-size-in-percentage/" title="How to Control Font Size in Percentage">How to Control Font Size in Percentage</a></li><li><a href="http://www.webstylepress.com/transition-between-sections-of-a-flash-movie/" title="Transition Between Sections of a Flash Movie">Transition Between Sections of a Flash Movie</a></li><li><a href="http://www.webstylepress.com/load-external-swfs-with-smooth-transition/" title="Load External SWFs With Smooth Transition">Load External SWFs With Smooth Transition</a></li><li><a href="http://www.webstylepress.com/buttons-control-in-flash/" title="Buttons Control In Flash">Buttons Control In Flash</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.webstylepress.com/sound-control-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

