Hi
I'm trying to split up my game into several parts, and thus need to refference the smartfox object created in the login swf to the game swf. I found a few vague post about this on the forum, but can't get it to work.
I create a Loader object with and INIT event handler (have also tried COMPLETE without any success). I then try to pass the SmartFoxClient by typing e.currentTarget.content.smartfox = smartfox, where e is the Event object and smartfox is the SmartFoxClient object. It was said in a thread here, that this should work, but I keep getting the 1056 Flash error: "Cannot create property smartfox".
smartfox swf refference
I am not sure if understand what you are doing but probably it would be easier if the loaded SWF would call a method on the parent SWF to get the reference.
This way you should also have less coordination issues... when the loaded SWF is ready and initialized it will call the method, grab the reference and use it.
This way you should also have less coordination issues... when the loaded SWF is ready and initialized it will call the method, grab the reference and use it.
Maybe this will help: http://www.flashmorgan.com/index.php/20 ... -with-as3/