wiln / flash-console

Automatically exported from code.google.com/p/flash-console
0 stars 0 forks source link

Cc.add, Cc.stack,Cc.stackch, Cc.ch, don't work when a single Number/int is provided #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Numbers or ints cannot be traced with add, stack, ch,stackch

This is because Array class has two constructor method entries as the 
constructor accepts variable types of arguments.

Example:
Array(0) doesn't create an array and fills it up with a one 0 element,it only 
creates an Array of length 0.

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Array.html#Ar
ray2()

To resolve this issue,starting from line 406 in Console.as, replace any of the 
following:

addLine(new Array(newLine)....

with:

addLine([newLine]....

Cheers,
Oliver-Bogdan Iancu

Original issue reported on code.google.com by oliver.b...@gmail.com on 12 Apr 2011 at 2:27

GoogleCodeExporter commented 9 years ago

Original comment by luay...@gmail.com on 12 Apr 2011 at 11:19

GoogleCodeExporter commented 9 years ago
Thanks so much for reporting this. Would have never noticed this my self.

Have made the change in trunk. Will soon package new zip.

Original comment by luay...@gmail.com on 13 Apr 2011 at 11:45

GoogleCodeExporter commented 9 years ago
You're welcome! indeed, it's a tricky one, I felt for it in the past as well.I 
am glad that I put my skills to good use in making this wonderful tool better :D

Regards,
Oliver-Bogdan Iancu

Original comment by oliver.b...@gmail.com on 14 Apr 2011 at 12:41