[flexcoders] Error #1034: Type Coercion failed: cannot convert JSON Data

2009-03-03 Thread keishalexie
Hi Everyone, I am fairly new to Flex and am doing a project using Flex 3, the as3corelib, and a PHP file that is sending json data. The json data is not being displayed in my data table and what is coming through is valid (I checked in the JSON Validator). I really am not sure where the problem

Re: [flexcoders] Error #1034: Type Coercion failed: cannot convert JSON Data

2009-03-03 Thread Anggie Bratadinata
Have you decoded the JSON data ? Here's a snippet from a project I'm working on: public function resultHandler(e:ResultEvent):void{ var rawString:String = String(e.result); var json:* = JSON.decode(rawString); var players:Array = json as Array; _model.leaders = new ArrayCollection(players); } I