RE: [Flashcoders] universal toString() function

2005-12-11 Thread zwetan
> > I'm quite sure that this must be around somewhere, but this time I didn't > have any luck searching the archives... > > What I'm looking for is similar to a deep-copy/clone method (e.g. > Arul/Tatsuo > http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2004- > March/106149.htm > l) but inst

RE: [Flashcoders] universal toString() function

2005-12-08 Thread Andreas Weber
s += isArray ? '[' : '{'; if(isArray) { for(var i=0, len=o.length; imailto:[EMAIL PROTECTED] On Behalf Of Jobe Makar Sent: Mittwoch, 7. Dezember 2005 17:14 To: Flashcoders mailing list Subject: Re: [Flashcoders] universal toString() function Hi Andre

Re: [Flashcoders] universal toString() function

2005-12-07 Thread Jobe Makar
Hi Andreas, Give this a shot I think it will do what you need. Its a little messy since I just typed it really quick. Hope it helps: //---Some contrived complex structure to trace var myOb = new Object(); myOb.name = "jobe" myOb.animals = ["free", "gulliver"]; myOb.someArr = [{email:"[EMAIL PR

Re: [Flashcoders] universal toString() function

2005-12-07 Thread Helen Triolo
Here is a start for you, from Dave Yang: http://quantumwave.com/flash/listObject.html. Somewhere he had a method to show arrays formatted in a way similar to what you show too, but I can't find that. This one works nicely though -- I tried a quickly modified version to see: var o:Object = {