SFS PRO 1.2.5 - new array shortcut

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
Virusescu
Posts: 260
Joined: 07 Sep 2005, 09:36
Location: [RO]Bucharest
Contact:

SFS PRO 1.2.5 - new array shortcut

Post by Virusescu »

While developing an extension I ran into the following problem.
I was defining an array using the shortcut method like

Code: Select all

var myArr = [1,5,23,6];
//as I later discovered.
trace(myArr[1]);//traces undefined
trace(myArr);// traces NaN
While defining the array like
var myArr = new Array(1,5,23,6); works perfect.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

humm... not sure what the problem could be
the literal assignment should work, and I've already used it.

I will investigate :)
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply