I have a swf that is a preloader for another swf (a game). I need to callback to the game swf from Javascript but can't figure out how to do this. I can call back into the preloader by registering a callback using the ExternalInterface.
I tried document.getElementById("preloader") which returns an object. The preloader has a public property called GameObj which returns a reference to the game object which has been loaded by the preloader.
The issue is, document.getElementById("preloader").GameObj is always null.
Is it possible to do this or do I need a wrapper call within the preloader?