pro-tip for working with scenes in flash CS3 (not needed in CS4). you have to have something on the timeline (even an empty comment will work) for the scenes to be accessible at run time (from a wrapper swf). otherwise scenes.length will always be 1 and the scenes wont have any names. thanks to lapsus bloggus for being the only person of the web to figure it out and talk about it