What the...? I don't get what's going on here: Here's a part of the code that works in .swf but not in Zinc; debug is a global method I'm using to either output to the output window or popup an input box if in zinc:
debug("total screens: " + gApp.screens.length); tX = new String(); for (i=0; i<gApp.screens.length; i++) { debug("checking : " + i); tTop = new String(); debug("after tTop i : " + i); debug("testing gApp.screens["+ i + "]"); dumpIt(gApp.screens[i]); gApp.screens.length = 1 (one test item in the array). Now the thing is after the 'for i=0...' the first debug 'checking' outputs 0 then after I do tTop = new String() when I do 'after tTop i' <---- i comes back UNDEFINED! I even tried changing it to this: for (i=0; i<gApp.screens.length; i++) { debug("checking : " + i); tTop = new String(); debug("after tTop i : " + i); debug("testing gApp.screens["+ i + "]"); The second 'i' still comes back as undefined. What's up with this? Me? Lack of sleep? There's nothing else that's going on here... _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com