Re: [Flashcoders] AS3 for each loop / splice issue - RESOLVED

2008-08-28 Thread Gerry
I fixed it myself...I was staring at the code too long so after a long break I came up with this to be able to get through the cue_points array... // var count:Number = 0; for each (var cue:XML in xmlData..step.training.cuein){

Re: [Flashcoders] AS3 for each loop / splice issue

2008-08-28 Thread Kenneth Kawamoto
If you post your XML as well that'll help, but this: cue_points[cue].splice(1,1,cueIn); ...looks dodgy to me. "cue" needs to be an uint for this to work but it's an XML, also you set "cueIn = cue" ??? Kenneth Kawamoto http://www.materiaprima.co.uk/ noentourage wrote: Hey flashcoders... I'm

[Flashcoders] AS3 for each loop / splice issue

2008-08-27 Thread noentourage
Hey flashcoders... I'm parsing an xml doc and building an array then later trying to stuff a value in to each object in the array at the second part of each object. [code] //at the top of my class I have the variable for the cue_points array // create array with text prompts and a dummy value