You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by wkoch <wa...@boeing.com> on 2020/09/29 18:46:05 UTC

Moonshine Debug build giving different results from Release Build

I have this code which should throw up 3 Alerts.  The Debug one does so. 
The Release version only puts up the first 2.  IE Inspector show an error on
line 23 (3rd alert) of 
/Unable to get property '1' of undefined or null reference/

FYI -- I'm using 0.9.7 with Moonshine 3.0.0 build 234.

<?xml version="1.0" encoding="utf-8"?>
<j:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:j="library://ns.apache.org/royale/jewel"
			   xmlns:js="library://ns.apache.org/royale/basic" 
			   xmlns:html="library://ns.apache.org/royale/html"
			   xmlns:local="*">
	<fx:Style source="resources/app-styles.css"/>
    <fx:Script>
    
    </fx:Script>
	<j:valuesImpl>
		<js:SimpleCSSValuesImpl />
	</j:valuesImpl>
    <j:initialView>
        <j:View>
            <j:beads>
                <j:VerticalCenteredLayout/>
            </j:beads>
                    <j:Button text="Get Data" emphasis="primary"
click="getCfcStoredProcContent(event)" />
        </j:View>
    </j:initialView>
</j:Application>





--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: Moonshine Debug build giving different results from Release Build

Posted by wkoch <wa...@boeing.com>.
Problem was resolved.  I hadn't added the
-js-dynamic-access-unknown-members=true compiler option



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: Moonshine Debug build giving different results from Release Build

Posted by wkoch <wa...@boeing.com>.
Sorry for some reason the actual script got pulled out.  Sigh.  I just didn't
pay attention.  Sorry

<fx:Script>
	import org.apache.royale.events.Event;
	import org.apache.royale.events.MouseEvent;
	import org.apache.royale.jewel.Alert;
	import org.apache.royale.net.HTTPConstants;
	import org.apache.royale.net.HTTPService;
	import org.apache.royale.net.URLVariables;
	
	public var daveservice:HTTPService = new HTTPService();
	
	private function resultCallback(event:Event):void{
		Alert.show("STATUS: " + daveservice.json.STATUS, "json data retrieved");
		Alert.show("string format: " + daveservice.data, "what");
		Alert.show("MDL_CONCAT: "+daveservice.json.PROGRAMS[1].MDL_CONCAT, "json
data retrieved");
	}

	public function getCfcStoredProcContent(event:Event):void{
		daveservice.url =
"/MIS_Lists.cfc?method=websitelistspkg_TailnumberList_json";
		daveservice.method = HTTPConstants.GET;
		daveservice.addEventListener("complete", resultCallback);
		daveservice.send();	
	}
</fx:Script>




--
Sent from: http://apache-royale-users.20374.n8.nabble.com/