Re: [Flashcoders] loop to delete XML nodes WAS: Getting bitmap data after successfully loading a swf file

2010-11-30 Thread Kenneth Kawamoto
I have this (rather ugly) solution: var i:uint = 0; while(i < xml.dog.length()){ if(xml.dog[i].attribute("id") != "2"){ delete xml.dog[i]; } else { ++i; } } My preferred way would be though, is doing it vise versa, i.e. add the qualifying nodes instead of deleting not quali

[Flashcoders] loop to delete XML nodes WAS: Getting bitmap data after successfully loading a swf file

2010-11-30 Thread Mendelsohn, Michael
Sorry list! I didn't properly title that post! :-( - MM Hi list... I want loop through to delete certain nodes, but can't figure out how to do it. I've tried a conventional loop, for...in and for...each...in, and I must be missing something.