ops, nao e split e splice... ou seja:

isto:
private function  _DrawOne(aList:array):Number {
    var nRand:Number = Math.round( Math.random * aList.length );
    return aList.*split*(nRand, 1)[0];
}

devia ser isto:


private function  _DrawOne(aList:array):Number {
    var nRand:Number = Math.round( Math.random * aList.length );
    return aList*.splice(*nRand, 1)[0];
}

--~--~---------~--~----~------------~-------~--~----~
Recebeu esta mensagem porque está inscrito em Grupo "Mailing List da Comunidade 
Portuguesa de Rich Internet Applications - www.riapt.org" do Grupos Google.
 Para enviar mensagens para este grupo, envie um email para 
[email protected]
 Para anular a inscrição neste grupo, envie um email para 
[email protected]
 Para mais opções, visite este grupo em 
http://groups.google.com/group/riapt?hl=pt-PT
-~----------~----~----~----~------~----~------~--~---

Responder a