In your FLA publish settings, select "Permit Debugging" and it will show you which line the error occurs. Basically some variable you're referencing in that line of code doesn't exist at that point, you'll have to make sure you're creating it before that point or referencing it correctly.