About admin

This author has not yet filled in any details.
So far admin has created 174 entries.

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 trouble

By |November 28th, 2006|Arul's Blog, Blog, Update|0 Comments

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 roll over.
Made it a scalable layout by using constraint-based layout.

Here is […]

By |July 25th, 2006|Blog, Examples, Flex 2|0 Comments

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 way they go with the missing indices filled with null, so the PHP array comes to flash […]

By |July 19th, 2006|AMFPHP, Blog, Tips|0 Comments

Webcam Motion Detection using AS3 – Source Released.

I rewrote the webcam motion detection example in Actionscript3 using Flash 9 Alpha. You can see the demo here.

As I promised earlier the FLA is ready for download here 🙂

By |July 17th, 2006|Blog, Code, Flash 9|0 Comments

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. It is a simple service with a remote method that converts any given object to […]

By |July 12th, 2006|Blog, Examples|0 Comments

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 RemoteSharedObject in terms of storing data on the server, but ObjectStore does not […]

By |July 11th, 2006|AMFPHP, Blog, News|0 Comments

Service Browser does not handle method table ‘arguments’ metadata defined as key value pairs.

While defining the method table for my ObjectStore service I noticed it. Those who use the JavaDoc style comments to generate the method table may never notice this issue.

Arguments metadata can be defined as an array of strings (as created by javadoc comments) or array of array which contains argument name as the […]

By |July 11th, 2006|AMFPHP, Blog, Bug|0 Comments

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 🙂

 

You can download the file from here.

By |July 4th, 2006|Blog, Examples, Flash 9|0 Comments

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 (E4X)).
For backward compatibility we have XMLDocument class which is equalent […]

By |July 4th, 2006|Blog, Examples, Flash 9|0 Comments

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.

By |July 3rd, 2006|Blog, Code, PHP|0 Comments