Update: please disregard #1: - my JS was failing in the middle without errors, so I was getting NULL back - did not reach the end. That is fixed.
On Fri, Jun 19, 2015 at 2:43 PM, olegkon [via Apache Flex Users] < ml-node+s2333346n10629...@n4.nabble.com> wrote: > I got a workaround, so I no longer need to convert in JSON object within > object. > > Still have a few related problems: > 1) So I call > var retObj:Object = ExternalInterface.call("drawGraph", jsonStr, 2); > in JS drawGraph() returns a string: > return "someResult"; > > But for some reason I am getting retObj=null; Any idea why? > I would like to display that drawn graph in iFrame: > <flexiframe:IFrame id="iFrameBySource" > width="100%" height="100%" > source="js/webpage.html"/> > So if not null, I would like to refresh that HTML page to show the graph. > How? > > > 2) As I said, in FB4.5.1 I try to use Flex4.6 for native JSON, > but debugger still can't find any Flex source code. How to make that > work? > > > 3) in JSON conversion I do: var jsonStr:String = JSON.stringify(resArray, > deflate); > in deflate I do: > return( key == "constvalue" || > key == "children" || ... // no children (dependencies). > ) ? undefined : value; > It works on exclusion - these params will be excluded, so I only convert > useful columns to JSON, > but in my case it would be much more efficient to include, not exclude. > Tried to reverse that return to: > return( key == "goodparam1" || > key == "goodparam2" || ... // no children (dependencies). > ) ? value : undefined; but if fails, for some reason getting > first "" or null's. > I do not have any null objects in resultset array. > Any idea how to resolve that? > > Hope I am not overloading that post with 3 problems. > :-) > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://apache-flex-users.2333346.n4.nabble.com/Fwd-Adding-JS-graph-to-Flex-project-tp10537p10629.html > To unsubscribe from Fwd: Adding JS graph to Flex project, click here > <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=10537&code=b2xlZ2tvbkBnbWFpbC5jb218MTA1Mzd8MTE5NTIxMzcyOA==> > . > NAML > <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- Thank you, Oleg. -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Fwd-Adding-JS-graph-to-Flex-project-tp10537p10632.html Sent from the Apache Flex Users mailing list archive at Nabble.com.