<?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>elearninglive.com &#187; unloadAndStop</title>
	<atom:link href="http://elearninglive.com/wordpress/tag/unloadandstop/feed/" rel="self" type="application/rss+xml" />
	<link>http://elearninglive.com/wordpress</link>
	<description>Quality web solutions.</description>
	<lastBuildDate>Wed, 28 Jul 2010 18:38:03 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>unloadAndStop in Flash Player 10 &#8211;  Necessary for Captivate and AVM1 Content</title>
		<link>http://elearninglive.com/wordpress/2009/01/unloadandstop-in-flash-player-10-necessary-for-captivate-and-avm1-content/</link>
		<comments>http://elearninglive.com/wordpress/2009/01/unloadandstop-in-flash-player-10-necessary-for-captivate-and-avm1-content/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 15:04:34 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Captivate]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AVM1]]></category>
		<category><![CDATA[stopAndUnload]]></category>
		<category><![CDATA[unloadAndStop]]></category>

		<guid isPermaLink="false">http://elearninglive.com/wordpress/?p=213</guid>
		<description><![CDATA[I spent a good part of yesterday trying to figure out a solution to this problem:
- I had coded a course &#8216;gui&#8217; with navigation controls such as previous/next buttons, and a List component for the non-linear navigation.
- The list component is populated via an XML file that contains the path to the individual swf, and [...]]]></description>
			<content:encoded><![CDATA[<p>I spent a good part of yesterday trying to figure out a solution to this problem:</p>
<p>- I had coded a course &#8216;gui&#8217; with navigation controls such as previous/next buttons, and a List component for the non-linear navigation.</p>
<p>- The list component is populated via an XML file that contains the path to the individual swf, and the label, and also an icon string (an undocumented feature &#8211; that&#8217;s another post).</p>
<p>- For the prototype, most of the content was in AS3, developed purely in Flash, with the exception of a single Captivate-generated swf that was published from Captivate 3, and thus an AVM1 swf.</p>
<p>- After getting the prototype right, I decided to develop the remaining content in Captivate whenever possible to speed up things. After putting together a few more Captivate-generated swfs, I tested and the result was that whenever I navigated away from a Captivate swf and loaded another Captivate swf, the sound from the previously loaded Captivate swf&#8217;s would continue. In other words, using the unload() method of the Loader class doesn&#8217;t truly unload the content of the Loader. To make things worse, I was even *removing* the Loader instance and creating a new one. Still, the audio would keep playing. Terrible!</p>
<p>After googling I come to find out this is a known issue:</p>
<p>http://www.gskinner.com/blog/archives/2008/07/unloadandstop_i.html</p>
<p>So, the workaround was to use the unloadAndStop method of the Loader class, which unfortunately is only available in Flash Player 10. Fortunately, I have the leeway to force my users to move to FP10 if they have to. Most people wouldn&#8217;t.</p>
<p>Of course, then after I get that sorted out I come to find out that Captivate 4 was released yesterday : ) I have started to publish the Captivate&#8217;s with the &#8216;AS3&#8242; spec but I&#8217;m not sure if that helps or not.</p>
<p>Has anyone tried that?</p>
]]></content:encoded>
			<wfw:commentRss>http://elearninglive.com/wordpress/2009/01/unloadandstop-in-flash-player-10-necessary-for-captivate-and-avm1-content/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
