ActionScript Reading Static Const Array

Posted by TheDarkIn1978 on Stack Overflow See other posts from Stack Overflow or by TheDarkIn1978
Published on 2010-05-22T23:43:43Z Indexed on 2010/05/22 23:50 UTC
Read the original article Hit count: 126

how can i evaluate weather my test array is equal to my static constant DEFAULT_ARRAY? shouldn't my output be returning true?

public class myClass extends Sprite
{
private static const DEFAULT_ARRAY:Array = new Array(1, 2, 3);

public function myClass()
{
var test:Array = new Array(1, 2, 3);
trace (test == DEFAULT_ARRAY);
}

//traces false

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about arrays