RE: [Flashcoders] Wierd split

2005-12-20 Thread Merrill, Jason
I tried it like you said, putting them in different frames, and it works fine for me. Frame 1: _root.cat_colors = new Array(); _root.cat_colors[0] = bob,john,betty; Frame 3: for (i=0; i_root.cat_colors.length; i++) { trace(String: +_root.cat_colors[i]); var tempColor:Array =

RE: [Flashcoders] Wierd split

2005-12-20 Thread Adrian Lynch
Just took your code and plonked it in a new .fla and it works for me. Is anything else happening in the movie or any included movies? See it here: http://www.adrianlynch.co.uk/temp/colours.fla Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Boutin

Re: [Flashcoders] Wierd split

2005-12-20 Thread Mike Boutin
The movie the script is in gets loaded into another movie. I can trace out _root.cat_color[0] etc... with no problems, even doing so in the for loop outputs proper values for _root.cat_colors[i]. If i trace out tempColor.length after the split, it always comes back undefined, thus the loop

Re: [Flashcoders] Wierd split

2005-12-20 Thread Mike Boutin
Thanks Adrian, your code works exactly like mine should but for some reason mine doesnt get the same results (though its the same code) ;) Mike Boutin Adrian Lynch wrote: Just took your code and plonked it in a new .fla and it works for me. Is anything else happening in the movie or any