<?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"
	>
<channel>
	<title>Comments on: DistortImage 2.0, the fastest way to freely distort image with Flash in actionscript</title>
	<atom:link href="http://www.flashsandy.org/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.flashsandy.org/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html</link>
	<description>The Adobe Flash 3D API</description>
	<pubDate>Thu, 20 Nov 2008 17:04:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Sentinel</title>
		<link>http://www.flashsandy.org/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43574</link>
		<dc:creator>Sentinel</dc:creator>
		<pubDate>Thu, 10 Jul 2008 11:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43574</guid>
		<description>Txs for this class, soz about my english :P, if any day I use it in a real-project, sure I do a donation!!!</description>
		<content:encoded><![CDATA[<p>Txs for this class, soz about my english :P, if any day I use it in a real-project, sure I do a donation!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kingoman</title>
		<link>http://www.flashsandy.org/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43547</link>
		<dc:creator>Kingoman</dc:creator>
		<pubDate>Thu, 03 Jul 2008 11:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43547</guid>
		<description>I tried distorting an image but the image looks very jaggy and not smooth at all when I distort the it. How do I fix that?</description>
		<content:encoded><![CDATA[<p>I tried distorting an image but the image looks very jaggy and not smooth at all when I distort the it. How do I fix that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://www.flashsandy.org/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43521</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Fri, 20 Jun 2008 14:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43521</guid>
		<description>I'm been having a lot of success with this class.  It's works wonderfully.  However,  ss there anyway I can prevent A DistorImage object from covering a foregound image?</description>
		<content:encoded><![CDATA[<p>I&#8217;m been having a lot of success with this class.  It&#8217;s works wonderfully.  However,  ss there anyway I can prevent A DistorImage object from covering a foregound image?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajitpal singh</title>
		<link>http://www.flashsandy.org/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43502</link>
		<dc:creator>ajitpal singh</dc:creator>
		<pubDate>Tue, 10 Jun 2008 08:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43502</guid>
		<description>thax!!! it is a nice example.... well i was trying with bitmap using mask.. i got a problem can we find which layer is having mask or not just by coding and getting that layer name????</description>
		<content:encoded><![CDATA[<p>thax!!! it is a nice example&#8230;. well i was trying with bitmap using mask.. i got a problem can we find which layer is having mask or not just by coding and getting that layer name????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://www.flashsandy.org/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43495</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Thu, 05 Jun 2008 12:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43495</guid>
		<description>I'm completely stuck with this... =o((

First I downloaded the Sandy-AS2-package (1.2), and extracted it into a folder. Then I adjusted my AS2-settings in Flash CS3, so that it points to this additional folder. Afterwards I created a new Flash-File (AS2), and added "import DistortImage;" into the first line of my Actionscriptlayer. But what next?

Everything I read was much too complex for my needs: all I need is to distort one image, and fill it into an empty MovieClip I positioned on my stage. It will later be shown as the "program" on a TV-screen which is slightly distorted, so I need to adjust the image as well. I know I could easily distort the image in Photoshop before, but I wanna know the way it's done in AS.

Any proposals, any help?

Thanks bunches, and best regards from Germany</description>
		<content:encoded><![CDATA[<p>I&#8217;m completely stuck with this&#8230; =o((</p>
<p>First I downloaded the Sandy-AS2-package (1.2), and extracted it into a folder. Then I adjusted my AS2-settings in Flash CS3, so that it points to this additional folder. Afterwards I created a new Flash-File (AS2), and added &#8220;import DistortImage;&#8221; into the first line of my Actionscriptlayer. But what next?</p>
<p>Everything I read was much too complex for my needs: all I need is to distort one image, and fill it into an empty MovieClip I positioned on my stage. It will later be shown as the &#8220;program&#8221; on a TV-screen which is slightly distorted, so I need to adjust the image as well. I know I could easily distort the image in Photoshop before, but I wanna know the way it&#8217;s done in AS.</p>
<p>Any proposals, any help?</p>
<p>Thanks bunches, and best regards from Germany</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robb</title>
		<link>http://www.flashsandy.org/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43410</link>
		<dc:creator>Robb</dc:creator>
		<pubDate>Thu, 01 May 2008 16:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43410</guid>
		<description>Try using the onLoadInit method. I have found in the past that the onLoadInit method is more reliable than the onLoadComplete. Also, you are inside a different scope when the onLoadInit is called. Try accessing those mc's from within the scope of the handler.

import DistortImage;

var loadListener:Object = new Object();

loadListener.onLoadInit = function(target_mc:MovieClip):Void {

var d:DistortImage = new DistortImage(target_mc._parent.cover, target_mc, 9, 9);
d.setTransform(-219,-325,271,-333,242,330,-275,261);
};

var mc_t:MovieClip = this.createEmptyMovieClip("cover", this.getNextHighestDepth());
var mc_b:MovieClip = this.createEmptyMovieClip("image", this.getNextHighestDepth());

var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
mcLoader.loadClip("Current-Editon-Sample.jpg",mc_b);

These are all just suggestions I am not sure if it will work but it's worth a shot. If that doesn't work try putting the d:Distort.. etc in a function external from the handler, and pass the target_mc to it. Just a suggestion.</description>
		<content:encoded><![CDATA[<p>Try using the onLoadInit method. I have found in the past that the onLoadInit method is more reliable than the onLoadComplete. Also, you are inside a different scope when the onLoadInit is called. Try accessing those mc&#8217;s from within the scope of the handler.</p>
<p>import DistortImage;</p>
<p>var loadListener:Object = new Object();</p>
<p>loadListener.onLoadInit = function(target_mc:MovieClip):Void {</p>
<p>var d:DistortImage = new DistortImage(target_mc._parent.cover, target_mc, 9, 9);<br />
d.setTransform(-219,-325,271,-333,242,330,-275,261);<br />
};</p>
<p>var mc_t:MovieClip = this.createEmptyMovieClip(&#8221;cover&#8221;, this.getNextHighestDepth());<br />
var mc_b:MovieClip = this.createEmptyMovieClip(&#8221;image&#8221;, this.getNextHighestDepth());</p>
<p>var mcLoader:MovieClipLoader = new MovieClipLoader();<br />
mcLoader.addListener(loadListener);<br />
mcLoader.loadClip(&#8221;Current-Editon-Sample.jpg&#8221;,mc_b);</p>
<p>These are all just suggestions I am not sure if it will work but it&#8217;s worth a shot. If that doesn&#8217;t work try putting the d:Distort.. etc in a function external from the handler, and pass the target_mc to it. Just a suggestion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarred</title>
		<link>http://www.flashsandy.org/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43322</link>
		<dc:creator>Jarred</dc:creator>
		<pubDate>Mon, 07 Apr 2008 23:28:56 +0000</pubDate>
		<guid isPermaLink="false">http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43322</guid>
		<description>I have the same question as Ricky.  I am doing almost the exact same thing.  I'm listening for the load, then onLoadComplete, running a function to distort the image.  I've even tried gotoAndStop(5), putting in the extra frames (not using a function call), but can't get the distortImage class to run on the MC that loads the external image.  

If somebody understands this, can you please pass the information along, so that those who find this post later after we've documented well how to do this can find the information helpful as well?

Thanks!

By The Way:  Awesome class!</description>
		<content:encoded><![CDATA[<p>I have the same question as Ricky.  I am doing almost the exact same thing.  I&#8217;m listening for the load, then onLoadComplete, running a function to distort the image.  I&#8217;ve even tried gotoAndStop(5), putting in the extra frames (not using a function call), but can&#8217;t get the distortImage class to run on the MC that loads the external image.  </p>
<p>If somebody understands this, can you please pass the information along, so that those who find this post later after we&#8217;ve documented well how to do this can find the information helpful as well?</p>
<p>Thanks!</p>
<p>By The Way:  Awesome class!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky</title>
		<link>http://www.flashsandy.org/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43269</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Fri, 07 Mar 2008 00:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43269</guid>
		<description>I tried to load a jpg then distort it, why doesn't it run the distort function once it has loaded the jpg?

import DistortImage;

var loadListener:Object = new Object();

loadListener.onLoadComplete = function(target_mc:MovieClip, httpStatus:Number):Void  {

	var d:DistortImage = new DistortImage(cover, image, 9, 9);
	d.setTransform(-219,-325,271,-333,242,330,-275,261);
};

var mc_t:MovieClip = this.createEmptyMovieClip("cover", this.getNextHighestDepth());
var mc_b:MovieClip = this.createEmptyMovieClip("image", this.getNextHighestDepth());

var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
mcLoader.loadClip("Current-Editon-Sample.jpg",mc_b);</description>
		<content:encoded><![CDATA[<p>I tried to load a jpg then distort it, why doesn&#8217;t it run the distort function once it has loaded the jpg?</p>
<p>import DistortImage;</p>
<p>var loadListener:Object = new Object();</p>
<p>loadListener.onLoadComplete = function(target_mc:MovieClip, httpStatus:Number):Void  {</p>
<p>	var d:DistortImage = new DistortImage(cover, image, 9, 9);<br />
	d.setTransform(-219,-325,271,-333,242,330,-275,261);<br />
};</p>
<p>var mc_t:MovieClip = this.createEmptyMovieClip(&#8221;cover&#8221;, this.getNextHighestDepth());<br />
var mc_b:MovieClip = this.createEmptyMovieClip(&#8221;image&#8221;, this.getNextHighestDepth());</p>
<p>var mcLoader:MovieClipLoader = new MovieClipLoader();<br />
mcLoader.addListener(loadListener);<br />
mcLoader.loadClip(&#8221;Current-Editon-Sample.jpg&#8221;,mc_b);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saya</title>
		<link>http://www.flashsandy.org/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43105</link>
		<dc:creator>Saya</dc:creator>
		<pubDate>Sun, 09 Dec 2007 11:03:38 +0000</pubDate>
		<guid isPermaLink="false">http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43105</guid>
		<description>I tried to make 2 simultaneous distortion, but only one picture was loaded. I think, I have problem with the variable.
This is the variable section,
/* a */
var mcx:MovieClip = this.createEmptyMovieClip ('xx', 1);
var bx:BitmapData = new BitmapData( texturex._width, texturex._height );
var dx:DistortImage = new DistortImage ( mcx, bx, 3, 3 );

/* b */
var mcy:MovieClip = this.createEmptyMovieClip ('yy', 1);
var by:BitmapData = new BitmapData( texturey._width, texturey._height );
var dy:DistortImage = new DistortImage ( mcy, by, 3, 3 );

With this condition, the picture for /* b */ is loaded. And when this code switched, /* a */ is loaded. Can you please help me to create 2 or more distortion at one time?</description>
		<content:encoded><![CDATA[<p>I tried to make 2 simultaneous distortion, but only one picture was loaded. I think, I have problem with the variable.<br />
This is the variable section,<br />
/* a */<br />
var mcx:MovieClip = this.createEmptyMovieClip (&#8217;xx&#8217;, 1);<br />
var bx:BitmapData = new BitmapData( texturex._width, texturex._height );<br />
var dx:DistortImage = new DistortImage ( mcx, bx, 3, 3 );</p>
<p>/* b */<br />
var mcy:MovieClip = this.createEmptyMovieClip (&#8217;yy&#8217;, 1);<br />
var by:BitmapData = new BitmapData( texturey._width, texturey._height );<br />
var dy:DistortImage = new DistortImage ( mcy, by, 3, 3 );</p>
<p>With this condition, the picture for /* b */ is loaded. And when this code switched, /* a */ is loaded. Can you please help me to create 2 or more distortion at one time?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiroukou</title>
		<link>http://www.flashsandy.org/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43018</link>
		<dc:creator>kiroukou</dc:creator>
		<pubDate>Tue, 23 Oct 2007 16:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://sandy.media-box.net/blog/distortimage-20-the-fastest-way-to-freely-distort-image-with-flash-in-actionscript.html#comment-43018</guid>
		<description>It can be used with movieclips right. But it is always a bitmap version of the Movieclip frame that you'll see. So no interaction there.

The forum registration shall be fixed. Sorry for the pb.</description>
		<content:encoded><![CDATA[<p>It can be used with movieclips right. But it is always a bitmap version of the Movieclip frame that you&#8217;ll see. So no interaction there.</p>
<p>The forum registration shall be fixed. Sorry for the pb.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
