<?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: ImageLoader class for Flash 8</title>
	<atom:link href="http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/</link>
	<description>Martijn de Visser on User Experience, Front End technology (and whatnot).</description>
	<lastBuildDate>Tue, 16 Feb 2010 13:58:41 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Doug</title>
		<link>http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/comment-page-1/#comment-3555</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Sun, 25 Oct 2009 20:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/#comment-3555</guid>
		<description>Thanks - problem solved.

I&#039;m an idiot that doesn&#039;t use classes very often - you might want to specifically instruct people to create an ImageLoader.as file and paste the linked code into it because it took me all afternoon to figure out what was going wrong.  

The code works great though, thanks!</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; problem solved.</p>
<p>I&#8217;m an idiot that doesn&#8217;t use classes very often &#8211; you might want to specifically instruct people to create an ImageLoader.as file and paste the linked code into it because it took me all afternoon to figure out what was going wrong.  </p>
<p>The code works great though, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/comment-page-1/#comment-3554</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Sun, 25 Oct 2009 20:41:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/#comment-3554</guid>
		<description>It&#039;s still not working - I even created an .as file called ImageLoader.as and pasted Tinic Uro&#039;s code into it - is that what you wanted us to do?

Now, the error message I&#039;m getting is:
Line 42: ActionScript 2.0 class scripts may only define class or interface constructs.
     }

I use Flash Pro 8.

Thanks</description>
		<content:encoded><![CDATA[<p>It&#8217;s still not working &#8211; I even created an .as file called ImageLoader.as and pasted Tinic Uro&#8217;s code into it &#8211; is that what you wanted us to do?</p>
<p>Now, the error message I&#8217;m getting is:<br />
Line 42: ActionScript 2.0 class scripts may only define class or interface constructs.<br />
     }</p>
<p>I use Flash Pro 8.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/comment-page-1/#comment-3553</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Sun, 25 Oct 2009 20:29:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/#comment-3553</guid>
		<description>I pasted the code into the timeline and it doesn&#039;t work for me.

What am I doing wrong?  I have a feeling it has to do with &quot;classes&quot; - I&#039;m new to classes.

The error message returned was:
**Error** Scene=Scene 1, layer=action, frame=1:Line 3: The class or interface &#039;ImageLoader&#039; could not be loaded.
     var loader:ImageLoader = new ImageLoader();</description>
		<content:encoded><![CDATA[<p>I pasted the code into the timeline and it doesn&#8217;t work for me.</p>
<p>What am I doing wrong?  I have a feeling it has to do with &#8220;classes&#8221; &#8211; I&#8217;m new to classes.</p>
<p>The error message returned was:<br />
<b>Error</b> Scene=Scene 1, layer=action, frame=1:Line 3: The class or interface &#8216;ImageLoader&#8217; could not be loaded.<br />
     var loader:ImageLoader = new ImageLoader();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asri</title>
		<link>http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/comment-page-1/#comment-3320</link>
		<dc:creator>asri</dc:creator>
		<pubDate>Mon, 25 May 2009 12:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/#comment-3320</guid>
		<description>how if i want to load more than one image, and in my case i want to add my own listener.,could i?

Thanks</description>
		<content:encoded><![CDATA[<p>how if i want to load more than one image, and in my case i want to add my own listener.,could i?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/comment-page-1/#comment-2346</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 23 Dec 2008 23:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/#comment-2346</guid>
		<description>Wonderful, wonderful class.  It made a world of a difference and was ridiculously easy to implement.  Bravo!</description>
		<content:encoded><![CDATA[<p>Wonderful, wonderful class.  It made a world of a difference and was ridiculously easy to implement.  Bravo!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/comment-page-1/#comment-1323</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Mon, 08 Dec 2008 15:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/#comment-1323</guid>
		<description>excellent class.  This really is a very handy bit of code.  Thanks.</description>
		<content:encoded><![CDATA[<p>excellent class.  This really is a very handy bit of code.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: João</title>
		<link>http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/comment-page-1/#comment-43</link>
		<dc:creator>João</dc:creator>
		<pubDate>Thu, 05 Jun 2008 11:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/#comment-43</guid>
		<description>problem solved :D

public function setImage(l:String):Void
{
var loader:ImageLoader = new ImageLoader(this);
loader.loadImage(l.toString(), img_mc); // where l is a string coming from loaded xml
}</description>
		<content:encoded><![CDATA[<p>problem solved <img src='http://www.martijndevisser.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>public function setImage(l:String):Void<br />
{<br />
var loader:ImageLoader = new ImageLoader(this);<br />
loader.loadImage(l.toString(), img_mc); // where l is a string coming from loaded xml<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: João</title>
		<link>http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/comment-page-1/#comment-42</link>
		<dc:creator>João</dc:creator>
		<pubDate>Thu, 05 Jun 2008 10:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/#comment-42</guid>
		<description>I&#039;m having some problems with the class. I´m loading the class into a another one:

import com.planche.ImageLoader;

and then on a function:

public function setImage(l:String):Void
{
	var loader:ImageLoader = new ImageLoader(this);
	loader.loadImage(l, img_mc); // where l is a string coming from loaded xml
}

I&#039;ve made some tracing and the l string is ok, but the image doesn&#039;t load... any help or any problem found..</description>
		<content:encoded><![CDATA[<p>I&#8217;m having some problems with the class. I&Acirc;&acute;m loading the class into a another one:</p>
<p>import com.planche.ImageLoader;</p>
<p>and then on a function:</p>
<p>public function setImage(l:String):Void<br />
{<br />
	var loader:ImageLoader = new ImageLoader(this);<br />
	loader.loadImage(l, img_mc); // where l is a string coming from loaded xml<br />
}</p>
<p>I&#8217;ve made some tracing and the l string is ok, but the image doesn&#8217;t load&#8230; any help or any problem found..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joakim</title>
		<link>http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/comment-page-1/#comment-41</link>
		<dc:creator>Joakim</dc:creator>
		<pubDate>Tue, 13 May 2008 18:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/#comment-41</guid>
		<description>Ran into a couple problems using this script as we needed to load images across domains in a flash banner ad.

1) The mLoader instance within the class has no parent MovieClip, and triggers sandbox violations when loading images across domains. Replacing the constructor function remedies the problem:

public function ImageLoader ( targetMc:MovieClip ) {
	targetMc.mcLoader = new MovieClipLoader();
	mLoader = targetMc.mcLoader;
	addListener(this);
}

2) This requires a change in the instantiation code, as the parent(ing) movieClip needs to be passed as an argument:

1. var loader:ImageLoader = new ImageLoader(this);
2. loader.loadImage( &quot;some_image.jpg&quot;, some_mc );

3) We removed this line in the instantiation script:

loader.addListener(this);

The listener is added immediately within the class in the constructor function, so this seems redundant?

Hope this can be used by others needing Flash 8 dynamic bitmap smoothing, and thanks Martijn!</description>
		<content:encoded><![CDATA[<p>Ran into a couple problems using this script as we needed to load images across domains in a flash banner ad.</p>
<p>1) The mLoader instance within the class has no parent MovieClip, and triggers sandbox violations when loading images across domains. Replacing the constructor function remedies the problem:</p>
<p>public function ImageLoader ( targetMc:MovieClip ) {<br />
	targetMc.mcLoader = new MovieClipLoader();<br />
	mLoader = targetMc.mcLoader;<br />
	addListener(this);<br />
}</p>
<p>2) This requires a change in the instantiation code, as the parent(ing) movieClip needs to be passed as an argument:</p>
<p>1. var loader:ImageLoader = new ImageLoader(this);<br />
2. loader.loadImage( &#8220;some_image.jpg&#8221;, some_mc );</p>
<p>3) We removed this line in the instantiation script:</p>
<p>loader.addListener(this);</p>
<p>The listener is added immediately within the class in the constructor function, so this seems redundant?</p>
<p>Hope this can be used by others needing Flash 8 dynamic bitmap smoothing, and thanks Martijn!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/comment-page-1/#comment-38</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Wed, 31 Oct 2007 03:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.martijndevisser.com/blog/2006/imageloader-class-for-flash-8/#comment-38</guid>
		<description>Very useful piece of code, thanks for that.

Only unfortunate issue is that it seems to slow Flash down a lot. Is this built into newer (9+) versions of the player, I remember Tinic mentioning a more native smoothing function?</description>
		<content:encoded><![CDATA[<p>Very useful piece of code, thanks for that.</p>
<p>Only unfortunate issue is that it seems to slow Flash down a lot. Is this built into newer (9+) versions of the player, I remember Tinic mentioning a more native smoothing function?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
