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?
好吧,你可以使用ExternalInterface ,但是有一些原因你不能把你的预加载器放在同一个swf中吗?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.