Best way to do that is to use fabridge. This is how we were able to expose the flash/flex api to JavaScript/GWT On 15 Jun 2015 18:09, "olegkon" <oleg...@gmail.com> wrote:
> Let me give you a simplified version of what I tried. > Suppose I have an array of Employee objects. > > class Employee { > firstName:String; > lastName:String; > age:Number; > } > > var employees:Array = [ > { firstName:"Joe", lastName:"Doe", age:25}, > { firstName:"Ann", lastName:"Cavanah", age:28} > ]; > > var empStr:String = JSON.stringify(employees); > ExtrnalInterface.call("passDataToJS", empStr); > > I am new to JSON, so not sure I am converting it right. > > > > -- > View this message in context: > http://apache-flex-users.2333346.n4.nabble.com/Fwd-Adding-JS-graph-to-Flex-project-tp10537p10585.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. >