How are you setting these options? Maven, Ant, command-line, IDE? -Alex
On 2/14/17, 1:44 PM, "Justin Mclean" <jus...@classsoftware.com> wrote: >Hi, > >Can anyone tell me why this code: > ><?xml version="1.0" encoding="utf-8"?> ><js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" > xmlns:js="library://ns.apache.org/flexjs/basic" > applicationComplete="init()"> > > <fx:Script><![CDATA[ > > COMPILE::SWF > public function init():void { > hello.text = "Hello SWF"; > } > > COMPILE::JS > public function init():void { > hello.text = "Hello JS"; > } > > ]]></fx:Script> > > <js:valuesImpl> > <js:SimpleCSSValuesImpl/> > </js:valuesImpl> > > <js:initialView> > <js:View> > <js:Label id="hello" text="Hello" /> > </js:View> > </js:initialView> > ></js:Application> > >Produces this code: >/** > * @export > */ >Compile.prototype.init = function() { > this.hello.text = "Hello SWF"; >}; > >And sets the text to be "Hello SWF” when the JS version is run? > >Thanks, >Justin >