<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-7794539</atom:id><lastBuildDate>Tue, 24 Mar 2009 04:31:04 +0000</lastBuildDate><title>Interchange</title><description>Flash, Flex, Physics, Web Applications, Movies, Music and whatever the hell else I feel like writing about.</description><link>http://www.binaryexposure.com/blog/default.htm</link><managingEditor>noreply@blogger.com (hl)</managingEditor><generator>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7794539.post-7225912691865743929</guid><pubDate>Tue, 24 Mar 2009 04:30:00 +0000</pubDate><atom:updated>2009-03-23T21:31:04.408-07:00</atom:updated><title>Interchange Moved</title><description>&lt;a href="http://binaryexposure.com/interchange/"&gt;http://binaryexposure.com/interchange&lt;/a&gt;. See you there.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='http://res1.blogblog.com/tracker/7794539-7225912691865743929?l=www.binaryexposure.com%2Fblog%2Fdefault.htm'/&gt;&lt;/div&gt;</description><link>http://www.binaryexposure.com/blog/2009/03/interchange-moved</link><author>noreply@blogger.com (hl)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7794539.post-9151649051422437290</guid><pubDate>Tue, 06 Nov 2007 03:20:00 +0000</pubDate><atom:updated>2007-11-06T17:34:15.567-08:00</atom:updated><title>Hash tabling with AS3</title><description>For some reason, there seems to be a bit of mystery surrounding hash tables and associative arrays in ActionScript 3. So I started digging into it a bit, because it seemed pretty simple. The culmination of my digging produced the following code which can be downloaded below.&lt;br /&gt;&lt;pre&gt;&lt;span style="font-family:Georgia,serif;"&gt;Download File:&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;a href="http://www.binaryexposure.com/blog/Hash.as"&gt;Hash.as&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;AS3 has an array class that easily handles associative arrays, and the syntax is simple:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;var myArray:Array = new Array();&lt;br /&gt;myArray["myKey"] = myValue;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;It's that easy.&lt;br /&gt;But now say you want to list the keys. Well, that's no problem, either. Not really:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;for(var i:Object in myArray){&lt;br /&gt;var keyList:Array = new Array();&lt;br /&gt;keyList.push(i);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;and then you can move through the keyList array like you would any other array. Simple.&lt;br /&gt;So we take these two simple pieces and shake them all up and produce something easy to use and relatively lightweight.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;package com.neateau.data{&lt;br /&gt;public dynamic class Hash extends Array{&lt;br /&gt;protected var _keyArr:Array;&lt;br /&gt;public function Hash(numElements:int=0){&lt;br /&gt;super(numElements);&lt;br /&gt;   this._keyArr = new Array();&lt;br /&gt;}&lt;br /&gt;public function addItem(key:String, value:Object):void{&lt;br /&gt;if(this[key]==null){&lt;br /&gt;   this._keyArr.push(key);&lt;br /&gt;}&lt;br /&gt;this[key] = value;&lt;br /&gt;}&lt;br /&gt;public function getItem(key:String):Object{&lt;br /&gt;return this[key];&lt;br /&gt;}&lt;br /&gt;[Bindable]&lt;br /&gt;public function get keys():Array{&lt;br /&gt;return this._keyArr;&lt;br /&gt;}&lt;br /&gt;//this is done to avoid the warning when the keys are bound to something&lt;br /&gt;public function set keys(a:Array):void{}&lt;br /&gt;}&lt;br /&gt;}&lt;span style="font-family:Georgia,serif;"&gt;&lt;br /&gt;And there you have it. A simple Hash class that extends the built in Array functionality and adds in a couple of handy dandy features.&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;a href="http://www.binaryexposure.com/blog/Hash.as"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='http://res1.blogblog.com/tracker/7794539-9151649051422437290?l=www.binaryexposure.com%2Fblog%2Fdefault.htm'/&gt;&lt;/div&gt;</description><link>http://www.binaryexposure.com/blog/2007/11/hash-tabling-with-as3</link><author>noreply@blogger.com (hl)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7794539.post-116897468820928788</guid><pubDate>Tue, 16 Jan 2007 19:06:00 +0000</pubDate><atom:updated>2007-01-16T11:11:40.833-08:00</atom:updated><title>Flex 2 - IO Error #2032 - Web Service and Flex</title><description>So I was running into problems with this. Ran a quick google to find the solution - de nada. So I start deconstruction of my web service, of my Flex App, everything. Could be this, could be that. What was it? The file I was trying to write to was in use, by me (trying to update an XML that shows up in the Flex app). I've been using an HTTPService instead of a WebService to retrieve the XML. I guess now I'm going to move it into the WebService. There were no real solutions out there for this error, however, and I thought I'd let everyone know what I'd figured out.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='http://res1.blogblog.com/tracker/7794539-116897468820928788?l=www.binaryexposure.com%2Fblog%2Fdefault.htm'/&gt;&lt;/div&gt;</description><link>http://www.binaryexposure.com/blog/2007/01/flex-2-io-error-2032-web-service-and</link><author>noreply@blogger.com (hl)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item></channel></rss>