<?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>Flex Examples &#187; bytesTotal</title>
	<atom:link href="http://blog.flexexamples.com/tag/bytestotal/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Determining the size of your Flex application</title>
		<link>http://blog.flexexamples.com/2008/10/29/determining-the-size-of-your-flex-application/</link>
		<comments>http://blog.flexexamples.com/2008/10/29/determining-the-size-of-your-flex-application/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 05:25:03 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[bytesTotal]]></category>
		<category><![CDATA[loaderInfo]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/29/determining-the-size-of-your-flex-application/</guid>
		<description><![CDATA[<p>The following example shows how you can determine the total bytes of your Flex application by accessing the loaderInfo.bytesTotal property.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/loaderInfo_bytesTotal_test/bin/srcview/source/main.mxml.html">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/10/29/determining-the-size-of-your-flex-application/ --&#62; &#60;mx:Application name="loaderInfo_bytesTotal_test" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" applicationComplete="init();"&#62; &#60;mx:Script&#62; &#60;![CDATA[ private function init():void { var bTotal:uint = loaderInfo.bytesTotal; lbl.text = [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can determine the total bytes of your Flex application by accessing the <code>loaderInfo.bytesTotal</code> property.</p>
<p>Full code after the jump.</p>
<p><span id="more-847"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/loaderInfo_bytesTotal_test/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/10/29/determining-the-size-of-your-flex-application/ --&gt;
&lt;mx:Application name="loaderInfo_bytesTotal_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        applicationComplete="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function init():void {
                var bTotal:uint = loaderInfo.bytesTotal;
                lbl.text = "bytesTotal: " + numberFormatter.format(bTotal);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:NumberFormatter id="numberFormatter" /&gt;

    &lt;mx:Label id="lbl" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/loaderInfo_bytesTotal_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/loaderInfo_bytesTotal_test/bin/main.html" width="100%" height="100"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Determining the size of your Flex application on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/10/29/determining-the-size-of-your-flex-application/',contentID: 'post-847',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'bytesTotal,loaderInfo',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/10/29/determining-the-size-of-your-flex-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

