« Previous | Next »
The dumbest mistake that I make over and over
Published on Dec. 05, 2008
by Kyle
for(var i:uint=0;i < objects.length;i++)
{
if(objects[i] == o)objects.splice(i,1);
}
plus I could just safe myself the frustration and do this:
var index:int = objects.indexOf(o);
if(index > -1) objects.splice(index,1);
stupid! I want to sleep.
Leave a response
Trackback URL: The dumbest mistake that I make over and over.






Leave a Reply