Arul's Blog On Multimedia, Flash MX, Director And Dreamweaver MX
Recent Entries | Guest Book | QuickView | XML-RSS feed | My Profile | Home
::: About this Blog :::
Welcome to Arul's Blog!
Weblog on Multimedia,
Macromedia Flash MX Flash MX
Macromedia Director Shockwave Studio 8.51 Director
Macromedia Dreamweaver MX Dreamweaver MX
View my profile And me :)
Here I'm going to share my views, opinions and code with you all.

::: Services :::

:. ActionScript Highlighting
:. AS Highlighter v2 new!


::: ActionScript :::
:. toString
:. skipCache
:. getWords
:. getDateFromString
:. colorUtils
:. XMLNode-transformTags
:. Object-copyProperties
:. Object-clone

::: ActionScript 2 :::
:. XMLHighlighter
:. PriorityQueue

::: Archives :::
[September 2002]
[October 2002]
[November 2002]
[December 2002]
[January 2003]
[February 2003]
[March 2003]
[April 2003]
[May 2003]
[June 2003]
[July 2003]
[September 2003]
[October 2003]
[December 2003]
[January 2004]
[February 2004]
[March 2004]
[April 2004]
[May 2004]
[June 2004]
[July 2004]
[December 2004]
[January 2005]
[February 2005]
[March 2005]
[May 2005]
[June 2005]
[July 2005]
[August 2005]
[June 2006]
[July 2006]
[November 2006]
[December 2006]
[January 2007]

::: Time Zone :::
All Times on this blog are
GMT + 5:30 Hours
(Indian Standard Time)

::: Flash Resources :::
:. Flash Components
:. Were-Here Forum
:. Digital Illusion
:. Flashmove Forum
:. Flash Goddess
:. Prototypes
:. Actionscript Toolbox
:. UltraShock
:. Chattyfig
:. Full as a Goog
:. Flog

::: Flashers :::
:. Mike Chambers
:. Greg Burch
:. Branden Hall
:. Samuel Wan
:. Stuart Schoneveld
:. Guy Watson
:. Robin Debreuil
:. Mario Klingemann
:. Moises
:. Aral Balkan
:. Peter Hall
:. Josh Dura
:. Alessandro
:. Brajeshwar
:. Nik Khilnani

::: Small Print :::

© Copyright 2002
R.Arul Kumaran

[Made with Blogger]


Sunday, March 30, 2003

Update.Arul's Blog: Getting Older...

Today is my Birthday! Not much of celebrations. This time my wife is with me that is the difference.
As many people do, I'm also thinking of taking resolutions. I will be more focused in choosing my field. Also I will dedicate some of my time to keep this blog updated frequently.

posted by Arul | link | ^top | next> | add comment
Friday, March 28, 2003

Code.Flash MX: Correction to Object.toAS() version 2!

Ampre's code has a bug in handling Array of strings (refer to my previous post). Since he is just enclosing the result of original Array.toString() with square backets it returns [a,b,10] when it is supposed to return ['a', 'b' ,10]. Just replacing his version of Array.prototype.toString with the following code fixes it.
Array.prototype.toString = function() {
        var s;
        for (var i = 0; i<this.length; i++) {
                s += ((typeof (this[i]) == 'string') ? "'"+this[i]+"'" : this[i])+",";
        }
        if (s.length) {
                s = substring(s, 1, s.length-1);
        }
        return "["+s+"]";
};

posted by Arul | link |<prev. | ^top | next> | add comment
Wednesday, March 26, 2003

Update.Arul's Blog: Team Macromedia Volunteer!

Last year I was selected as a Team Macromedia Volunteer for Flash. But I kept quiet waiting for my profile to be featured in Macromedia site.

Today my name is included in the list and my profile is also featured on the Macromedia site. Let me share the joy with you all :)

posted by Arul | link |<prev. | ^top | next> | add comment
Sunday, March 09, 2003

Code.Flash MX: Better Object-toAS() Code.

As you all already know my Object.toAS() code does fail with circular references. Ampre has replied with the following code in prototype, which is sleeker and also can addresses the circular reference issue to some extent.

Here is that code
Object.prototype.toString = function() {
        var s;
        if (this.$tmpsvar) {
                return "this";
        }
        this.$tmpsvar = true;
        ASSetPropFlags(this, "$tmpsvar", 1);
        for (var i in this) {
                s += i+":"+((typeof (this[i]) == 'string') ? "'"+this[i]+"'" : this[i])+",";
        }
        if (s.length) {
                s = substring(s, 1, s.length-1);
        }
        delete this.$tmpsvar;
        return "{"+s+"}";
};
Array.prototype.$toString = Array.prototype.toString;
Array.prototype.toString = function() {
        return "["+this.$toString()+"]";
};
ASSetPropFlags(Array.prototype, ["$toString"], 1);
Usage Example
qz = {abcd:20, ddsasd:88, phft:"cat", dd:{aaa:33, no:false, yes:true}};
qz.qzzz = qz;
trace(qz);
//traces '{qzzz:this,abcd:20,ddsasd:88,phft:'cat',dd:{aaa:33,no:false,yes:true}}'

posted by Arul | link |<prev. | ^top | next> | add comment

footnote:-
Also check the recent entries and feel free to add your comments. I need your comments to improve this blog