jeudi 8 décembre 2016

Reference with static type error

I have an ActionScript 3 function looking like this:

private function removeEntry(myT:Vector.<MyType>):void
        {
            for (var i:Number; = myT.length - 1; i >= 0; i--)
            {   
                if(!myT[i].condition)
                {
                    removeChild(myT[i]);
                    myT.removeAt(i);
                }
            }
        }

Unfortunately I get the following nasty error:

Description Resource Path Location Type Call to a possibly undefined method removeAt through a reference with static type Vector.. (...) Flex Problem

What am I missing here?

Aucun commentaire:

Enregistrer un commentaire