<?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>Axelology &#187; Air</title>
	<atom:link href="http://www.axelscript.com/category/air/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.axelscript.com</link>
	<description>Axel Jensen on Flex, Coldfusion and... other stuff</description>
	<lastBuildDate>Thu, 29 Dec 2011 17:03:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Looping through an objects properties</title>
		<link>http://www.axelscript.com/2009/09/18/looping-through-an-objects-properties/</link>
		<comments>http://www.axelscript.com/2009/09/18/looping-through-an-objects-properties/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 17:40:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=366</guid>
		<description><![CDATA[This post posts a snippet of code of how to loop through an objects properties in order to get the key names. About six months ago we had some convoluted way of doing something on the backend (PHP), and in order to get something back I was give an single object with a ton of [...]]]></description>
			<content:encoded><![CDATA[<p>This post posts a snippet of code of how to loop through an objects properties in order to get the key names.</p>
<p>About six months ago we had some convoluted way of doing something on the backend (PHP), and in order to get something back I was give an single object with a ton of properties and I had to loop over them.  For the life of me I couldn&#8217;t find any snippets of code that let me loop through an objects properties and get the actual key names&#8230; its very simple to loop through an object and get the values, thats cake&#8230;. but I was like&#8230; hmmm how do I get the key names?</p>
<p>So I came across Dictionary, which I always thought was just an expansion of Object, and I could never really figure out what it did that object didn&#8217;t except for the fact that <a href="http://code.google.com/p/as3corelib/">as3coreLib</a> has a Dictionary Utility class that makes it so you can loop over an object and get the keys, and its a light weight .swc file, so I used it up, and started using dictionaries for that reason, and haven&#8217;t used Generic Objects ever since, because I figured they did the same thing except Dictionary classes gave me the ability to loop through them and get the keys&#8230;. </p>
<p>The other day I ran across some code, and thought to myself, so I use a DictionaryUtility class, why didn&#8217;t I ever think to even look through the ObjectUtil class in as3&#8230; so anyway&#8230;. there is a function in that class called getClassInfo, that will give you an array of the properties back&#8230; I felt pretty stupid after that, but needless to say I found another way to make my life easier coding&#8230;.</p>
<p>here is a really small snippet.</p>
<p><code>var classInfoProperties:Array = ObjectUtil.getClassInfo(a[0]).properties as Array;</code></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=366&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2009/09/18/looping-through-an-objects-properties/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Publishing your app by Email with ANT</title>
		<link>http://www.axelscript.com/2008/10/08/publishing-by-email-with-ant/</link>
		<comments>http://www.axelscript.com/2008/10/08/publishing-by-email-with-ant/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 20:15:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[VideoBlog]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=213</guid>
		<description><![CDATA[This post has a video that explains how to you use ANT to email your source code and or swf (or .air) file to the client (if you need to). It even involves how to zip the project up using ANT as well. To use email with ant you need the following 3 jar files [...]]]></description>
			<content:encoded><![CDATA[<p>This post has a video that explains how to you use <a href="http://ant.apache.org/">ANT</a> to email your source code and or swf (or .air) file to the client (if you need to).  It even involves how to zip the project up using ANT as well.</p>
<p>To use email with ant you need the following 3 jar files installed.</p>
<ul>
<li><a href="http://www.java2s.com/Code/Jar/glassfish/Downloadantjavamailjar.htm" target="_blank">ant-javamail.jar</a></li>
<li><a href="http://www.java2s.com/Code/Jar/glassfish/Downloadactivationjar.htm" target="_blank">activation.jar</a></li>
<li><a href="http://www.java2s.com/Code/Jar/glassfish/Downloadmailjar.htm" target="_blank">mail.jar</a></li>
</ul>
<p>After you download the files you need to put them into your ant directory under your eclipse install &#8220;/plugins/org.apache.ant_******/ folder.  If you watch the video, I explain how to find the ant folder if you don&#8217;t know where it is.  For me it is &#8220;C:\Program Files\Adobe\Flex Builder 3\plugins\org.apache.ant_1.7.0.v200706080842\lib&#8221;.  That is where all the ant jar files are held.  You need to put the jar&#8217;s you downloaded into that folder, and then in eclipse you need to do the following.</p>
<ol>
<li>Window > Preferences > (on left tree) Ant > Runtime</li>
<li>Once you&#8217;ve clicked on &#8220;Runtime&#8221; you&#8217;ll see a tree in the right side and the first entry should say &#8220;Ant Home Entries(Default) you need to click that, and then all of the buttons on the right will become enabled to click on</li>
<li>click on &#8220;Add External JARs</li>
<li>browse to your ant directory where all the jars are (for me its C:\Program Files\Adobe\Flex Builder 3\plugins\org.apache.ant_1.7.0.v200706080842\lib)</li>
<li>highlight your jar files that you downloaded and click ok (ant-javamail.jar,activation.jar,mail.jar)</li>
<li>click apply</li>
<li>restart flex builder or eclipse (whichever you are using)</li>
</ol>
<p>Now we are finally ready to get into the ANT part&#8230;<br />
<span id="more-213"></span></p>
<p>Start by going into whatever flex project you want (or creating one) and then create two files under the root.</p>
<p><b>project.properties</b><br />
<code>##### EMAIL PROPERTIES #####<br />
email.server	= smtp.gmail.com<br />
email.ssl	 	= true<br />
email.user	 	= someemail@gmail.com<br />
email.from	 	= someemail@gmail.com<br />
email.password	= myReallyStrongPassword<br />
email.to	 	= someemail@gmail.com<br />
email.port	 	= 465</p>
<p>##### ZIP PROPERTIES #####<br />
zip.destinationFile		= E:/fb3Workspace/TempPublish/${zip.filename}.zip<br />
zip.filename			= src-code<br />
zip.dir					= E:/fb3Workspace/TempPublish/src<br />
</code></p>
<p><b>Build.xml</b><br />
<code>&lt;project name="Publishing your project via Email with ANT"&gt;</p>
<p>	<!--<br />
	User specific configuration properties. Typically this is the only file you need to modify<br />
	--><br />
	&lt;property file="project.properties" /&gt;</p>
<p>	&lt;target name="mail-project-to-client" depends="zip-project, send-email" /&gt;</p>
<p>	&lt;target name="send-email"&gt;<br />
		&lt;mail<br />
			tolist			=	"${email.to}"<br />
			from			=	"${email.from}"<br />
			subject			=	"New Version of file"<br />
			mailhost		=	"${email.server}"<br />
			mailport		=	"${email.port}"<br />
			ssl				=	"${email.ssl}"<br />
			user			=	"${email.user}"<br />
			password		=	"${email.password}"<br />
			messagemimetype	=	"text/html"<br />
			&gt;<br />
			&lt;message&gt;&lt;![CDATA[<br />
			&lt;p&gt;<br />
				this is my html message you have a new zip file attached<br />
			&lt;/p&gt;<br />
			]]&gt;<br />
			&lt;/message&gt;<br />
			&lt;fileset file="${zip.destinationFile}"&gt;<br />
				&lt;exclude name="**/*.svn"/&gt;<br />
			&lt;/fileset&gt;<br />
		&lt;/mail&gt;<br />
	&lt;/target&gt;</p>
<p>	&lt;target name="zip-project"&gt;<br />
		&lt;zip destfile="${zip.destinationFile}" duplicate="preserve"&gt;<br />
			&lt;zipfileset dir="${zip.dir}" /&gt;<br />
		&lt;/zip&gt;<br />
	&lt;/target&gt;<br />
&lt;/project&gt;</code></p>
<p>Please see the video for more detail.</p>
<h4>Pushing your project via Email with ANT (takes a little bit to load)</h4>
<p><object id="csSWF" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="498" codebase="http://active.macromedia.com/flash7/cabs/ swflash.cab#version=9,0,28,0"><param name="src" value="http://www.axelscript.com/wp-content/Examples/UsingAntToPublishProjectViaEmail/usingANTtoPublishProjectViaEmail.swf"/><param name="bgcolor" value="#1a1a1a"/><param name="quality" value="best"/><param name="allowScriptAccess" value="always"/><param name="allowFullScreen" value="true"/><param name="scale" value="showall"/><param name="flashVars" value="autostart=false"/><embed name="csSWF" src="http://www.axelscript.com/wp-content/Examples/UsingAntToPublishProjectViaEmail/usingANTtoPublishProjectViaEmail.swf" width="640" height="498" bgcolor="#1a1a1a" quality="best" allowScriptAccess="always" allowFullScreen="true" scale="showall" flashVars="autostart=false" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></p>
<p>NOTE:Please note that the zip format allows multiple files of the same fully-qualified name to exist within a single archive. This has been documented as causing various problems for unsuspecting users. If you wish to avoid this behavior you must set the duplicate attribute to a value other than its default, &#8220;add&#8221;. (<a href="http://ant.apache.org/manual/CoreTasks/zip.html">zip tag documentation</a>)</p>
<p>Links:</p>
<ul>
<li><a href="http://ant.apache.org/manual/CoreTasks/zip.html">zip tag documentation</a></li>
</ul>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=213&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/10/08/publishing-by-email-with-ant/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Publishing Air Apps with ANT and FTP</title>
		<link>http://www.axelscript.com/2008/10/07/publishing-air-apps-with-ant-and-ftp/</link>
		<comments>http://www.axelscript.com/2008/10/07/publishing-air-apps-with-ant-and-ftp/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 20:11:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[VideoBlog]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=193</guid>
		<description><![CDATA[This post discusses and includes a video of how to publish your .air files to your server with an ANT script via FTP. ANT is a xml scripting language that can be used for many things, but in our case it&#8217;s going to be application deployment. The Problem When you create an air app and [...]]]></description>
			<content:encoded><![CDATA[<p>This post discusses and includes a video of how to publish your .air files to your server with an <a href="http://ant.apache.org/" taget="_blank">ANT</a> script via FTP. ANT is a xml scripting language that can be used for many things, but in our case it&#8217;s going to be application deployment.</p>
<h4>The Problem</h4>
<p>When you create an air app and host it on a server somewhere, you often times have updates, and you need to publish a new .air file to the server so people that continue to download your app, get the newest, healthiest version.  The problem with that is that after bug fix (which may take all of 2 minutes), you need to connect to your ftp site, or ssh, or email the new file to yourself, remote desktop into the server, and check your email and put the new file into it&#8217;s correct path on the server.</p>
<h4>The Solution</h4>
<p>Create an ANT Script that logs into you ftp site, and uploads the new files, and it goes from a some what menacing task, to being a delightful 2 or 3 click deployment.  There are some things you have to do to eclipse to get the ftp tag to work right in ANT&#8230; They are listed below in the steps to take to get ANT up and going in eclipse or flexbuilder.</p>
<p><code>ftp.username        = username<br />
ftp.password        = password<br />
ftp.dir		= dirToUploadFilesTo<br />
ftp.server          = myDomain.com<br />
ftp.localDir        = E:/ClickStats_Basketball_1_0/update</p>
<p>&lt;target name="ftp-push-to-server"&gt;<br />
		&lt;echo&gt;Pushing files to ftp site: ${ftp.server}&lt;/echo&gt;<br />
		&lt;ftp<br />
			server		=	"${ftp.server}"<br />
			userid		=	"${ftp.username}"<br />
			password	=	"${ftp.password}"<br />
			action		=	"put"<br />
			remotedir	=	"${ftp.dir}"<br />
			verbose		=	"true"<br />
			&gt;<br />
			&lt;fileset id="ftp.upload.fileset" dir="${ftp.localDir}" /&gt;<br />
		&lt;/ftp&gt;<br />
	&lt;/target&gt;</code></p>
<h4>The Video</h4>
<p><span id="more-193"></span><br />
Prerequisite: <a href="http://www.axelscript.com/2008/10/06/using-the-air-update-framework/">/using-the-air-update-framework</a></p>
<p><object id="csSWF" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="498" codebase="http://active.macromedia.com/flash7/cabs/ swflash.cab#version=9,0,28,0"><param name="src" value="http://www.axelscript.com/wp-content/Examples/UsingFTPtoPushYourApp/usingFTPtoPushYourApp.swf"/><param name="bgcolor" value="#1a1a1a"/><param name="quality" value="best"/><param name="allowScriptAccess" value="always"/><param name="allowFullScreen" value="true"/><param name="scale" value="showall"/><param name="flashVars" value="autostart=false"/><embed name="csSWF" src="http://www.axelscript.com/wp-content/Examples/UsingFTPtoPushYourApp/usingFTPtoPushYourApp.swf" width="640" height="498" bgcolor="#1a1a1a" quality="best" allowScriptAccess="always" allowFullScreen="true" scale="showall" flashVars="autostart=false" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></p>
<p>Your going to need to do a few things to make sure ant is working:</p>
<ol>
<li><a href="http://blogs.adobe.com/flexdoc/2008/04/adding_java_development_tools_1.html" target="_blank">follow the steps on adobe&#8217;s site</a></li>
<li>once ant is installed (how to is in the previous link) you then need to make sure you have at least java 6 installed</li>
<li>now in eclipse or flexbuilder open your prefrences > (in tree on left go to) Java > Installed JREs > click &#8220;Add&#8221; > Browse for &#8220;JRE home directory&#8221; > &#8220;C:\Program Files\Java\1.6.x&#8221; (or something like that) > it should find a bunch of system libs > then click &#8220;OK&#8221;</li>
<li>WHILE STILL IN THE PREFERENCES WINDOW > verify new JRE is checked Preferences > Java > Installed JREs (should have jre1.6.xxx checked, INSTEAD OF Flex builder 3</li>
<li>Preferences > Java > Compiler > (in first drop down) Compiler compliance level: select &#8220;6.0&#8243; instead of &#8220;5&#8243;</li>
<li>
NET Commons Jar file: <a href="http://commons.apache.org/downloads/download_net.cgi" target="_blank">commons-net-1.4.1.jar</a>
</li>
<li>
Getting FTP to work with Eclipse: <a href="http://devnulled.com/content/2004/11/getting-ftp-to-work-with-ant-in-eclipse/" target="_blank">getting-ftp-to-work-with-ant-in-eclipse</a>
</li>
<li>
ANT Commons Jar file: <a href="http://www.java2s.com/Code/Jar/ANT/Downloadantcommonsnetjar.htm" target="_blank">ant-commons-net.jar</a>
</li>
<li>That should be all you have to do to get ANT up and running.</li>
</ol>
<p>Links:</p>
<ul>
<li>
Some Noteworthy negatives about deployment using ant: <a href="http://debuggable.com/posts/ant-sucks-for-ftp-deployment-what-alternatives-do-we-have:480f4dd6-72fc-42d0-aa9c-44c5cbdd56cb" target="_blank">ant-sucks-for-ftp-deployment</a>
</li>
<li>
Book: <a href="http://www.amazon.com/Ant-Action-Manning-Steve-Loughran/dp/193239480X/ref=sr_1_1?ie=UTF8&#038;s=books&#038;qid=1223317472&#038;sr=1-1" target="_blank">Ant In Action By Steve Loughran</a>
</li>
<li>
Adobe: <a href="http://labs.adobe.com/wiki/index.php/Adobe_AIR_Update_Framework" target="_blank">AIR Update Framework</a>
</li>
</ul>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=193&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/10/07/publishing-air-apps-with-ant-and-ftp/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Using the Air Update Framework</title>
		<link>http://www.axelscript.com/2008/10/06/using-the-air-update-framework/</link>
		<comments>http://www.axelscript.com/2008/10/06/using-the-air-update-framework/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 19:51:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[VideoBlog]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=197</guid>
		<description><![CDATA[This post is a simple video on using the air update framework. It explains how to upload your .air file to your server, and a simple way to organize the directories. Here are some links that you may need to follow along with the video. Download Air Update Framework you will need the update framework [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a simple video on using the air update framework. It explains how to upload your .air file to your server, and a simple way to organize the directories.  </p>
<p>Here are some links that you may need to follow along with the video.</p>
<ul>
<li><a href="http://labs.adobe.com/wiki/index.php/Adobe_AIR_Update_Framework#Download">Download Air Update Framework
<ul>
<li> <a href="http://download.macromedia.com/pub/labs/air/appupdater/air_appupdater_062408.zip">you will need the update framework</a></li>
<li> <a href="http://download.macromedia.com/pub/labs/air/appupdater/air_appupdater_samples_062408.zip">as well as the sample files</a> </li>
</ul>
</li>
</ul>
<p>Here is the video.<br />
<span id="more-197"></span></p>
<h4>Video on using the air update framework</h4>
<p><object id="csSWF" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="498" codebase="http://active.macromedia.com/flash7/cabs/ swflash.cab#version=9,0,28,0"><param name="src" value="http://www.axelscript.com/wp-content/Examples/AirUpdaterExample/airUpdaterExample.swf"/><param name="bgcolor" value="#1a1a1a"/><param name="quality" value="best"/><param name="allowScriptAccess" value="always"/><param name="allowFullScreen" value="true"/><param name="scale" value="showall"/><param name="flashVars" value="autostart=false"/><embed name="csSWF" src="http://www.axelscript.com/wp-content/Examples/AirUpdaterExample/airUpdaterExample.swf" width="640" height="498" bgcolor="#1a1a1a" quality="best" allowScriptAccess="always" allowFullScreen="true" scale="showall" flashVars="autostart=false" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=197&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/10/06/using-the-air-update-framework/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Improving compile times with runtime css</title>
		<link>http://www.axelscript.com/2008/10/03/improving-compile-times-with-runtime-css/</link>
		<comments>http://www.axelscript.com/2008/10/03/improving-compile-times-with-runtime-css/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 19:36:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Builder Tips]]></category>
		<category><![CDATA[VideoBlog]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=170</guid>
		<description><![CDATA[This post is a video showing how embedding fonts and images can have a drastic effect on compile times.  It goes on in the video to show a possible way to improve those compile times with runtime css. Here is the zip of the Project &#8211; SOURCE The Problem When you embed a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a video showing how embedding fonts and images can have a drastic effect on compile times.  It goes on in the video to show a possible way to improve those compile times with runtime css.</p>
<p>Here is the zip of the Project &#8211; <a href="http://axelscript.com/wp-content/Examples/RuntimeCSS/RuntimeCSS.zip" target="_blank">SOURCE</a></p>
<h4>The Problem</h4>
<p>When you embed a lot of fonts you immediately hurt your compile times.  In the video I go about showing you how just embedding a few fonts can&#8217;t hurt your compile times, I have about 8 fonts embedded and 2 of them with bold font embeddings as well.  This slowed down my compile time to 8 seconds, with barely any mxml, it&#8217;s all css and embedding fonts that caused the issue.  This post goes to show you how to create a separate project to hold your css and how to include it as runtime css in your original project.</p>
<p><span id="more-170"></span></p>
<h4>A (possible) Solution</h4>
<p>The solution is to create a separate project to hold you css and embedded assets, the reason for this is most the time in your development cycle once you are done setting up the style it just sets there&#8230; and then you work on the logic of the application&#8230;</p>
<p>So what you do is create a separate project put your css and the embedded assets in the seperate project, and set its output folder to be the actual project&#8217;s html-template folder, then you right-click the css file and make sure &#8220;Compile CSS to SWF&#8221; is checked.  This tells flexbuilder to compile a swf just for the css file&#8230; NOTE: you may have to make a change to the css file to get it to output the swf.</p>
<p>Once the file is a swf, and the output folder is your destination project you simply use StyleManager.loadStyleDeclarations(&#8216;somecss.swf&#8217;); to load your css on the &#8220;initialize&#8221; event of the main application mxml file.</p>
<p>To also help improve compile times you can try using unicode ranges for you font as well, and only embedding what you need <a href="http://www.axelscript.com/2008/08/20/using-unicode-ranges-for-fonts-because-of-compile-times/" target="_blank">Using unicode ranges for fonts</a></p>
<p>Please see the video for more details</p>
<p> Here is the zip of the Project - <a href="http://axelscript.com/wp-content/Examples/RuntimeCSS/RuntimeCSS.zip" target="_blank">SOURCE</a></p>
<h4>THE VIDEO </h4>
<p>(be patient, it takes a minute to load)<br />
            <object id="csSWF" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="498" codebase="http://active.macromedia.com/flash7/cabs/ swflash.cab#version=9,0,28,0"><param name="src" value="http://www.axelscript.com/wp-content/Examples/RuntimeCSS/runtimeCSS.swf"/><param name="bgcolor" value="#1a1a1a"/><param name="quality" value="best"/><param name="allowScriptAccess" value="always"/><param name="allowFullScreen" value="true"/><param name="scale" value="showall"/><param name="flashVars" value="autostart=false"/><embed name="csSWF" src="http://www.axelscript.com/wp-content/Examples/RuntimeCSS/runtimeCSS.swf" width="640" height="498" bgcolor="#1a1a1a" quality="best" allowScriptAccess="always" allowFullScreen="true" scale="showall" flashVars="autostart=false" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=170&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/10/03/improving-compile-times-with-runtime-css/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Air Badger app</title>
		<link>http://www.axelscript.com/2008/10/02/air-badger-app/</link>
		<comments>http://www.axelscript.com/2008/10/02/air-badger-app/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 18:58:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=168</guid>
		<description><![CDATA[This is just a simple reminder post to keep ahold of this link. http://www.adobe.com/devnet/air/articles/badger_for_air_apps.html?devcon=f3]]></description>
			<content:encoded><![CDATA[<p>This is just a simple reminder post to keep ahold of this link.</p>
<p><a href="http://www.adobe.com/devnet/air/articles/badger_for_air_apps.html?devcon=f3" target="_blank">http://www.adobe.com/devnet/air/articles/badger_for_air_apps.html?devcon=f3</a></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=168&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/10/02/air-badger-app/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Single Tick issues with AIR</title>
		<link>http://www.axelscript.com/2008/08/26/single-tick-issues-with-air/</link>
		<comments>http://www.axelscript.com/2008/08/26/single-tick-issues-with-air/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 14:00:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=157</guid>
		<description><![CDATA[This post describes a way to get around the issue of inserting and updated a sqlLite db with single ticks&#8230; There probably is more than likely a better way to do this, I&#8217;m told that when you use &#8220;Prepared&#8221; sql statements in air, it may fix the issue, but I&#8217;m on my first Air project, [...]]]></description>
			<content:encoded><![CDATA[<p>This post describes a way to get around the issue of inserting and updated a sqlLite db with single ticks&#8230;</p>
<p>There probably is more than likely a better way to do this, I&#8217;m told that when you use &#8220;Prepared&#8221; sql statements in air, it may fix the issue, but I&#8217;m on my first Air project, i&#8217;ve been doing flex for like 2 and a half years with CF on the backend, and so i know all the tricks in cf to fix the issues, but in AIR we just wrote a function to do it&#8230;</p>
<p>PROBLEM:</p>
<p>I have an object called &#8220;TeamVO&#8221; it looks like this</p>
<ul>
<li>TeamVO
<ul>
<li>TeamName:String</li>
<li>TeamID:Number</li>
</ul>
</li>
</ul>
<p><code>teamVO:TeamVO = new TeamVO;<br />
teamVO.teamName = "Jakes's Team";</code></p>
<p>When I insert that into the db, I always get errors back&#8230; so we (by we I mean <a href="http://reynacho.net" target="_blank">Jake Churchill </a>) came up with a function to handle that for use&#8230; this will only work if your using objects like we are, but more than likely you are&#8230; if not, you can still use the replace statment in it.</p>
<p><code>/**<br />
* this escapes single ticks so they can be stored in the DB correctly<br />
**/<br />
public function escapeStrings( value:Object ):Object<br />
{<br />
// get object details<br />
var objectDescription:XML = flash.utils.describeType(value);<br />
// get object properties as XMLList<br />
var objectProperties:XMLList = new XMLList(objectDescription.accessor);<br />
// create a new object to store modified data in<br />
var newVal:Object = new Object();</code></p>
<p>// loop over all properties<br />
for( var x:uint = 0; x &lt; objectProperties.length(); x++ )<br />
{<br />
// if the property is a string, escape single ticks<br />
if( objectDescription.accessor[x].@type == &#8220;String&#8221; )<br />
{<br />
newVal[objectDescription.accessor[x].@name] = String(value[objectDescription.accessor[x].@name]).replace(&#8216;\&#8221;,&#8217;\'\&#8221;);<br />
}<br />
// otherwise just grab the value of the property as it is<br />
else<br />
{<br />
newVal[objectDescription.accessor[x].@name] = value[objectDescription.accessor[x].@name];<br />
}<br />
}</p>
<p>// return new value<br />
return newVal;<br />
}</p>
<p>this function loops of the properties of an object, finds out if it&#8217;s a string, and replaces the single ticks with something acceptable in the db&#8230; </p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=157&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/08/26/single-tick-issues-with-air/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FileParsing in AIR</title>
		<link>http://www.axelscript.com/2008/08/25/fileparsing-in-air/</link>
		<comments>http://www.axelscript.com/2008/08/25/fileparsing-in-air/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 14:00:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=156</guid>
		<description><![CDATA[I built a FileParser in AIR to do a couple of things&#8230; this post contains links to download it&#8230;. recursively look for certain file types limit files in the view pending a limiting Size be able to take a quick peak at the files Application - Source here is a link by David Tucker to [...]]]></description>
			<content:encoded><![CDATA[<p>I built a FileParser in AIR to do a couple of things&#8230; this post contains links to download it&#8230;.</p>
<li>recursively look for certain file types</li>
<li>limit files in the view pending a limiting Size</li>
<li>be able to take a quick peak at the files</li>
<p><a href="http://axelscript.com/wp-content/Examples/FileParser/FileParser.air" target="_self">Application </a>- <a href="http://axelscript.com/wp-content/Examples/FileParser/FileParser.zip">Source</a></p>
<p>here is a link by David Tucker to find the number of lines in a file.</p>
<p><a href="http://www.davidtucker.net/2008/08/22/air-tip-13-number-of-lines-in-a-text-file/" target="_blank">http://www.davidtucker.net/2008/08/22/air-tip-13-number-of-lines-in-a-text-file/</a></p>
<p>I really hate that you can&#8217;t find stuff in windows based on size&#8230; i mean&#8230; yeah&#8230; you can sort it, but you can&#8217;t filter it and ONLY see certain things.</p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=156&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/08/25/fileparsing-in-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Unicode ranges for fonts because of compile times.</title>
		<link>http://www.axelscript.com/2008/08/20/using-unicode-ranges-for-fonts-because-of-compile-times/</link>
		<comments>http://www.axelscript.com/2008/08/20/using-unicode-ranges-for-fonts-because-of-compile-times/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 17:23:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=155</guid>
		<description><![CDATA[I&#8217;m a pretty big stickler about keeping compile times down for as long as possible, and sometimes I go to the extent of embeding fonts in my css and then commenting them out while developing because fonts can seriously slow down compile times&#8230; so one thing you can also do is set unicode ranges if [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a pretty big stickler about keeping compile times down for as long as possible, and sometimes I go to the extent of embeding fonts in my css and then commenting them out while developing because fonts can seriously slow down compile times&#8230; so one thing you can also do is set unicode ranges if you only need certain characters&#8230;</p>
<p>One of my current side projects I&#8217;m doing has a component that is like a stopwatch&#8230; so I downloaded a <a href="http://www.dafont.com/ds-digital.font" target="_blank">digital clock looking true type font</a>, and implemented it in the stopwatch component&#8230; but the project was so fast at compiling, and once I added the 5 versions embeded of the font, (1 for normal, one for bold, one for italic, one for antialiased, and then the arial font type&#8230;) it slowed down the compiling by 8 seconds&#8230; i was like&#8230; dammmmnn!&#8230; so since my stopwatch only needs numbers, I&#8217;m using unicode ranges&#8230;</p>
<p> <code>@font-face {<br />
src:url("fonts/DS-DIGIB.TTF");<br />
fontFamily:Digital;<br />
advancedAntiAliasing:true;<br />
fontWeight:bold;<br />
unicode-range:<br />
U+0020-U+0040 /* Punctuation, Numbers and Symbols */<br />
/* U+0041-U+005A, Upper-Case A-Z */<br />
/* U+005B-U+0060, Punctuation and Symbols */<br />
/* U+0061-U+007A, Lower-Case a-z */<br />
/* U+007B-U+007E; Punctuation and Symbols */<br />
}</code></p>
<p>it brought my compiling time back, and all was gooooooood. Here&#8217;s a link for the official flex docs&#8230;</p>
<p><a href="http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000792.html" target="_blank">http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000792.html</a></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=155&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/08/20/using-unicode-ranges-for-fonts-because-of-compile-times/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Air Developer Connection</title>
		<link>http://www.axelscript.com/2008/03/19/air-developer-connection/</link>
		<comments>http://www.axelscript.com/2008/03/19/air-developer-connection/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 21:54:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/03/19/air-developer-connection/</guid>
		<description><![CDATA[Air developer connection link&#8230;. http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&#038;loc=en_us&#038;extid=1427019 Awesome air app that has tons of community components listed, with example showings&#8230; it&#8217;s pretty awesome!]]></description>
			<content:encoded><![CDATA[<p>Air developer connection link&#8230;.</p>
<p><a href="http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&#038;loc=en_us&#038;extid=1427019" target="_blank">http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&#038;loc=en_us&#038;extid=1427019</a></p>
<p>Awesome air app that has tons of community components listed, with example showings&#8230; it&#8217;s pretty awesome!</p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=108&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/03/19/air-developer-connection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

