actionscript 3 - as3 TypeError: Error #1006: value is not a function, on addItem -



actionscript 3 - as3 TypeError: Error #1006: value is not a function, on addItem -

i have next code

_data.sort = null; agentrow=new object(); agentrow.agentid=agentid; _data.additem(agentrow);

this results in next error:

typeerror: error #1006: value not function. @ mx.collections::listcollectionview/getfiltereditemindex() @ mx.collections::listcollectionview/additemstoview() @ mx.collections::listcollectionview/listchangehandler() @ flash.events::eventdispatcher/dispatcheventfunction() @ flash.events::eventdispatcher/dispatchevent() @ mx.collections::arraylist/internaldispatchevent() @ mx.collections::arraylist/additemat() @ mx.collections::listcollectionview/additemat() @ mx.collections::listcollectionview/additem() @ com.informiam.frontlineadvisor.dashboard.model::teammetricaggregator/merge() @ com.informiam.frontlineadvisor.dashboard.controller::advisorcontroller/mergeteamviewdata() @ com.informiam.frontlineadvisor.dashboard.view.components::teamview/mergemetricsresult() @ flash.events::eventdispatcher/dispatcheventfunction() @ flash.events::eventdispatcher/dispatchevent() @ mx.rpc::abstractoperation/http://www.adobe.com/2006/flex/mx/internal::dispatchrpcevent() @ mx.rpc::abstractinvoker/http://www.adobe.com/2006/flex/mx/internal::resulthandler() @ mx.rpc::responder/result() @ mx.rpc::asyncrequest/acknowledge() @ netconnectionmessageresponder/resulthandler() @ mx.messaging::messageresponder/result()

_data arraycollection

if remove line _data.sort = null; error gone, need line.

i have looked @ as3: error #1006: value not function

it seem logical issue null not beingness acceptable value sort property. while don't have experience of flex components (including one), imaging doing 1 of next rectify issue:

a. don't assign value sort property (i assume equivalent of no sorting)

or

b. assign new sort() instead of null _data.sort property.

actionscript-3 flex

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -