<?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; Actionscript</title>
	<atom:link href="http://www.axelscript.com/category/actionscript-20/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>Salesforce / Apex / Flex VisualForce integration</title>
		<link>http://www.axelscript.com/2009/06/08/salesforce-apex-flex-visualforce-integration/</link>
		<comments>http://www.axelscript.com/2009/06/08/salesforce-apex-flex-visualforce-integration/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 06:20:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Apex]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Salesforce]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=327</guid>
		<description><![CDATA[This flex project will talk to salesforce, grab data, be able to save multiple records at the same time, edit and save single records at the same time, and will demonstrate some simple flex charting and data binding. This blog post got moved to adobe!!! boo yah!! John wrote up, and used screen shots, and [...]]]></description>
			<content:encoded><![CDATA[<p>This flex project will talk to salesforce, grab data, be able to save multiple records at the same time, edit and save single records at the same time, and will demonstrate some simple flex charting and data binding.  </p>
<p><a href="http://www.adobe.com/devnet/salesforce/articles/ex_salesforce_account_demo.html" target="_blank">This blog post got moved to adobe!!! boo yah!!</a></p>
<p>John wrote up, and used screen shots, and outlined the application better than I did, but I built it, but he&#8217;s the one with the contacts at adobe that wanted the example apps of sfdc&#8230; glad I could be a part of it.</p>
<p>To view my running <a href="http://examples.axelscript.com/clients/modelMetrics/salesForceAccountDemo/SalesForceAccountDemo.html" target="_blank">application click here</a> to view the <a href="http://examples.axelscript.com/clients/modelMetrics/salesForceAccountDemo/srcview/index.html" target="_blank">source click here</a></p>
<h4>The Video</h4>
<p>(it takes a minute to load) <object width="640" height="498" data="http://examples.axelscript.com/clients/modelMetrics/salesForceAccountDemo/SalesForceAccountDemoVideo.swf" type="application/x-shockwave-flash"><param name="name" value="csSWF" /><param name="bgcolor" value="#1a1a1a" /><param name="flashvars" value="autostart=false" /><param name="src" value="http://examples.axelscript.com/clients/modelMetrics/salesForceAccountDemo/SalesForceAccountDemoVideo.swf" /></object></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=327&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2009/06/08/salesforce-apex-flex-visualforce-integration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Saleforce / Flex example</title>
		<link>http://www.axelscript.com/2009/06/03/saleforce-flex-example/</link>
		<comments>http://www.axelscript.com/2009/06/03/saleforce-flex-example/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 21:08:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Apex]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Salesforce]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=321</guid>
		<description><![CDATA[This post is directed at people that know the salesforce.com platform, I&#8217;m not trying to get away from flex, but this post was actually part of my last assignment at work, and its directed at salesforce developers that don&#8217;t know flex. This blog post has been moved to ADOBE! boo yah! John&#8217;s the one who [...]]]></description>
			<content:encoded><![CDATA[<p>This post is directed at people that know the salesforce.com platform, I&#8217;m not trying to get away from flex, but this post was actually part of my last assignment at work, and its directed at salesforce developers that don&#8217;t know flex.  </p>
<p><a href="http://www.adobe.com/devnet/salesforce/articles/ex_salesforce_opportunity_demo.html" target="_blank">This blog post has been moved to ADOBE! boo yah!</a></p>
<p>John&#8217;s the one who wrote the documentation and took the screen shots and got the deal with adobe to get the project and example put on adobe.com, so they wanted him to be the author.  </p>
<p>but here is the video</p>
<p>To view my running <a href="http://examples.axelscript.com/clients/modelMetrics/salesForceDemo/SalesForceDemo.html" target="_blank">application click here</a> to view the <a href="http://examples.axelscript.com/clients/modelMetrics/salesForceDemo/srcview/index.html" target="_blank">source click here</a></p>
<h4>The Video</h4>
<p>(it takes a minute to load) <object width="640" height="498" data="http://examples.axelscript.com/clients/modelMetrics/salesForceDemo/SalesForceDemoVideo.swf" type="application/x-shockwave-flash"><param name="name" value="csSWF" /><param name="bgcolor" value="#1a1a1a" /><param name="flashvars" value="autostart=false" /><param name="src" value="http://examples.axelscript.com/clients/modelMetrics/salesForceDemo/SalesForceDemoVideo.swf" /></object></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=321&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2009/06/03/saleforce-flex-example/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dynamic Tabs selectedIndex bug</title>
		<link>http://www.axelscript.com/2009/04/27/dynamic-tabs-selectedindex-bug/</link>
		<comments>http://www.axelscript.com/2009/04/27/dynamic-tabs-selectedindex-bug/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 20:44:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=313</guid>
		<description><![CDATA[Use the UIComponent commitProperties() to do your dynamic interface work... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://axelscript.com/wp-content/Examples/DynamicTabs/DynamicTabs.html#" target="_blank">Application</a> &#8211; <a href="http://axelscript.com/wp-content/Examples/DynamicTabs/srcview/index.html" target="_blank">Source</a></p>
<p>When you have a project that requires a dynamic interface, and you are adding and removing tabs, lets say you need to reset the selectedIndex of the <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=navigators_4.html" target="_blank">TabNavigator</a> back to 0, because you may be adding tabs that are not relevant to what you originally had on the screen&#8230; when you simply do a &#8220;tabNav.removeAllChildren()&#8221; on the TabNavigator, and change the selectedIndex in the same function, it just simply doesnt work&#8230; there is a bug for it&#8230; <a href="http://bugs.adobe.com/jira/browse/SDK-14157" target="_blank">http://bugs.adobe.com/jira/browse/SDK-14157</a></p>
<p>So the more elegant solution that also pays attention to the flex framework is by using commitProperties() when you use commitProperties it guarantees that things will be done after the initialization is done in the component, it also is guarantees things will only run once per frame I believe&#8230;  (don&#8217;t quote me on that, i&#8217;m just to lazy to look up where I read that, because I&#8217;ve got to get back to work)</p>
<p>anyway&#8230; when you use invalidateProperties() when you want to remove the children, you would simply set the selectedIndex before you invalidate, and then do the work in commitProperties&#8230; and it should just work because of the way commitProperties is supposed to work&#8230;</p>
<p>when in reality, it doesnt work either&#8230;</p>
<p>so what you end up having to do is use callLater( commitProperties )</p>
<p><code>private var _tabNavChanged:Boolean = false;<br />
public function resetTabNav():void<br />
{<br />
tabNav.selectedIndex = 0;</code></p>
<p><code>_tabNavChanged = true;<br />
callLater( commitProperties )<br />
}</p>
<p>override protected function commitProperties():void<br />
{<br />
super.commitProperties():</p>
<p>if( _tabNavChanged )<br />
{</p>
<p>//do your looping and stuff here to create your dynamic tabs...</p>
<p>_tabNavChanged = false;<br />
}<br />
</code></p>
<p><code>}//end function</code></p>
<p>Hope this helps someone&#8230; didn&#8217;t really take long <img src='http://www.axelscript.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   i suppose I&#8217;m just used to using commitProperties</p>
<p><a href="http://axelscript.com/wp-content/Examples/DynamicTabs/DynamicTabs.html#" target="_blank">Application</a> &#8211; <a href="http://axelscript.com/wp-content/Examples/DynamicTabs/srcview/index.html" target="_blank">Source</a></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=313&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2009/04/27/dynamic-tabs-selectedindex-bug/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>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>Project work flow &#8211; 360Flex Preso</title>
		<link>http://www.axelscript.com/2008/09/30/360flex-preso-by-adobe/</link>
		<comments>http://www.axelscript.com/2008/09/30/360flex-preso-by-adobe/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 12:44:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=165</guid>
		<description><![CDATA[Here is a link to my 360Flex preso. http://link.brightcove.com/services/player/bcpid1733261879?bclid=1729365228&#38;bctid=1738803895]]></description>
			<content:encoded><![CDATA[<p>Here is a link to my 360Flex preso.</p>
<p><a href="http://link.brightcove.com/services/player/bcpid1733261879?bclid=1729365228&amp;bctid=1738803895">http://link.brightcove.com/services/player/bcpid1733261879?bclid=1729365228&amp;bctid=1738803895</a></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=165&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/09/30/360flex-preso-by-adobe/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Building a simple slider component</title>
		<link>http://www.axelscript.com/2008/09/25/building-a-simple-slider-component/</link>
		<comments>http://www.axelscript.com/2008/09/25/building-a-simple-slider-component/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 14:30:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=160</guid>
		<description><![CDATA[Application &#8211; Source  A friend asked me today how to create a simple slider component&#8230; I told him, the simplest way in flex, would probably be to have a MoveEffect that would just move a container. So basically you use masking to mask some stuff, then turn off horizontalScrollPolicy, and verticalScrollPolicy, and then you just set [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://axelscript.com/wp-content/Examples/Slider/Slider.html" target="_blank">Application</a> &#8211; <a href="http://axelscript.com/wp-content/Examples/Slider/srcview/index.html" target="_blank">Source </a></p>
<p>A friend asked me today how to create a simple slider component&#8230; I told him, the simplest way in flex, would probably be to have a <a href="http://livedocs.adobe.com/flex/3/langref/mx/effects/Move.html" target="_blank">MoveEffect</a> that would just move a container.</p>
<p>So basically you use masking to mask some stuff, then turn off horizontalScrollPolicy, and verticalScrollPolicy, and then you just set the moveEffect.xBy to -100 or positive 100, (depending on the distance you want to move it, and what your trying to show&#8230; here is a really simple example.</p>
<p>Please don&#8217;t take this code too seriosly, it&#8217;s nothing fancy, it&#8217;s super simple, and all you would have to do to spice it up would be add a black background, and reflection or two, some images instead of vbox&#8217;s, and some better looking buttons with arrow icons&#8230; but i&#8217;m not the one who needs the component, so I&#8217;m not gonna put too much more time into this&#8230; (not that it took long)</p>
<p> </p>
<p><a href="http://axelscript.com/wp-content/Examples/Slider/Slider.html" target="_blank">Application</a> - <a href="http://axelscript.com/wp-content/Examples/Slider/srcview/index.html" target="_blank">Source </a></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=160&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/09/25/building-a-simple-slider-component/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Programmatic Visualization</title>
		<link>http://www.axelscript.com/2008/08/15/programmatic-visualization-2/</link>
		<comments>http://www.axelscript.com/2008/08/15/programmatic-visualization-2/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 17:00:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=152</guid>
		<description><![CDATA[Somebody dropped me a comment, and gave me a totally awesome link: http://birdeye.googlecode.com/svn/trunk/ravis/RaVisExamples/example-binaries/RaVisExplorer.html This relates to all the following posts: Paint Canvas Application &#8211; Paint Canvas Source Drawing with the UIComponent in Flex (part 3) Application &#8211; Drawing with the UIComponent in Flex (part 3) Source   Making Flex look 3D Programmatic Visualization Drawing with [...]]]></description>
			<content:encoded><![CDATA[<p>Somebody dropped me a comment, and gave me a totally awesome link:<br />
<a href="http://birdeye.googlecode.com/svn/trunk/ravis/RaVisExamples/example-binaries/RaVisExplorer.html" target="_blank">http://birdeye.googlecode.com/svn/trunk/ravis/RaVisExamples/example-binaries/RaVisExplorer.html</a></p>
<p>This relates to all the following posts:</p>
<p><a href="http://www.cynergysystems.com/blogs/blogs/andrew.trice/360Flex/source/basic_drawing/main.html" target="_blank">Paint Canvas Application</a> &#8211; <a href="http://www.cynergysystems.com/blogs/blogs/andrew.trice/360Flex/source/basic_drawing/srcview/index.html" target="_blank">Paint Canvas Source</a></p>
<p><a href="http://www.axelscript.com/wp-content/cfwtExamples/DrawingLinesWithYourMousePart3/bin/DrawingLinesWithYourMousePart3.html" target="_blank">Drawing with the UIComponent in Flex (part 3) Application</a> &#8211; <a href="http://www.axelscript.com/wp-content/cfwtExamples/DrawingLinesWithYourMousePart3/bin/srcview/index.html" target="_blank">Drawing with the UIComponent in Flex (part 3) Source </a> </p>
<p><a href="http://www.axelscript.com/2008/06/19/making-flex-flash-look-3d/" target="_blank">Making Flex look 3D</a></p>
<p><a href="http://www.axelscript.com/2008/06/18/programmatic-visualization/" target="_blank">Programmatic Visualization</a></p>
<p><a href="http://www.axelscript.com/2008/04/09/drawing-with-the-uicomponent-4/" target="_blank">Drawing with the UIComponent &#8211; 4</a></p>
<p><a href="http://www.axelscript.com/2008/06/17/drawing-in-flex-using-the-uicomponent-part-3/" target="_blank">Drawing with the UIComponent &#8211; 3</a></p>
<p><a href="http://www.axelscript.com/2008/06/12/drawing-in-flex-using-the-uicomponent-part-2-note-dynamic-classes-too/" target="_blank">Drawing with the UIComponent &#8211; 2</a></p>
<p><a href="http://www.axelscript.com/2008/06/11/drawing-in-flex-using-the-uicomponent/" target="_blank">Drawing with the UIComponent &#8211; 1</a></p>
<p> </p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=152&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/08/15/programmatic-visualization-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Limiting Character ranges for embedded fonts</title>
		<link>http://www.axelscript.com/2008/04/30/limiting-character-ranges-for-embedded-fonts/</link>
		<comments>http://www.axelscript.com/2008/04/30/limiting-character-ranges-for-embedded-fonts/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 17:38:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/?p=124</guid>
		<description><![CDATA[Embedding fonts is something that I&#8217;ve had to do a ton at my new job at gallup.  When trying to meet a certain brand, not to mention world wide application usage, you struggle with fonts multi-language fonts, and the horrible file size that comes with embedding them. I knew you could limit the character ranges [...]]]></description>
			<content:encoded><![CDATA[<p>Embedding fonts is something that I&#8217;ve had to do a ton at my new job at <a href="http://www.gallup.com" target="_blank">gallup</a>.  When trying to meet a certain brand, not to mention world wide application usage, you struggle with fonts multi-language fonts, and the horrible file size that comes with embedding them.</p>
<p>I knew you could limit the character ranges in your style sheets but didn&#8217;t know what to look up&#8230; I was reading <a href="http://www.insideria.com/2008/04/flex-ria-performance-considera.html" target="_blank">jun&#8217;s article</a> on performance considerations and the link for adobe&#8217;s docs and example on it was in his article&#8230; so this is my blog post reminding myself of how to do it for the future&#8230;</p>
<p><a href="http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html" target="_blank">Adobe Livedocs Setting Character Ranges</a></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=124&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/04/30/limiting-character-ranges-for-embedded-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use reserved keywords in E4X with flex</title>
		<link>http://www.axelscript.com/2008/04/14/how-to-use-reserved-keywords-in-e4x-with-flex/</link>
		<comments>http://www.axelscript.com/2008/04/14/how-to-use-reserved-keywords-in-e4x-with-flex/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 15:00:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ACJEditor]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/04/14/how-to-use-reserved-keywords-in-e4x-with-flex/</guid>
		<description><![CDATA[This post is a brief note on how to use reserved words like &#8220;id&#8221; and &#8220;class&#8221; with e4x in flex. Basically you have reserved keywords in flex like &#8220;id&#8221; and &#8220;class&#8221; amongst others&#8230; I was traversing through some xhtml that i brought in remotely and it had many div tags. One of the issues I [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a brief note on how to use reserved words like &#8220;id&#8221; and &#8220;class&#8221; with e4x in flex.</p>
<p>Basically you have reserved keywords in flex like &#8220;id&#8221; and &#8220;class&#8221; amongst <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_13.html">others</a>&#8230; I was traversing through some xhtml that i brought in remotely and it had many div tags. One of the issues I ran into with it was trying to manipulate div&#8217;s with certain class attributes&#8230; so i was doing some searching through the html with e4x and trying to grab things with e4x operators like body..div.(@class == &#8216;headlineText&#8217;)  this would theoretically grab all of my div tags that have that class name&#8230;</p>
<p>but the compiler bombs on this and says class is reserved&#8230; so the proper syntax for this is body..div.(@['class'] == &#8216;headline&#8217;) I found this when looking at some <a href="http://www.xml.com/lpt/a/1720" target="_blank">xml standards online</a><br />
NOTE: you may get an error: &#8216;A term is undefined and has no properties&#8217; error when searching for divs that don&#8217;t have the class attribute&#8230; you pretty much have use a for each loop and loop through the div XMLList that you would get back from these operations:</p>
<p>var  body:XML = myXML.body[0];<br />
var divList:XMLList = body..div; //searchs body for all div tags</p>
<p>then you would loop through them.</p>
<p>for each( var p:XML in divList )<br />
{<br />
if( p.@['class'] == &#8216;headlineText&#8217; )<br />
//do something<br />
}<br />
}</p>
<p>for some reason you get an error when trying to filter this way with xml when the attribute isn&#8217;t there&#8230;  this only seems to happen when you use filtering operations like body..div (which gets all of the div&#8217;s) I think it may actually be a bug&#8230; it seems to me this should just return an empty XMLList if there isn&#8217;t any found&#8230; but i guess it just doesnt work&#8230;. hmmm&#8230; anyway</p>
<p>thats all for now.</p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=120&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/04/14/how-to-use-reserved-keywords-in-e4x-with-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Drawing With the UIComponent (4)</title>
		<link>http://www.axelscript.com/2008/04/09/drawing-with-the-uicomponent-4/</link>
		<comments>http://www.axelscript.com/2008/04/09/drawing-with-the-uicomponent-4/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 19:25:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/04/09/drawing-with-the-uicomponent-4/</guid>
		<description><![CDATA[This is another example of drawing with your mouse&#8230; This iteration has added one main feature, ResizeHandles to the LineTool. Now you can resize the Line as you please. Application - Source The basis of what changed in the line tool, is exactly what I stated above&#8230; if you take a look at Version 3 [...]]]></description>
			<content:encoded><![CDATA[<p>This is another example of drawing with your mouse&#8230; This iteration has added one main feature, ResizeHandles to the LineTool.  Now you can resize the Line as you please.</p>
<p><a href="http://axelscript.com/wp-content/Examples/DrawingWithUIComponent4/DrawingWithUIComponent4.html" target="_blank">Application </a>-<a href="http://axelscript.com/wp-content/Examples/DrawingWithUIComponent4/srcview/index.html" target="_blank"> Source</a></p>
<p>The basis of what changed in the line tool, is exactly what I stated above&#8230;  if you take a look at Version 3 of the Drawing package</p>
<p><a href="http://axelscript.com/wp-content/cfwtExamples/DrawingLinesWithYourMousePart3/bin/DrawingLinesWithYourMousePart3.html" target="_blank">Version 3 Application</a> &#8211; <a href="http://axelscript.com/wp-content/cfwtExamples/DrawingLinesWithYourMousePart3/bin/srcview/index.html" target="_blank">Version 3 Source</a></p>
<p>You will see that all you could do was draw a line and a rectange, depending on the chosen tool&#8230; I saw a post on <a href="http://tech.groups.yahoo.com/group/flexcoders/message/109394" target="_blank">flexcoders</a> about drawing and editing drawing lines.  I really didn&#8217;t feel like working on my &#8220;work&#8221; project for some reason&#8230; so i read some flexcoders and then decided to make an example of this.</p>
<p>Here are some links to previous posts on DrawingWithTheUIComponent:</p>
<ul>
<li><a href="http://www.axelscript.com/2008/06/17/drawing-in-flex-using-the-uicomponent-part-3/" target="_blank">Version 3 Post</a></li>
<li><a href="http://www.axelscript.com/2008/06/19/making-flex-flash-look-3d/" target="_blank">Making Flex &#8220;look&#8221; 3d</a></li>
<li><a href="http://www.axelscript.com/2008/08/15/programmatic-visualization-2/" target="_blank">Programmatic Visualization</a></li>
<li><a href="http://www.axelscript.com/2008/06/12/drawing-in-flex-using-the-uicomponent-part-2-note-dynamic-classes-too/" target="_blank">Version 2</a></li>
<li><a href="http://www.axelscript.com/2008/06/11/drawing-in-flex-using-the-uicomponent/" target="_blank">Version 1</a></li>
<li><a href="http://www.cynergysystems.com/blogs/blogs/andrew.trice/360Flex/source/basic_drawing/main.html" target="_blank">Paint Canvas Application</a></li>
<li><a href="http://www.cynergysystems.com/blogs/blogs/andrew.trice/360Flex/source/relationship_mapping/main.html" target="_blank">Relationship Mapper By Andrew Trice</a></li>
</ul>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=119&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/04/09/drawing-with-the-uicomponent-4/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>AS3 3D Physics Engine</title>
		<link>http://www.axelscript.com/2008/04/04/as3-3d-physics-engine/</link>
		<comments>http://www.axelscript.com/2008/04/04/as3-3d-physics-engine/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 15:52:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/04/04/as3-3d-physics-engine/</guid>
		<description><![CDATA[This is a post just to link and remind myself for this awesome engine. http://seraf.mediabox.fr/wow-engine/as3-3d-physics-engine-wow-engine/  note: i haven&#8217;t used it yet, but need to save the link so i don&#8217;t forget it&#8230;  the demo&#8217;s are really awesome.]]></description>
			<content:encoded><![CDATA[<p>This is a post just to link and remind myself for this awesome engine.</p>
<p><a href="http://seraf.mediabox.fr/wow-engine/as3-3d-physics-engine-wow-engine/">http://seraf.mediabox.fr/wow-engine/as3-3d-physics-engine-wow-engine/</a></p>
<p> note: i haven&#8217;t used it yet, but need to save the link so i don&#8217;t forget it&#8230;  the demo&#8217;s are really awesome.</p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=118&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/04/04/as3-3d-physics-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using ExternalInterface to call Javascript from flex</title>
		<link>http://www.axelscript.com/2008/04/03/using-externalinterface-to-call-javascript-from-flex/</link>
		<comments>http://www.axelscript.com/2008/04/03/using-externalinterface-to-call-javascript-from-flex/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 19:09:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/04/03/using-externalinterface-to-call-javascript-from-flex/</guid>
		<description><![CDATA[This is a short example on calling javascript from flex using ExternalInterface&#8230; Application - Source Please Note:  Javascript has to be on in your browser and the javascript is in the html-template &#62; index.template.html file.]]></description>
			<content:encoded><![CDATA[<p>This is a short example on calling javascript from flex using ExternalInterface&#8230;</p>
<p><a href="http://axelscript.com/wp-content/Examples/UsingExternalInterfaceExample/UsingExternalInterfaceExample.html" target="_blank">Application </a>-<a href="http://axelscript.com/wp-content/Examples/UsingExternalInterfaceExample/srcview/index.html" target="_blank"> Source</a></p>
<p>Please Note:  Javascript has to be on in your browser and the javascript is in the html-template &gt; index.template.html file.</p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=117&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/04/03/using-externalinterface-to-call-javascript-from-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Open Source Flex XML MP3 Player (xspf)</title>
		<link>http://www.axelscript.com/2008/04/02/open-source-flex-xml-mp3-player-xspf/</link>
		<comments>http://www.axelscript.com/2008/04/02/open-source-flex-xml-mp3-player-xspf/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 19:00:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/open-source-flex-xml-mp3-player-xspf/</guid>
		<description><![CDATA[This is a really awesome mp3 player that I made to mimic an actionscript 2 xspf player, but built with actionscript 3 and flex&#8230; it&#8217;s great and open source! Finally it&#8217;s here&#8230; OPEN SOURCE FLEX XML MP3 PLAYER Flex xml mp3 player Basically you can specify an xml playlist from the url, and have it [...]]]></description>
			<content:encoded><![CDATA[<p class="body">This is a really awesome mp3 player that I made to mimic an actionscript 2 xspf player, but built with actionscript 3 and flex&#8230; it&#8217;s great and open source!</p>
<p class="body">Finally it&#8217;s here&#8230;</p>
<h3>OPEN SOURCE FLEX XML MP3 PLAYER</h3>
<p>Flex xml mp3 player</p>
<p>Basically you can specify an xml playlist from the url, and have it play whatever is in the playlist…</p>
<p>The links for the examples are on the right side.</p>
<p>You can also specify the playlist in the url if you&#8217;d like:</p>
<p><a rel="nofollow" href="http://cctracker.axelscript.com/Examples/xspfPlayer/bin/xmlPlayer.cfm?playlist%5Furl=http://killtheheart.com/playlist.xml" target="_blank">http://cctracker.axelscript.com/Examples/xspfPlayer/bin/xmlPlayer.cfm?playlist%5Furl=http://killtheheart.com/playlist.xml</a></p>
<p>here are the variables you can use:</p>
<p><span id="more-116"></span></p>
<ul>
<li>playlist_url : the url of the xspf file to load</li>
<li>podcast_mode : (true/false) if true the playlist url could be an rss feed to a podcast and it will play the all of the podcasts</li>
<li>repeat_playlist : boolean value that make the repeats the playlist after the end</li>
<li>song_url : String the href location of a single song you want to play, when this is used playlist_url is ignored</li>
<li>song_title : the name of the song you want to use</li>
</ul>
<p>The music player can also be used to play single mp3 files instead of playlists, the parameters are:</p>
<ul>
<li>song_url : the url of the single mp3 you want to play</li>
<li>song_title : the text to replace the players default&#8217;s</li>
</ul>
<p>and you could even create a custom playlist on your site (this link doesn&#8217;t work it&#8217;s an example) <a rel="nofollow" href="http://flexcoders.nl/someplaylist.xml" target="_blank">http://flexcoders.nl/someplaylist.xml</a></p>
<p>and as long as it was in the right format, it’s all good….</p>
<p>here is the format <a rel="nofollow" href="http://examples.axelscript.com/Examples/xspfPlayer/bin/data.xml" target="_blank">http://examples.axelscript.com/Examples/xspfPlayer/bin/data.xml</a></p>
<p>right click and view source to actually copy and paste xml&#8230;</p>
<p>It’s loosely based on the xspf (‘spiff’) standard, it’s an open source shareable playlist format…</p>
<p>Here is the documentation on it:</p>
<p><a rel="nofollow" href="http://www.xspf.org/xspf-v1.html#rfc.section.4.1.1.2" target="_blank">http://www.xspf.org/xspf-v1.html#rfc.section.4.1.1.2</a></p>
<p>here is another example of a playlist</p>
<p><a rel="nofollow" href="http://www.killtheheart.com/playlist.xml" target="_blank">http://www.killtheheart.com/playlist.xml</a></p>
<ul>
<li><strong>Resources</strong></li>
<li><a href="http://code.google.com/p/xmlmp3player/" target="_blank">Google Code</a></li>
<li><a href="http://labs.flexcoders.nl/?p=113" target="_blank">labs.flexcoders.nl</a></li>
<li><a href="http://axelscript.com" target="_blank">axelscript.com</a></li>
<li><a href="http://examples.axelscript.com/Examples/xspfPlayer/bin/xmlPlayer.cfm?playlist_url=data.xml" target="_blank">Big Version</a></li>
<li><a href="http://cctracker.axelscript.com/Examples/xspfPlayer/bin/xmlPlayerSmall.cfm?playlist_url=data.xml&amp;autoPlay=1" target="_blank">Small Version</a></li>
</ul>
<p><!--</p>
<ul>
<li><strong>Download</strong></li>
<li><a href="http://axel.cfwebtools.com/download/xmlMp3Player/xmlMP3PlayerBig_1.0.1.zip" mce_href="http://axel.cfwebtools.com/download/xmlMp3Player/xmlMP3PlayerBig_1.0.1.zip" target="_blank">Download the Big version to use</a></li>
<li><a href="http://axel.cfwebtools.com/download/xmlMp3Player/xmlMP3PlayerSmall_1.0.1.zip" mce_href="http://axel.cfwebtools.com/download/xmlMp3Player/xmlMP3PlayerSmall_1.0.1.zip" target="_blank">Download the Small version to use</a></li>
<li><a href="http://axel.cfwebtools.com/download/xmlMp3Player/xmlMP3PlayerFlexSource_1.0.1.zip" mce_href="http://axel.cfwebtools.com/download/xmlMp3Player/xmlMP3PlayerFlexSource_1.0.1.zip" target="_blank">Download the Flex Source</a></li>
</ul>
<p>&#8211;></p>
<ul>
<li><strong>People using</strong></li>
<li><a href="http://flex.org/community" target="_blank">flex.org (using a version geared for podcasts)</a></li>
<li><a href="http://www.killtheheart.com" target="_blank">Axel&#8217;s site to listen to music (please don&#8217;t tell the RIAA)</a></li>
</ul>
<ul>
<li><strong>Things that i hope for</strong></li>
<li>to get the podcast version relased</li>
<li>people will report bugs (the issues tab) on the google code site <a href="http://code.google.com/p/xmlmp3player/" target="_blank">Google Code</a></li>
<li>people will report features they want on the google code site <a href="http://code.google.com/p/xmlmp3player/" target="_blank">Google Code</a></li>
</ul>
<ul>
<li><strong>Examples &#8211; Coming soon (hopefully people start to use it and email make me some tutorials)</strong></li>
<li>How to Skin the mp3 player</li>
</ul>
<p><strong>xml details (listed alphabetically)</strong></p>
<ul>
<li>album
<ul>
<li>the album name of this track&#8230; leave blank if you wish this shows up in the big version on the bottom of the &#8220;now playing&#8221; view</li>
</ul>
</li>
<li>annotaion
<ul>
<li>unused at the moment, please refer to xspf documenation for information</li>
</ul>
</li>
<li>artist
<ul>
<li>the artist name of this track&#8230; leave blank if you wish this shows up in the big version in the middle of the &#8220;now playing&#8221; view</li>
</ul>
</li>
<li>creator
<ul>
<li>the developer&#8230; this is just documentation in my eyes, but please refer to xspf docs</li>
</ul>
</li>
<li>image
<ul>
<li>in the big version of the player, if you specify a url of the image you want, it will show on the left while the track is playing</li>
</ul>
</li>
<li>info
<ul>
<li>there is an info button on the big version, it&#8217;s simply another URL you could specify, and it will produce a popup window for it.</li>
</ul>
</li>
<li>link
<ul>
<li>there is an image in the big version, specify a URL here, and when you click on the album in the big version it will give you a popup to the address you specify.</li>
</ul>
</li>
<li>location
<ul>
<li>the most import piece of the puzzle</li>
<li>the url of the song (can be a URL, or relative path)</li>
</ul>
</li>
<li>timeEnd
<ul>
<li>use this to pause the song at a certain point, say you only want the user to listen to 0:15 &#8211; 0:20, make the timeEnd 20000 (not exact but close enough, it&#8217;s milliseconds)</li>
<li>specify a 0 to just play through the end</li>
<li>NOTE: it is milliseconds!</li>
</ul>
</li>
<li>timeStart
<ul>
<li>use this to start the song at a certain point, say you only want the user to listen to 0:15 &#8211; 0:20, make the timeStart 15000 (not exact but close enough, it&#8217;s milliseconds)</li>
<li>specify a 0 to just play from the begining</li>
<li>NOTE: it is milliseconds!</li>
</ul>
</li>
<li>title
<ul>
<li>this is the track title &#8211; it is displayed in the top of the &#8216;now playing&#8217; view in the big version (note: doesnt necessarily have to be the track title it could just be whatever you chose to name the file&#8230; it&#8217;s up to you)</li>
</ul>
</li>
<li>trackNum
<ul>
<li>unused at the moment, but could be used for documentation</li>
</ul>
</li>
</ul>
<p><strong>Instructions</strong></p>
<ol>
<li>Download whatever version you want (big/small) by clicking the links above
<ul>
<li>if your just using the product and dont care about the source, click on the links under <strong>Download</strong> section, that dont have the word &#8220;source&#8221;</li>
</ul>
</li>
<li>When you download it, there are 4 files
<ul>
<li>data.xml (sample xml file)</li>
<li>swfobject.js (swfobject.js used for including the swf file in your html/cfm/php/whatever else page) (NOTE: i&#8217;ll try to keep up on new versions of swfobject but no gurantees if you want the latest and greatest go to http://blog.deconcept.com/swfobject/</li>
<li>xmlPlayer(Small/Big).cfm (Small/Big depending on the version you downloaded&#8230; these are example cfm files to reference to for using swfObject to include your .swf&#8230; if you have any experience with using flash files on html pages, you should have not problem googling other ways besides swfobject)</li>
<li>xmlPlayer(Small/Big).swf (this is the actual swf file to use)</li>
</ul>
</li>
<li>Place those files in whatever folder you would like under your webroot and then run the page in a browser (http://yourdomain/whereyouputthefiles/index.cfm (if you dont have coldfusion, please open up the cfm file with wordpad, and fix the code, it&#8217;s pretty self explanatory, mostly it&#8217;s just html)</li>
<li>When you run the page, a default playlist will start playing if you have not provided one on the url</li>
<li>(i.e.) http://yourdomain/whereyouputthefiles/index.cfm?playlist_url=data.xml</li>
<li>please submit bugs to the google code site! I WILL FIX THEM I PROMISE! (the issues tab) <a href="http://code.google.com/p/xmlmp3player/" target="_blank">Google Code</a></li>
</ol>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=116&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/04/02/open-source-flex-xml-mp3-player-xspf/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Introducing ACJEditor its a RTE</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/</link>
		<comments>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 15:00:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ACJEditor]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/</guid>
		<description><![CDATA[Again, another post on how the Flex RichTextEditor blows goats&#8230; I&#8217;ve now completely taken the source from it, and made methods public or protected for extending in addition to adding the xhtmlText property&#8230; You can now override styling in the RichTextEditor and inject inline styles into things like a href tags&#8230; Application - Source This [...]]]></description>
			<content:encoded><![CDATA[<p>Again, another post on how the Flex RichTextEditor blows goats&#8230; I&#8217;ve now completely taken the source from it, and made methods public or protected for extending in addition to adding the xhtmlText property&#8230; You can now override styling in the RichTextEditor and inject inline styles into things like a href tags&#8230;</p>
<p><a href="http://axelscript.com/wp-content/Examples/RichTextEditorExample/RichTextEditorExample.html" target="_blank">Application </a>-<a href="http://axelscript.com/wp-content/Examples/RichTextEditorExample/srcview/index.html" target="_blank"> Source</a></p>
<p>This post is in direct relation with my post a few days ago on <a href="http://www.axelscript.com/2008/03/24/customrichtexteditor-with-xhtml-text/" target="_blank">Customizing the Rich Text Editor</a></p>
<p>This new post adds an example tab that shows when you put in a link in the TextEditor it underlines it in the TextArea&#8230; rather than the ridiculous previous Flex RichTextEditor just leaving it blank, and only changing the cursor when hovering over the tag&#8230; I hate how it doesnt actually underline the link in the text editor&#8230; so I needed to override the setTextStyles() method&#8230; it&#8217;s all about overriding the setTextStyles&#8230; and you just can&#8217;t do that with the default Flex RTE&#8230;</p>
<p>I scrapped the default RTE and copied and pasted out the code&#8230; I don&#8217;t think we will run into any backwards compatibility problems because its just an mxml class.  After taking the code, I made sure to at least put some updated comments in the top of the file ACJEditor.mxml&#8230; I documented that I adjusted the setTextStyles function to now take a new parameter called tf&#8230;</p>
<p>tf is a TextFormat class in flash, any change event in the RTE hits up the setTextStyles and you can pass it your own manipulated TextFormat.  You can do a little bit more with this&#8230; now you can manipulate the htmlText fairly easily to at least show your changes&#8230; I used it to show an underline underneath the &lt;a href &gt; tags&#8230;  I don&#8217;t quite have this working on load, it only seems to be happening on the addition of a link&#8230; I&#8217;m working on that, but pretty much prototyping right now to show it&#8217;s at least now possible&#8230; where as with the Flex RTE it just wasn&#8217;t&#8230; you couldn&#8217;t do jack squat because everything was private&#8230;</p>
<p>so please feel free take a shot at the new example, and get the source&#8230; feel free to manipulate it, and please BLOG ABOUT IT! it helps the community&#8230;</p>
<p>I&#8217;ve also gotten quite a few comments with the other post <a href="http://www.axelscript.com/2008/03/24/customrichtexteditor-with-xhtml-text/" target="_blank">Customizing the Rich Text Editor</a> and one of them mentions having an image show up inside the text editor&#8230; frankly i&#8217;m not even sure if this is possible at all&#8230; i haven&#8217;t fully looked at the TextFormat class yet, but because TextFormat is really what is formatting the html it is internal to flash&#8230; so as far as that goes, and getting it to actually show up in a textArea&#8230; I really am not to sure about that&#8230; </p>
<p><a href="http://axelscript.com/wp-content/Examples/RichTextEditorExample/RichTextEditorExample.html" target="_blank">Application </a>-<a href="http://axelscript.com/wp-content/Examples/RichTextEditorExample/srcview/index.html" target="_blank"> Source</a></p>
<p>anyway&#8230; i suppose thats enough ramblings for now.</p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=115&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Customizing a PopUp Effect in Flex</title>
		<link>http://www.axelscript.com/2008/03/28/customizing-a-popup-effect-in-flex/</link>
		<comments>http://www.axelscript.com/2008/03/28/customizing-a-popup-effect-in-flex/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 15:00:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/03/28/customizing-a-popup-effect-in-flex/</guid>
		<description><![CDATA[There was a post on Adding animations and effects to Tooltips in flex at blog.flexexamples.com I thought this was a great simple example&#8230; I wanted to show how to customize a PopUp with a similar effect. Application &#8211; Source You can also right click to view the source. 1. Create a component for the PopUp, [...]]]></description>
			<content:encoded><![CDATA[<p>There was a post on Adding animations and effects to Tooltips in flex at <a href="http://blog.flexexamples.com/2007/09/04/adding-animations-and-effects-to-flex-tool-tips/" target="_blank">blog.flexexamples.com</a> I thought this was a great simple example&#8230; I wanted to show how to customize a PopUp with a similar effect.		<span id="more"></span>  <a href="http://axelscript.com/wp-content/cfwtExamples/CustomizingAPopUpEffect/bin/CustomizingAPopUpEffect.html" target="_blank">Application</a> &#8211; <a href="http://axelscript.com/wp-content/cfwtExamples/CustomizingAPopUpEffect/bin/srcview/index.html" target="_blank">Source</a>  You can also right click to view the source.</p>
<p>1. Create a component for the PopUp, I tend to base my PopUp&#8217;s off of either a Panel, or a TitleWindow, usually a TitleWindow because by default you can add a close button to it, with a couple letters of code&#8230; (showCloseButton=&#8221;true&#8221;), but I have also extended the Panel to add many different things in the header of the panel&#8230; you can do this by extending it, and adding children to the &#8220;rawChildren&#8221; but we&#8217;ll save that for another post.</p>
<p>2.  import mx.managers.PopUpManager;</p>
<p>3.  create the code for Popping up the PopUp</p>
<p class="code">[Bindable]<br />
private var win:MyTitleWindow;</p>
<p>private function createPopup():void{<br />
win=MyTitleWindow(PopUpManager.createPopUp(this,MyTitleWindow,true));<br />
win.title = &#8216;This is my title window&#8217;;<br />
win.x = -500;<br />
win.y = 0;<br />
customMove.end();<br />
customMove.play();<br />
}</p>
<p>4.  Create your custom animation</p>
<p class="code"><span style="color: #000080">&lt;mx:Parallel id=<span style="color: #0000ff">&#8220;customMove&#8221;</span> target=<span style="color: #0000ff">&#8220;{win}&#8221;</span>&gt;</span><br />
<span style="color: #000080">&lt;mx:Move duration=<span style="color: #0000ff">&#8220;2000&#8243;</span><br />
xTo=<span style="color: #0000ff">&#8220;{(stage.width  &#8211; win.width) / 2}&#8221;</span><br />
yTo=<span style="color: #0000ff">&#8220;{(stage.height &#8211; win.height) / 2}&#8221;</span> /&gt;</span><br />
<span style="color: #000080">&lt;mx:WipeRight duration=<span style="color: #0000ff">&#8220;2000&#8243;</span> /&gt;</span><br />
<span style="color: #000080">&lt;/mx:Parallel&gt;</span></p>
<p>5.  Call createPopup()</p>
<p>NOTE: these links at the bottom, are the same as at the top, they are just here in case the blog post gets long.  <a href="http://axelscript.com/wp-content/cfwtExamples/CustomizingAPopUpEffect/bin/CustomizingAPopUpEffect.html" target="_blank">Application</a> &#8211; <a href="http://axelscript.com/wp-content/cfwtExamples/CustomizingAPopUpEffect/bin/srcview/index.html" target="_blank">Source</a>  You can also right click to view the source.</p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=114&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/03/28/customizing-a-popup-effect-in-flex/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Creating a DragImage from your UIComponent</title>
		<link>http://www.axelscript.com/2008/03/26/creating-a-dragimage-from-your-uicomponent/</link>
		<comments>http://www.axelscript.com/2008/03/26/creating-a-dragimage-from-your-uicomponent/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 15:00:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/03/26/creating-a-dragimage-from-your-uicomponent/</guid>
		<description><![CDATA[Ever want to drag a container, and have an Image of the container and it&#8217;s contents drag along with the mouse, much like when dragEnabled is set to true on a ListBase Component Like List, Tree, DataGrid, etc&#8230; You see the data that your dragging, in this image that has it&#8217;s alpha set to .5&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>Ever want to drag a container, and have an Image of the container and it&#8217;s contents drag along with the mouse, much like when dragEnabled is set to true on a ListBase Component Like List, Tree, DataGrid, etc&#8230; You see the data that your dragging, in this image that has it&#8217;s alpha set to .5&#8230;</p>
<p><a href="http://www.axelscript.com/wp-content/Examples/DragImageUIComponent/DragImageUIComponent.html" target="_blank">Application </a>-<a href="http://www.axelscript.com/wp-content/Examples/DragImageUIComponent/srcview/index.html" target="_blank"> Source</a></p>
<p>There are a couple of reasons you would want to do this&#8230; one, is ALWAYS user feedback! Applications are more useful when they give feedback to the things you do.  Any basic drag and drop functionality, needs some kind feedback while dragging&#8230; most of the time, you do this by setting your cursor to something different.  The other reason you would want to do something more than just the cursor, is to avoid deception&#8230; say your dragging a container, and you think the container ONLY containers a certain form field&#8230; but when you show the image of the whole thing your dragging it&#8217;s more intuitive.</p>
<p>One of the things you have to do is grab the BitmapData from the UIComponent.  You can do this by using a function written by <a href="http://www.cynergysystems.com/blogs/page/andrewtrice?entry=flex_2_bitmapdata_tricks_and" target="_blank">Andrew Trice</a> he explains it more in his post, but basically the function creates a blank Empty Matrix to hold the BitmapData.  This is also a very popular way of creating <a href="http://www.rictus.com/muchado/2006/07/05/live-reflection-component/" target="_blank">reflections</a>.</p>
<p>The next step is creating the code to create your DragSource, which is what holds your data, and the image that we are talking about&#8230; <a href="http://www.actionscript.org/forums/showthread.php3?t=152558" target="_blank">there is a forum post</a> about this, and it is also covered in every flex book that I&#8217;ve ever read&#8230; which up to 5 now, but it&#8217;s very well documented&#8230;.</p>
<p>basically, you create a new DragSource() you call dragSource.addData, and then use the DragManager.doDrag(vars&#8230;)&#8230;</p>
<p>the doDrag is where we are going to give the variables to use the image we&#8217;ve taken from our UIComponent&#8230;</p>
<p><span id="more-111"></span><br />
I would totally put a brief code set in this, but please take a look at the <a href="http://www.axelscript.com/wp-content/Examples/DragImageUIComponent/srcview/index.html" target="_blank"> Source</a> acj.containers.DragImageVBox.mxml to view the source&#8230; there is a function called doDrag() that you want to look at&#8230; it&#8217;s fairly simple and the only thing that is different than any other drag source code, is the fact that we are getting bitmap data out of the component we are dragging in order to apply it to the drag source&#8230;.</p>
<p><a href="http://www.axelscript.com/wp-content/Examples/DragImageUIComponent/DragImageUIComponent.html" target="_blank">Application </a>-<a href="http://www.axelscript.com/wp-content/Examples/DragImageUIComponent/srcview/index.html" target="_blank"> Source</a></p>
<p>so this example is very very simple, but goes to show how to grab BitmapData out of your UIComponents.</p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=111&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/03/26/creating-a-dragimage-from-your-uicomponent/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CustomRichTextEditor with XHTML text</title>
		<link>http://www.axelscript.com/2008/03/24/customrichtexteditor-with-xhtml-text/</link>
		<comments>http://www.axelscript.com/2008/03/24/customrichtexteditor-with-xhtml-text/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 15:00:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/03/24/customrichtexteditor-with-xhtml-text/</guid>
		<description><![CDATA[Extending the mx.core.RichTextEditor to give it and xhtmlText property using regular expressions. That sentence is pretty self explanatory. Application - Source I&#8217;ve written on the the mx.controls.RichTextEditor before in flex&#8230; and there are some issues with the HTML that it outputs. That post states that the htmlText the the RichTextEditor pretty much blows as far [...]]]></description>
			<content:encoded><![CDATA[<p>Extending the mx.core.RichTextEditor to give it and xhtmlText property using regular expressions.  That sentence is pretty self explanatory.</p>
<p><a href="http://axelscript.com/wp-content/Examples/RichTextEditorExample/RichTextEditorExample.html" target="_blank">Application </a>-<a href="http://axelscript.com/wp-content/Examples/RichTextEditorExample/srcview/index.html" target="_blank"> Source</a></p>
<p>I&#8217;ve written on the the <a href="http://www.axelscript.com/2008/02/13/mxrichtexteditor-issues-font-too-large/" target="_blank"> mx.controls.RichTextEditor</a> before in flex&#8230; and there are some issues with the HTML that it outputs.  That post states that the htmlText the the RichTextEditor pretty much blows as far as including it on a real html page&#8230;</p>
<p>There are many other solutions to this issue, there are some friends that have even written on it&#8230;</p>
<ul>
<li> <a href="http://www.rubenswieringa.com/blog/why-combining-richtexteditor-and-stylesheets-is-a-pain" target="_blank"> Ruben&#8217;s post</a></li>
<li> <a href="http://code.google.com/p/flex-richtexteditor-html-utils/" target="_blank"> Google Code &#8211; Flex RichTextEditor</a></li>
<li> <a href="http://thanksmister.com/?p=17" target="_blank"> Thanksmister.com&#8217;s post that had a humongous help with the regex&#8217;s</a></li>
</ul>
<p>I had a few suggestions with the google code solution, simply because it wasn&#8217;t XHTML compliant, and it wasn&#8217;t really packaged as a component you could reuse.   It was packages as pretty much an example mxml file with a function inside of it that did your regex to change the code&#8230; Which gave me a great start, I&#8217;m actually going to try to get on that google code site, and try to get on as a project contributor to give them the new component, or at least see what they think.  Most solutions you read online including <a href="http://www.axelscript.com/2008/02/13/mxrichtexteditor-issues-font-too-large/" target="_blank">my post </a> <span id="more-110"></span>about the font being to large state that you can simply write a regular expression to change your text&#8230; I didn&#8217;t like how in my post the only thing i listed was how to call it by clicking a button and not doing it on a change event of some sort.  So that was definitely one of the goals with this post.  Another thing that annoyed me with the rich text editor was when i tried to manipulate the htmlText property of the RichTextEditor it simply wouldn&#8217;t take my values, or it would re-commit it&#8217;s values after mine had ran, even looking that source of the RichTextEditor, and overriding it, and overriding commitProperties, it still didn&#8217;t quite work out&#8230; so simply out of frustration, i decided&#8230; well.. what the heck&#8230; why would you want to override the htmlText&#8230; what if by chance&#8230; (this someone could be crazy) someone is actually using it&#8230; then you wouldnt want to take it away from them, right? Of course not&#8230; so on that <a href="http://thanksmister.com/?p=17" target="_blank"> post from thanksmister.com</a> there are SOOOO many comments, and some of them have reverse engineered the regular expressions to change the htmlText back to what it was, and so I started thinking, why not just have a separate variable?  The whole point of what we&#8217;re doing is to make the htmlText from the TextEditor actually XHTML compliant or either make it actually show something somewhat close to what it visually shows the user in flash, in the browser&#8230; meaning when you use htmlText output from flex, and you put it in an html page in a browser, it looks like shit if you adjust the font, color, size position or anything else, because of the way it formats it&#8217;s htmlText.</p>
<p>My solution was to create a variable called <strong>xhtmlText</strong>, so now you can use myRichTextEditor.htmlText or myRichTextEditor.xhtmlText&#8230; granted I think your supposed to get rid of whitespace in true valid xhtml text (i didn&#8217;t look up any specs&#8230; I read some coding standards on it, a while back (like 2 years ago) and I integrated all the things I could remember, all tags must have an ending tag, and they must be LOWERCASE (something absolutely annoys me when i see people mixing there tag case, say from HOMESITE!), and in a href tags, target=&#8221;_blank&#8221; is deprecated, and your now supposed to use rel=&#8221;external&#8221;.  so thats the just of what I did in the regular expressions&#8230;</p>
<p><a href="http://axelscript.com/wp-content/Examples/RichTextEditorExample/RichTextEditorExample.html" target="_blank">Application </a>-<a href="http://axelscript.com/wp-content/Examples/RichTextEditorExample/srcview/index.html" target="_blank"> Source</a></p>
<p>Please feel free to check out the application, and view the source.</p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=110&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/03/24/customrichtexteditor-with-xhtml-text/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Using Flex 3, Filtering Data, and new TileList ItemsChangeEffect</title>
		<link>http://www.axelscript.com/2008/03/20/using-flex-3-filtering-data-and-new-tilelist-itemschangeeffect/</link>
		<comments>http://www.axelscript.com/2008/03/20/using-flex-3-filtering-data-and-new-tilelist-itemschangeeffect/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 14:09:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.axelscript.com/2008/03/20/using-flex-3-filtering-data-and-new-tilelist-itemschangeeffect/</guid>
		<description><![CDATA[This example walks through a simple implementation of filtering data in an ArrayCollection. It shows how to use an ItemRenderer, and to utilize the new ItemsChangeEffect in Flex 3. Application &#8211; Source In flex 3 they introduced a new listBased effect, so it effects anything that is listbased, the datagrid, the list, the tree, the [...]]]></description>
			<content:encoded><![CDATA[<p>This example walks through a simple implementation of filtering data in an ArrayCollection.  It shows how to use an ItemRenderer, and to utilize the new ItemsChangeEffect in Flex 3.</p>
<p><a href="http://www.axelscript.com/wp-content/Examples/FilterTileEffect/FilterTileEffect.html" target="_blank">Application</a> &#8211; <a href="http://www.axelscript.com/wp-content/Examples/FilterTileEffect/srcview/index.html" target="_blank">Source</a></p>
<p>In flex 3 they introduced a new listBased effect, so it effects anything that is listbased, the datagrid, the list, the tree, the tilelist, etc&#8230; I started this example based on a post on <a href="http://tech.groups.yahoo.com/group/flexcoders/message/106811" target="_blank">flexcoders</a> about using the itemsChangeEffect when filtering data.  I ran into some bad news with this, and come to find out, it is fairly difficult, and doesn&#8217;t really seem to be possible right out of the box.</p>
<p>So first off lets sort of walk through what we have.  We have the following mxml files that really matter.</p>
<ul>
<li>FilterTileEffect.mxml &#8211; which is the main app file, and holds our TileList</li>
<li>view.Thumbnail.mxm &#8211; this is a view that is called from the itemRenderer property on our TileList</li>
</ul>
<p>We set up the tileList to have an itemRenderer=&#8221;view.Thumbnail&#8221; and in that, we override the data setter method, and convert the dataObject into a strong typed Value Object, that way we get some code hinting with properties, and don&#8217;t continually have to wonder what the data object is&#8230; this can be bad if you want your ListBase component to handle different dataproviders that don&#8217;t apply to the hard typed ValueObject but then again, why would you be using an itemRenderer then, obviously you expect your data to be uniform for the itemRenderer to get to the data successfully right?</p>
<h2>The Thumbnail</h2>
<p><span id="more-109"></span></p>
<p>The thumbnail is a fairly simple MXML component, it extends a VBox and doesn&#8217;t bother implementing anything&#8230; (I have seen item renders implement the IDropInListItemRenderer Before, and i didnt&#8217; bother with that&#8230; all it does is force you to override certain methods, and i didnt&#8217; want to confuse anyone more by doing that).</p>
<p>Every Flex Component has a data attribute, and that is what we&#8217;re going to use here in order to get the data into our renderer.  With a repeater it was fairly easy to pass data along, you just passed it to a public variable that was in whatever component you were repeating&#8230; It&#8217;s a little different with ItemRenderers because you never get the change when implementing them inline, you simply say itemRenderer=&#8221;view.Thumbnail&#8221; which points to the thumbnail class, you don&#8217;t get the opportunity to actually pass parameters into that component being called&#8230; (this is ignoring the fact you could verywell use mxml to define your itemrenderer and pass it along that way)&#8230; so what you do is you override the public function set data (item:Object):void. That will be the data that gets passed implicitly to the renderer, and you can strict type it from there if you want to get code hints&#8230;</p>
<p>This Thumbnail component simply adds our image, and a label inside of a VBox.</p>
<p>The key to the thumbnail component is up in it&#8217;s base tag there is a moveEffect=&#8221;Blur&#8221; this is the effect that is going to execute when you are filtering data&#8230; I wish i could say that you can use any effect you want, but using this in tandom with the itemsChangeEffect created some issues when i tried to use any other effect besides blur&#8230; the whole question on flexcoders was how to get an effect to happen when you filter data&#8230; and the only answer I came up with is in your itemRenderer (hopefully your using one) in the base tag, add a moveEffect&#8230; thats the simplest solution there is&#8230; the reason for this you might find more information reading <a href="http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html" target="_blank">Alex&#8217;s flex closet</a> it&#8217;s a really long post, it&#8217;s pretty old, but works none the less, it&#8217;s super informative, and it&#8217;s pretty interesting.  if you don&#8217;t know much about itemrenderers it&#8217;s a great place to start.</p>
<p>anyway&#8230; Filtering data&#8230;. filtering data is an old subject that I have quite a few posts on&#8230; here is a list:</p>
<ul>
<li><a href="http://www.axelscript.com/2008/02/20/using-a-data-manager-and-filtering-data-in-a-flex-tree-even-the-nodes/" target="_blank">Using a data manager and filtering data in a flex tree, even the nodes</a></li>
<li> <a href="http://www.axelscript.com/2008/02/15/filter-data-in-flex-20-example/" target="_blank">Filtering Data In Flex 2</a></li>
<li> <a href="http://www.forta.com/blog/index.cfm/2006/7/13/Filtering-Data-In-Flex" target="_blank">Ben&#8217;s Post on Filtering Data</a></li>
</ul>
<h2>ItemsChangeEffect</h2>
<p>This I&#8217;m not really going to elaborate on, there are quite a few posts out there on it, showing different examples, adobe did a pretty good job documenting on it, and so here is a list of links that mention a little something about it.</p>
<ul>
<li> <a href="http://blog.flexexamples.com/2007/09/28/using-the-flex-tilelist-classs-new-datachangeeffect-style-in-flex-3/" target="_blank">http://blog.flexexamples.com/</a></li>
<li> <a href="http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_List_and_Data_Effects" target="_blank">http://labs.adobe.com/</a></li>
<li> <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=createeffects_5.html" target="_blank">Official Adobe Docs</a></li>
</ul>
<p><a href="http://www.axelscript.com/wp-content/Examples/FilterTileEffect/FilterTileEffect.html" target="_blank">Application</a> &#8211; <a href="http://www.axelscript.com/wp-content/Examples/FilterTileEffect/srcview/index.html" target="_blank">Source</a></p>
<img src="http://www.axelscript.com/?ak_action=api_record_view&id=109&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.axelscript.com/2008/03/20/using-flex-3-filtering-data-and-new-tilelist-itemschangeeffect/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

