That fixed it. Now on to try and get a List to work with the arraylist.
From: Carlos Rovira [mailto:carlosrov...@apache.org]
Sent: Wednesday, September 30, 2020 10:26 AM
To: users@royale.apache.org
Subject: Re: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?
This message was sent
Also more info about it in royale docs here:
https://apache.github.io/royale-docs/create-an-application/optimizations/compiler-configuration-settings.html#dynamic-access-unknown-members
El mié., 30 sept. 2020 a las 17:23, Carlos Rovira ()
escribió:
> Hi Warren,
>
> you probably are missing the
Hi Warren,
you probably are missing the following compiler option:
-js-dynamic-access-unknown-members=true;
to access JSON subobject graphs in release mode
Let us know if that solves the problem
Thanks
El mié., 30 sept. 2020 a las 13:35, wkoch ()
escribió:
> I used both the 0.9.7 and the
I used both the 0.9.7 and the 0.9.8 build ( I pulled that down yesterday ). I
am attaching a file of the source code and console output from the debug and
release builds using 0.9.8.
It fails in both builds. In the IE inspector I get:
Unable to get property 'Ng' of undefined or null reference
Warren,
Just to make clear here - if something doesn't work in release mode it is
possible that is issue in Royale compiler. In order to chase it we need
extracted working example/code and maybe zipped build - raise issue on
GitHub.
This is definitely not an issue in Moonshine itself.
Please
I changed my code like this based on what you folks indicated.
public var myObj:Object;
public var myArrayList:ArrayList;
private function appInit():void{
registerClassAlias('org.apache.royale.collections.ArrayList',
ArrayList);
}
private function resultCallback(event:Event):void{
Normally for ArrayList, all you have to do is
var myArrayList:ArrayList = new ArrayList(mySourceArray);
if daveservice.json.PROGRAMS is an Array, then presumably you could use
that.
But with untyped objects, you may have issues in release build with
renaming if you also try to access the fields
So I guess I'd better pay more attention to my post. For some reason the
SCRIPT got pulled when I posted it. No wonder I was getting questions.
Apologies.
I'm trying to get daveservice.json.PROGRAMS into an arraylist.
import org.apache.royale.events.Event;
import
vira [mailto:carlosrov...@apache.org]
> *Sent:* Tuesday, September 29, 2020 1:42 PM
> *To:* users@royale.apache.org
> *Subject:* [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?
>
>
>
> This message was sent from outside of Boeing. Please do not click links or
&g
in for production applications.
From: Carlos Rovira [mailto:carlosrov...@apache.org]
Sent: Tuesday, September 29, 2020 1:42 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: How do I convert complex JSON to an ArrayList?
This message was sent from outside of Boeing. Please do not click
10 matches
Mail list logo