<?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>Breathing Spring &#187; Uncategorized</title>
	<atom:link href="http://breathing-spring.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://breathing-spring.com</link>
	<description></description>
	<lastBuildDate>Tue, 29 Jun 2010 07:48:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Loading external image with preloading and getting width and height</title>
		<link>http://breathing-spring.com/loading-external-image-with-preloading-and-getting-width-and-height/</link>
		<comments>http://breathing-spring.com/loading-external-image-with-preloading-and-getting-width-and-height/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 07:45:08 +0000</pubDate>
		<dc:creator>Lamis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://breathing-spring.com/?p=155</guid>
		<description><![CDATA[I&#8217;ve tried loadComplete but oddly it didnt work..then I tried on EnterFrame and oddly it worked O.o
Here is the code
//Loading Images
function LoadImage(image, targetMC) {
targetMC.loadMovie(image);
this.onEnterFrame = function() {
var Percent = Math.ceil(targetMC.getBytesLoaded()/targetMC.getBytesTotal()*100);
if (Percent == 100) {
trace(&#8220;Width: &#8220;+targetMC._width);
trace(&#8220;Height: &#8220;+targetMC._height);
delete this.onEnterFrame;
}
};
}
just then we call the function that way
LoadImage and it should work fine ^_^
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve tried loadComplete but oddly it didnt work..then I tried on EnterFrame and oddly it worked O.o</p>
<p>Here is the code</p>
<p>//Loading Images<br />
function LoadImage(image, targetMC) {<br />
targetMC.loadMovie(image);<br />
this.onEnterFrame = function() {<br />
var Percent = Math.ceil(targetMC.getBytesLoaded()/targetMC.getBytesTotal()*100);<br />
if (Percent == 100) {<br />
trace(&#8220;Width: &#8220;+targetMC._width);<br />
trace(&#8220;Height: &#8220;+targetMC._height);<br />
delete this.onEnterFrame;<br />
}<br />
};</p>
<p>}</p>
<p>just then we call the function that way</p>
<p>LoadImage and it should work fine ^_^</p>
]]></content:encoded>
			<wfw:commentRss>http://breathing-spring.com/loading-external-image-with-preloading-and-getting-width-and-height/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
