i have a problem with a component UserList. I'm trying to create new instance:
Code: Select all
var sfsUserList : UserList = new UserList();
but I get an error:
Code: Select all
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.controls::ColorPicker/removeStageListener()
at fl.controls::ColorPicker/close()
at fl.controls::ColorPicker/set enabled()
at it.gotoandplay.smartfoxbits.bits::ChatBox/enableInterface()
at it.gotoandplay.smartfoxbits.bits::ChatBox/set privateChatMode()
at it.gotoandplay.smartfoxbits.bits::UserList/configUI()
at fl.core::UIComponent()
at it.gotoandplay.smartfoxbits.bits::UserList()
at com.myproject.model::SmartFoxConnector/onJoinRoom()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at it.gotoandplay.smartfoxserver.handlers::SysHandler/handleJoinOk()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at it.gotoandplay.smartfoxserver.handlers::SysHandler/handleMessage()
at it.gotoandplay.smartfoxserver::SmartFoxClient/xmlReceived()
at it.gotoandplay.smartfoxserver::SmartFoxClient/handleMessage()
at it.gotoandplay.smartfoxserver::SmartFoxClient/handleSocketData()
The same way i create instance of RoomList component, but here this problem does not occur. I have components in the library of course.
Anyone can help?
Ps.
- SmartFoxServer 1.6.6
- SmartFoxBits 1.1.0
- Flash CS4
--
Greetz