Jump to content

[SOLVED] Bug WidgetFlash Array.length


photo

Recommended Posts

Hello!

Simply as an example:

 

///////// Example  1 ///////////
var arr:Array = new Array();
trace('Len: ' + arr.length);
// Print: Len: 0 // Right!

///////// Example  2 ///////////
var arr:Array = new Array("one");
trace('Len: ' + arr.length);
// Print: Len: 0 // Error!

///////// Example  3 ///////////
var arr:Array = new Array("one", "two");
trace('Len: ' + arr.length);
// Print: Len: 2 // Right!

 

Thank you.

Link to comment
×
×
  • Create New...