lastResult vs event:EventResult
dear forum,
when using results returned web service, , binding results control (e.g. datagrid), examples tell use object "myws.lastresult", other examples pass "event" function, , refer "event:eventresult" in function.
can explain when use 1 approach, , when use other?
thanks,
steve
when using results returned web service, , binding results control (e.g. datagrid), examples tell use object "myws.lastresult", other examples pass "event" function, , refer "event:eventresult" in function.
can explain when use 1 approach, , when use other?
thanks,
steve
both myws.lastresult , event:resultevent return same data, using event function method makes debugging easier , makes code more flexible. when first began using flex, used myws.lastresult method, debugging became difficult aps grew in size. use event function approach. except not having write function process event, quite trivial, can't think of reason use myws.lastresult approach.
vygo
vygo
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment