I had the following working OK in FLEX 1.5
<mx:Script>
<![CDATA[
var gridResult:Object
function getPlayersResultHandler(result):Void {
gridResult=result;
// other stuff
}
]]>
</mx:Script>
<mx:DataGrid dataProvider="{gridResult}">
However I am finding it impossible to duplicate in FLEX2/AS3
I have tried various alternatives e.g
[BINDABLE]
public var myTest:Object - which gives me a "no type declaration" error
Placing the variable within the resulthandler gives an "access of
undefined property" error (predictably I suppose) in the <mx:DataGrid>
The data is coming across OK because if I alternatively do
<mx:ArrayCollection id="gridResult"
source="{mx.utils.ArrayUtil.toArray(ContactService.getPlayers.result)}"
/>
I can populate fine
And also putting breakpoints in the resulthandler I get debug results
e.g
result=[](0x6c5c746)
[0] Object
FULLNAME="Joe Blow"
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/