<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-7794539</id><updated>2009-03-23T21:31:04.368-07:00</updated><title type='text'>Interchange</title><subtitle type='html'>Flash, Flex, Physics, Web Applications, Movies, Music and whatever the hell else I feel like writing about.</subtitle><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7794539/posts/default'/><link rel='alternate' type='text/html' href='http://www.binaryexposure.com/blog/default.htm'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.binaryexposure.com/blog/atom.xml'/><author><name>hl</name><uri>http://www.blogger.com/profile/15235501636490382219</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7794539.post-7225912691865743929</id><published>2009-03-23T21:30:00.000-07:00</published><updated>2009-03-23T21:31:04.408-07:00</updated><title type='text'>Interchange Moved</title><content type='html'>&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;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7794539/7225912691865743929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7794539&amp;postID=7225912691865743929' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7794539/posts/default/7225912691865743929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7794539/posts/default/7225912691865743929'/><link rel='alternate' type='text/html' href='http://www.binaryexposure.com/blog/2009/03/interchange-moved' title='Interchange Moved'/><author><name>hl</name><uri>http://www.blogger.com/profile/15235501636490382219</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7794539.post-9151649051422437290</id><published>2007-11-05T19:20:00.000-08:00</published><updated>2007-11-06T17:34:15.567-08:00</updated><title type='text'>Hash tabling with AS3</title><content type='html'>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;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7794539/9151649051422437290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7794539&amp;postID=9151649051422437290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7794539/posts/default/9151649051422437290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7794539/posts/default/9151649051422437290'/><link rel='alternate' type='text/html' href='http://www.binaryexposure.com/blog/2007/11/hash-tabling-with-as3' title='Hash tabling with AS3'/><author><name>hl</name><uri>http://www.blogger.com/profile/15235501636490382219</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7794539.post-116897468820928788</id><published>2007-01-16T11:06:00.000-08:00</published><updated>2007-01-16T11:11:40.833-08:00</updated><title type='text'>Flex 2 - IO Error #2032 - Web Service and Flex</title><content type='html'>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;</content><link rel='replies' type='application/atom+xml' href='http://www.blogger.com/feeds/7794539/116897468820928788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=7794539&amp;postID=116897468820928788' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7794539/posts/default/116897468820928788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7794539/posts/default/116897468820928788'/><link rel='alternate' type='text/html' href='http://www.binaryexposure.com/blog/2007/01/flex-2-io-error-2032-web-service-and' title='Flex 2 - IO Error #2032 - Web Service and Flex'/><author><name>hl</name><uri>http://www.blogger.com/profile/15235501636490382219</uri><email>noreply@blogger.com</email></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>