Code: Select all
com.smartfoxserver.openspace.engine.control::OpenSpaceController/createMyAvatar at /Users/Paolo/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/OpenSpaceController.as:827
com.smartfoxserver.openspace.components.flash:OpenSpace/createMyAvatar
com.filament.fge.openspace::OpenSpaceCtrl/os_onMapRendered at ..\openspace\OpenSpaceCtrl.as:188
com.smartfoxserver.openspace.engine.control::OpenSpaceController/dispatchEvent at /Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/OpenSpaceController.as:2166
com.smartfoxserver.openspace.engine.control::OpenSpaceController/completeMapRendering at /Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/OpenSpaceController.as:1938
com.smartfoxserver.openspace.engine.control::OpenSpaceController/onMapRendered at /Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/OpenSpaceController.as:1283
The code that runs in OpenSpaceCtrl::os_onMapRendered (our code)
Code: Select all
private function os_onMapRendered(e:OpenSpaceEvent):void {
mOs.removeEventListener(OpenSpaceEvent.MAP_RENDERED, os_onMapRendered);
mOs.avatarAppDomain = mGlobalAvatarAppDomain;
var params:AvatarCreationParams = new AvatarCreationParams();
params.type = mAvatarType;
params.name = mClient.myUserName;
mOs.createMyAvatar(params);
mLoaded = true;
onLoaded.trigger(this);
}
Our mmo loads and unloads maps fine.. about 90% of the time. When moving from one map to another in quick succession (back and forth) after about every 10 attempts this error is fired. Could you fine gentlemen look into the code at the lines listed and where the error is fired (I would, but we don't own the source) and let me know if you found anything that could be causing it (or if you know of any other problem we could be causing ourselves with destroying and creating maps)? I can't really offer much else other than.. .createMyAvatar() is ONLY ever called after the map has been rendered (which should be correct).
I can post more of our code if necessary.
As always, thanks guys (bax, lapo).