Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93307186A2 for ; Sat, 20 Jun 2015 20:37:53 +0000 (UTC) Received: (qmail 88594 invoked by uid 500); 20 Jun 2015 20:37:51 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 88564 invoked by uid 500); 20 Jun 2015 20:37:51 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 88553 invoked by uid 99); 20 Jun 2015 20:37:51 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jun 2015 20:37:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1691BC019C for ; Sat, 20 Jun 2015 20:37:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.487 X-Spam-Level: *** X-Spam-Status: No, score=3.487 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id eq9DO5UPQxPS for ; Sat, 20 Jun 2015 20:37:41 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id BE1E343D92 for ; Sat, 20 Jun 2015 20:37:40 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 61E18216E40B for ; Sat, 20 Jun 2015 13:37:09 -0700 (PDT) Date: Sat, 20 Jun 2015 13:16:06 -0700 (PDT) From: olegkon To: users@flex.apache.org Message-ID: In-Reply-To: <1434739397200-10629.post@n4.nabble.com> References: <1434383311530-10585.post@n4.nabble.com> <1434403088133-10591.post@n4.nabble.com> <1434462732747-10597.post@n4.nabble.com> <1434478975679-10599.post@n4.nabble.com> <1434739397200-10629.post@n4.nabble.com> Subject: Re: Adding JS graph to Flex project MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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+s2333346n10629h18@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: > 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 > > . > 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.