Цитата:
Сообщение от Jewelz
а так?
 Код AS3:
public static const ARR1:Array = [1, 2, 3];
public static const ARR2:Array = [3, 2, 1];
public static const _instance = new Singleton();
|
так все ОК. в _arr2 попадет значение ARR2.
но кто-нибудь может ответить почему ARR2==null на указаной строчке

Код AS3:
public class Singleton
{
public static const ARR1:Array = [1, 2, 3];
public static const _instance = new Singleton();
public static const ARR2:Array = [3, 2, 1];
private var _arr1:Array = ARR1;
private var _arr2:Array = ARR2; // breakpoint!!!! здесь ARR2==0, a ARR1== [1, 2, 3]
}