I think you need “new”…

On Nov 3, 2015, at 9:55 AM, lizhi <[email protected]> wrote:

> var vec:Vector.<Number> = Vector.<Number>([1, 2, 3]);
>   alert(vec.length);
> I need 3,but get 0
> 
> 
> 
> 
> ------------------ Original ------------------
> From: "Alex Harui [via Apache Flex 
> Development]"<[email protected]>; 
> Date: 2015年11月3日(星期二) 下午3:41
> To: "lizhi"<[email protected]>; 
> Subject: Re: vector error
> 
> 
> 
> What output are you getting and what error occurs? 
> 
> -Alex 
> 
> On 11/2/15, 10:39 PM, "lizhi" <[hidden email]> wrote: 
> 
>> in as3. 
>> new Vector.<*>([1,1,1]); 
>> not the same Vector.<*>([1,1,1]); 
>> 
>> pls try 
>> 
>> 
>> 
>> -- 
>> View this message in context: 
>> http://apache-flex-development.2333347.n4.nabble.com/vector-error-tp49772p
>> 49783.html 
>> Sent from the Apache Flex Development mailing list archive at Nabble.com. 
> 
> 
> 
> 
>  If you reply to this email, your message will be added to the discussion 
> below:
> http://apache-flex-development.2333347.n4.nabble.com/vector-error-tp49772p49784.html
>  
> To unsubscribe from vector error, click here.
> NAML
> 
> 
> 
> --
> View this message in context: 
> http://apache-flex-development.2333347.n4.nabble.com/vector-error-tp49772p49785.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to