Shockwave-india.com moved to another server.

Last week I moved the site to another server. During this time I’ve lost few comments added to the blog, and also some emails. If any of you sent a mail to me or left a comment and couldn’t find it there, please send it again. Sorry for the...

Enhancing the Blog Reader Example.

In the Live docs you might have read about Retrieve and Display Data. Here I’ve enhanced the same MXML by the following The LinkButton hidden until the datagrid change event is fired. Enabled the Data Tips for ‘Posts’ column to show tool tips text on...

Sending Arrays with offset Index.

Last time we saw the problem with sending ActionScipt 3 Associative Array. Now we let us see where associative arrays can help. Lets Make an Array with offset index in PHP: $arr =array(5=>5); in ActionScript: var arr:Array= []; arr[5]=5; Sending these arrays either...

Understanding AMF0 and AS3 Array.

You might have already read about Array oddity in AMFPHP/Flex 2. AS3 Associative Arrays, when sent through AMF0 they include ‘length’ propery. But numeric index based Arrays are fine. I’ve created the following AMFPHP Service to showcase this issue....

Introducing ObjectStore.

What is ObjectStore? Object Store is a service for creating, managing and accessing objects on the server. It is a light weight alternative to keeping XML data on the server. How do we compare ObjectStore with RemoteSharedObject? ObjectStore is similar to...

How to load data from a remote URL?

I found that the DataLoadingTest class given in Adobe Labs ActionScript 3 Resources site was buggy and did not work. I’ve corrected the file myself and made it work. Here is the working code 🙂 ActionScript3 [cc lang=”actionscript3″] package { import...

Porting XMLHighlighter class to ActionScript 3.

XMLHighlighter generates color highlighted pretty printed HTML code for the given XML document, I have ported it from ActionScript 2 to ActionScript 3. Here is what I learned during the process XML object in ActionScript 3 is different (It is ECMAScript for XML...

Removing Byte Order Mark (BOM) from the given string.

Since PHP does not recognize and ignore BOM in the loaded files, I wrote the following script to find and remove the BOM from the loaded string. [cc lang=”actionscript3″] function removeBOM($str=”){ if(strpos($str,...