Maybe try:
var a:Number = arr[0] as Number;
I would add @flexjsignorecoercion Number to an asdoc block for the method.
Another option may be to convert arr to Vector.<Number>
-Alex
On 9/22/16, 11:18 PM, "lizhi" <[email protected]> wrote:
>as code
>
>for (var i:int = 0; i < 100000000;i++ ){
> var a:Number = arr[0]
> }
>
>
>js code
>
>for (var /** @type {number} */ i = 0; i < 100000000; i++) {
> var /** @type {number} */ a = Number(this.arr[0]);
> }
>
>and how remove the Number(this.arr[0]);
>
>this good,but not good in loop
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/how-remove-numcheck-t
>p55279.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.