smartfox swf refference
Posted: 25 Apr 2010, 02:46
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".
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".