Tips.PHP: A hidden gem in array_column

array_column can do much more than extracting a single column. Here is what you can do with array_column in PHP

By |September 10th, 2019|Blog, Code, Examples, PHP, Tips|0 Comments

Creating a Talking Application in Flash.

Here I will show how to create a light weight talking application in flash. It is one of the Examples I showed in the Singapore User Group Session.

Our task is fairly simple,

Creating an audio file (preferably MP3) with all the words we want our application to speak.
Using that audio in a movieclip […]

By |December 1st, 2006|Blog, Examples, Flash MX|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

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

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

Using XMLShortcuts Example.

XML Shortcuts helps to access the XMLNodes with ease. You may read my previous post which compares the XMLShortcuts with XPath from XFactor Studio, XML to Object Prototype, and XMLNode easy access by tatsuo kato

Here is a example file, that shows how you can use XMLShortcuts in your MTASC projects.

above script produces the swf […]

By |June 28th, 2006|Blog, Examples, MTASC|0 Comments

Generating Unique Random Number for Flash Lite 1 and 1.1.

Generating Unique random number for Flash Lite 1.1 is tricky because of the Flash 4 style syntax. I’ve made a sample application which shows how this can be achieved.

Here is the SWF showcasing this

You can download the FLA from here

By |June 10th, 2006|Blog, Examples, Falsh Lite|0 Comments

XML Shortcuts V2 released

Here you can download the second version of XMLShortcuts component which helps to access XMLNodes easily. Refer to Online Help document below for more info


iframe {
background-color: #ffffff;
border: 5px solid #D4D0C8;

<a href=”/HelpPanel/?target=XMLShortcuts” target=”_blank”>XMLShortcuts Online Help</a>

By |July 12th, 2005|Blog, Examples, Flash, Flash MX|0 Comments

XML and V2 Tree Example 5 – Limit by Depth.

Lets explore how we can hide nodes beyond the predefined depth from rendering in tree. Before hiding the text nodes, the tree looks like this (as per Example 1) with this XML

Start with a blank FLA, add a tree component to stage, name it “tree”, add a text area component name it […]

By |June 8th, 2005|Blog, Examples, Flash MX|0 Comments