Page 1 of 1

Need Help

Posted: 10 Sep 2009, 12:27
by superDin
When I use this method

Code: Select all

function onMapRendered(evt:OpenSpaceEvent):void{
	os.createMyAvatar("haha")
	}
error comes:

Code: Select all

TypeError: Error #1009:Null object reference can not access the properties or methods
at com.smartfoxserver.openspace.mvc::IsoEngineModel/createAvatar()
	at com.smartfoxserver.openspace::OpenSpace/createMyAvatar()
	at main2_fla::MainTimeline/onMapRendered()
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at com.smartfoxserver.openspace::OpenSpace/forwardOpenSpaceEvent()
	at com.smartfoxserver.openspace::OpenSpace/onMapRendered()
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at com.smartfoxserver.openspace.mvc::IsoEngineModel/onMapBuilt()
	at com.smartfoxserver.openspace.map::MapManager/onMapGenerationCompleted()
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at com.smartfoxserver.openspace.utils.executor::MultiFrameExecutor/runStep()
	at flash.utils::Timer/_timerDispatch()
	at flash.utils::Timer/tick()

Posted: 10 Sep 2009, 13:24
by Bax
Do you have a "haha" avatar type defined in your OpenSpace configuration file?

Posted: 19 Sep 2009, 08:43
by Bax
Also check this post.