<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Unload an externally loaded swf file</title>
	<atom:link href="http://www.myflashlab.com/2010/01/23/unload-an-externally-loaded-swf-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.myflashlab.com/2010/01/23/unload-an-externally-loaded-swf-file/</link>
	<description>web components</description>
	<lastBuildDate>Sat, 31 Dec 2011 15:02:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Nomar</title>
		<link>http://www.myflashlab.com/2010/01/23/unload-an-externally-loaded-swf-file/comment-page-1/#comment-532</link>
		<dc:creator>Nomar</dc:creator>
		<pubDate>Fri, 30 Dec 2011 00:19:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.myflashlab.com/?p=69#comment-532</guid>
		<description>Thanks, Hadi, I&#039;ll try to find how it is written.
Best regards,



Nomar</description>
		<content:encoded><![CDATA[<p>Thanks, Hadi, I&#8217;ll try to find how it is written.<br />
Best regards,</p>
<p>Nomar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.myflashlab.com/2010/01/23/unload-an-externally-loaded-swf-file/comment-page-1/#comment-529</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 27 Dec 2011 13:32:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.myflashlab.com/?p=69#comment-529</guid>
		<description>Nomar, I&#039;m not sure how the &quot;Slide Show Pro&quot; works as I never have used it myself, but if it&#039;s written with OOP standards, it should have a method, or property or something that would let you stop its functionality, right? if you see a method call in the component that let&#039;s you stop the slideshow, then all you have to do, is to copy and paste the code in this blog, to the first frame of your FLA and call that method from the &quot;onStageRemoved&quot; function.

Hadi</description>
		<content:encoded><![CDATA[<p>Nomar, I&#8217;m not sure how the &#8220;Slide Show Pro&#8221; works as I never have used it myself, but if it&#8217;s written with OOP standards, it should have a method, or property or something that would let you stop its functionality, right? if you see a method call in the component that let&#8217;s you stop the slideshow, then all you have to do, is to copy and paste the code in this blog, to the first frame of your FLA and call that method from the &#8220;onStageRemoved&#8221; function.</p>
<p>Hadi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nomar</title>
		<link>http://www.myflashlab.com/2010/01/23/unload-an-externally-loaded-swf-file/comment-page-1/#comment-526</link>
		<dc:creator>Nomar</dc:creator>
		<pubDate>Sun, 25 Dec 2011 21:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.myflashlab.com/?p=69#comment-526</guid>
		<description>Hi guys,
Thanks once more for sharing your time and expertise.

I&#039;ve been totally unsuccessful in solving this problem on &quot;removing external SWF files&quot;.  After trying many other codes, I used yours, but due to my extreme lack of even basic knowledge in AS, I couldn&#039;t make it work.  The fact is that I have no clue of what to write in the &quot;kill all listeners and running processes here&quot; area...

The FLA I created to generate my SWF file has no code in it whatsoever. It has just one frame, where I place a Flash component called &quot;Slide Show Pro&quot;.  I load it into your &quot;Rose&quot; template, and it works just fine, but of course, videos keeps playing when one goes to a different page.  You can see it in a hidden page I have in the site: http://www.greenfieldbmc.com/indexVideo.html#/GF_Video-Gal/

Could you please help with this?  I would certainly be very thankful.  

Thanks in advance, and once again, Merry Christmas and best wishes for next year.  Take care,



Nomar</description>
		<content:encoded><![CDATA[<p>Hi guys,<br />
Thanks once more for sharing your time and expertise.</p>
<p>I&#8217;ve been totally unsuccessful in solving this problem on &#8220;removing external SWF files&#8221;.  After trying many other codes, I used yours, but due to my extreme lack of even basic knowledge in AS, I couldn&#8217;t make it work.  The fact is that I have no clue of what to write in the &#8220;kill all listeners and running processes here&#8221; area&#8230;</p>
<p>The FLA I created to generate my SWF file has no code in it whatsoever. It has just one frame, where I place a Flash component called &#8220;Slide Show Pro&#8221;.  I load it into your &#8220;Rose&#8221; template, and it works just fine, but of course, videos keeps playing when one goes to a different page.  You can see it in a hidden page I have in the site: <a href="http://www.greenfieldbmc.com/indexVideo.html#/GF_Video-Gal/" rel="nofollow">http://www.greenfieldbmc.com/indexVideo.html#/GF_Video-Gal/</a></p>
<p>Could you please help with this?  I would certainly be very thankful.  </p>
<p>Thanks in advance, and once again, Merry Christmas and best wishes for next year.  Take care,</p>
<p>Nomar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.myflashlab.com/2010/01/23/unload-an-externally-loaded-swf-file/comment-page-1/#comment-160</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 08 Dec 2010 06:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.myflashlab.com/?p=69#comment-160</guid>
		<description>I&#039;m glad it helped :)</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad it helped <img src='http://www.myflashlab.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.myflashlab.com/2010/01/23/unload-an-externally-loaded-swf-file/comment-page-1/#comment-159</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 08 Dec 2010 00:22:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.myflashlab.com/?p=69#comment-159</guid>
		<description>I must have spent five hours trying to fix this problem. I realized my removeEventListener was not working, but could not figure out how why; even when I figured out that removing the object from the stage (and then adding it later) was causing the problem, I could not find a simple way to correct it. Your code really helped. Sometimes I wish Adobe would give more examples; a lot of the time, their &quot;documentation&quot; is so vague that it&#039;s useless. Anyway, thanks much!</description>
		<content:encoded><![CDATA[<p>I must have spent five hours trying to fix this problem. I realized my removeEventListener was not working, but could not figure out how why; even when I figured out that removing the object from the stage (and then adding it later) was causing the problem, I could not find a simple way to correct it. Your code really helped. Sometimes I wish Adobe would give more examples; a lot of the time, their &#8220;documentation&#8221; is so vague that it&#8217;s useless. Anyway, thanks much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.myflashlab.com/2010/01/23/unload-an-externally-loaded-swf-file/comment-page-1/#comment-78</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 07 Aug 2010 12:11:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.myflashlab.com/?p=69#comment-78</guid>
		<description>if you&#039;re coding in timeline, put that code on the first frame of your external SWF file.</description>
		<content:encoded><![CDATA[<p>if you&#8217;re coding in timeline, put that code on the first frame of your external SWF file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EMG</title>
		<link>http://www.myflashlab.com/2010/01/23/unload-an-externally-loaded-swf-file/comment-page-1/#comment-76</link>
		<dc:creator>EMG</dc:creator>
		<pubDate>Thu, 05 Aug 2010 12:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.myflashlab.com/?p=69#comment-76</guid>
		<description>Can you help me with this ?
Here is my code for my current video player. I want to use this in a flip book. When the page is turned I need the video to stop playing.

Below this code is my code for the video player. Where do I put the remove from stage code? 

import flash.events.Event;
this.addEventListener(Event.REMOVED_FROM_STAGE, onStageRemoved);
function onStageRemoved(e:Event):void
{
// kill all listeneres and running processes here.
}


My code:

function videoOne(event:MouseEvent):void{
	pubPlayer.source=&quot;bill.flv&quot;;
}
function videoTwo(event:MouseEvent):void {
	pubPlayer.source=&quot;jeff.flv&quot;;
}
bill.addEventListener(MouseEvent.CLICK,videoOne);
jeff.addEventListener(MouseEvent.CLICK,videoTwo);</description>
		<content:encoded><![CDATA[<p>Can you help me with this ?<br />
Here is my code for my current video player. I want to use this in a flip book. When the page is turned I need the video to stop playing.</p>
<p>Below this code is my code for the video player. Where do I put the remove from stage code? </p>
<p>import flash.events.Event;<br />
this.addEventListener(Event.REMOVED_FROM_STAGE, onStageRemoved);<br />
function onStageRemoved(e:Event):void<br />
{<br />
// kill all listeneres and running processes here.<br />
}</p>
<p>My code:</p>
<p>function videoOne(event:MouseEvent):void{<br />
	pubPlayer.source=&#8221;bill.flv&#8221;;<br />
}<br />
function videoTwo(event:MouseEvent):void {<br />
	pubPlayer.source=&#8221;jeff.flv&#8221;;<br />
}<br />
bill.addEventListener(MouseEvent.CLICK,videoOne);<br />
jeff.addEventListener(MouseEvent.CLICK,videoTwo);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kriss</title>
		<link>http://www.myflashlab.com/2010/01/23/unload-an-externally-loaded-swf-file/comment-page-1/#comment-8</link>
		<dc:creator>Kriss</dc:creator>
		<pubDate>Wed, 10 Feb 2010 22:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.myflashlab.com/?p=69#comment-8</guid>
		<description>Hi!

Thanks for posting this tip! I struggled with this problem like so many others and non of the other solutions out there worked, but this one did.

Thanks again and keep up the good work!
Regards
Kriss</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Thanks for posting this tip! I struggled with this problem like so many others and non of the other solutions out there worked, but this one did.</p>
<p>Thanks again and keep up the good work!<br />
Regards<br />
Kriss</p>
]]></content:encoded>
	</item>
</channel>
</rss>

