XML and V2 Tree Example 4 – Hiding Text Nodes.

Lets explore how we can hide text nodes 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 “textArea”
Write the following in […]

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

XML and V2 Tree Example 3: Tree Search.

Lets enhance the last example by adding search functionality. We need a function that will return the matching nodes as an array.

The following function does that for us. Add it to the timeline.

Add 1 textInput, 1 button, 3 check boxes, and 1 label component as shown below. Name them find_txt, find_pb, names_chk, […]

By |March 15th, 2005|Blog, Examples, Flash MX|0 Comments

XML and V2 Tree Example 2: Open/Close All.

Lets enhance the last example by adding two buttons to open and close all tree nodes

Add the following code to the first frame

Add two push button (v2) components to the document and label them “Open All” and “Close All”

write the following code for “Open All” button

?Add two push button (v2) components to the document […]

By |January 24th, 2005|Blog, Examples, Flash MX|0 Comments

XML and V2 Tree Example 1.

Rendering XML using Tree component is very simple, because in Flash MX 2004, V2 Tree component is based on XML.

Lets explore the possible ways to visualize sample.xml in the coming examples.

Create a new document in Flash MX 04, drag and drop a tree component and name it as “tree”

Write the following code in the […]

By |January 20th, 2005|Blog, Examples, Flash MX|0 Comments

Comparing components version 1 and 2: PushButton

The purpose of showing this is two fold. One is to show difference in the properties and methods exposed by the Push Button component in V1 and V2. Second is to show case how easy and useful it is to use my ActionScript() function to see what’s inside a component.

I just dragged and dropped […]

By |September 28th, 2003|Blog, Examples, Flash MX|0 Comments

Easy way to highlight the links in flash dynamic text

Yet another transformTags() example.
You all know that links in flash text won’t highlight with blue color and underline as it does in browser. If you want to highlight all the links in your dynamic text box you may use the following object as the format object to transformTags to achieve the […]

By |December 30th, 2002|Blog, Examples, Flash MX|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, 2002|Blog, Examples, Flash MX|0 Comments

Creating Dynamic Chart with Flash Charting Components.

Here is the dynamic chart example from my Singapore User group Seminar.

Drag and drop a Pie Chart component, name it myPieChart and increase the span to 2 frames in the time line
Add another layer on top and create a shape in the same color as the chart to hide it in the first […]

By |November 13th, 2002|Blog, Examples, Flash MX|0 Comments

DataGrid Component Example.

Finally I received the Macromedia MX Developer Resource Kit today!
I’m right now playing with the DataGrid component.

The following example is just to show how simple it is to use the data grid component. I’ve created it by

dragging and dropping a data grid component and naming it as my_dg.
adding a dynamic text box and […]

By |November 11th, 2002|Blog, Examples, Flash MX|0 Comments

Dynamic Tree using FTree Component and .tab file

Here I am going to explain how we can build a dynamic tree using FTree Component that comes with Flash UI Components Set 2.

Hierarchical nature of XML makes it more suitable for building Tree Views But I have decided to use simple tab file (Tab delimited text file) which contains the path to build […]

By |October 2nd, 2002|Blog, Examples, Flash MX|0 Comments