Need Help

Post here your questions about the OpenSpace 1.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
superDin
Posts: 2
Joined: 10 Sep 2009, 12:06

Need Help

Post 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()
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Do you have a "haha" avatar type defined in your OpenSpace configuration file?
Paolo Bax
The SmartFoxServer Team
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Also check this post.
Paolo Bax
The SmartFoxServer Team
Post Reply