The FlaExporter Preview Window will give you a helpful message if ActionScript or JS code has a problem.
Use trace or console.log to send output to the browser's console output
Here's an example--
trace("foo is "+foo);
Use the name property to determine which symbols are being referenced in the display hierarchy.
Here's an example--
trace("My MovieClip is "+myMC.name);