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

Actionscript Syntax Highlighting with SE|PY Editor v.1.0.5.4.

SE|PY has become my favorite actionscript editor these days.

It’s default color highlighting scheme is very different from Flash IDE. So I’ve modified it to syntax highlight similar to my actionscript highlighting service 2 and exported the settings using File > Import/Export > Export Settings for your convenience. You may download SEPY_ColorStyle.tar.gz and import […]

By |December 5th, 2004|Blog, Flash MX, Tools|0 Comments

PriorityQueue Class

Brandan Hall wrote the PriorityQueue (pQueue) class in “Object Oriented Programming with ActionScript” published by New Riders. I’ve converted that class to ActionScript 2 which you may download from here.

By |July 21st, 2004|Blog, Code, Flash MX|0 Comments

Actionscript for XML pretty printing and color highlighting . XMLHighlighter class

XMLHighlighter class
Availability

Flash Player 6 (copy the XMLHighlighter class actionscript file to the same folder as the FLA or to the class path).

Description

Use the methods and properties of the XMLHighlighter class to generate the html code to generate color highlighted pretty printed XML

Method summary for the XMLHighlighter class

Method
Description

XMLHighlighter.highlight()
Returns the HTML highlighted code for the […]

By |July 19th, 2004|Blog, Code, Flash MX|0 Comments

XML pretty printing and color highlighting .

We used to build many Flash Applications which exports data as XML. How about pretty printing it with colors?

Before writing my own code I searched to find any existing code and found this code written by Evgeniy Potapenko in prototype. It does the basic pretty printing part, but it had few problems in […]

By |July 14th, 2004|Blog, Demo, Flash MX|0 Comments

Converting Date Strings back to Date.

We all know that trace(new Date()) traces the date as a string that looks like “Mon Jul 12 13:20:09 GMT+0800 2004”

How to convert this String back to Date? There is no built in method, so I’ve written this function to do that.

Usage:

You may download the ‘getDateFromString.as’ from here

By |July 12th, 2004|Blog, Code, Flash MX|0 Comments

Breeze Presentation on “Taking Sketches into full-blown Flash Animations”.

Yesterday we really enjoyed the presentation by Chris Georgenes, one of our Team Macromedia Volunteers. He talks about the minute details of animation. Take a look at his great presentation here. If you like to see the resulting animation of his presentation, take a look at his website.

Enjoy 🙂

By |June 10th, 2004|Blog, Flash MX, News|0 Comments

Pixel Perfect Drawing Tools for Flash MX04.

So far, whenever in need of pixel accurate graphics in flash, I follow the following steps

1. Enable the snap to pixel option (if not enabled already)
2. Zoom in to see the pixel grid
3. Select Rectangle Tool
4. Select ‘No Color’ for Stroke
5. Draw Pixel Rectangles with the help of snap to pixel

The good news is, […]

By |June 9th, 2004|Blog, Flash MX, News|0 Comments

Actionscript Syntax Highlighting with SE|PY Editor v.0.9.

Many of you might already be using SE|PY a very special open source actionscript editor available for free. We have to really thank Alessandro Crugnola & Team for all their efforts for giving us such a wonderful tool.

Long back I’ve downloaded a early version of SE|PY it used to take time to […]

By |April 1st, 2004|Blog, Flash MX, Tools|0 Comments