Unchecking 'Export in first frame' glitch..?

Flash CS3-AS3. In order to get my movie to preload correctly… I unchecked ‘Export in first frame’ on all my game elements, and set my export frame to 2 in publish settings.

I get this error…

ReferenceError: Error #1065: Variable defaultGameTile is not defined.
at global/flash.utils::getDefinitionByName()
at farmGame_fla::MainTimeline/addTile()


function addTile(i, cellX, cellY, tileType) {
    var newTile = new (getDefinitionByName(tileType))();
    game.addChild(newTile);
}

If I check ‘Export in first frame’, the error goes away… What gives? My game is on frame 2, I even tried frame 3…

Edit: Tried creating a class to make sure it wasn’t a problem with flash not generating classes. Didn’t help. :confused: Is it a problem with getDefinitionByName needing stuff to be exported in first frame???

This technote didn’t help… My movie doesn’t skip the export frame.
http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401348

Why are my classes missing unless they are exported in first frame… ahhhhhhhhhhhh Ahhhhh! tears hair out

Note: I even set the publish setting to export in frame 1 and my classes are missing, however if the box is checked on the movieclip in the library… They work??? Wtf…