Good find. I will take a look. Sent from my LG G3, an AT&T 4G LTE smartphone
------ Original message------ From: Peter Ent Date: Fri, Aug 12, 2016 12:36 PM To: dev@flex.apache.org; Subject:Re: [FlexJS] refactor_sprite branch I finally tracked this down. The reason, it looks like to me, is something the cross-compiler is doing. In Core/…/UIBase.as are lines like this: COMPILE::JS { this.positioner.style.height = value + 'px'; } which are being cross-compiled to: this.positioner.style.height = value + Number('px'); Number('px') isn't correct so all of the style widths and heights are not being set. —peter On 8/11/16, 5:21 PM, "Peter Ent" <p...@adobe.com> wrote: >I ran a couple just now. > >ChartExample - >SWF: OK >JS: No errors but everything is drawn up in the corner on top of each >other. > >CreateJSExample - >SWF: same problem as before >JS: Actually works! > >DataBindingExample - >SWF: OK >JS: No errors, but everything is on top of each other. It runs, but looks >terrible. > >—peter > >On 8/11/16, 4:27 PM, "Alex Harui" <aha...@adobe.com> wrote: > >>Looks like nobody found time to merge the Language.string from develop >>into the refactor-sprite branch. >> >>I just did that but didn't test it, but please try the JS versions again. >> >>-Alex >> >>On 8/11/16, 11:28 AM, "Peter Ent" <p...@adobe.com> wrote: >> >>>Here's a breakdown of all of the examples except a couple which require >>>AIR and/or Cordova. Bottom line is that none of the JS versions work, >>>all >>>with the same error. The SWF versions have mixed results, but most have >>>errors. >>> >>>ChartExample - >>>SWF: OK >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>CreateJSExample - >>>SWF: TypeError: Error #1007: Instantiation attempted on a >>>non-constructor. >>> at org.apache.flex.core::UIHTMLElementWrapper/get >>>model()[/Users/pent/dev/flex-asjs/frameworks/projects/Core/src/main/flex >>>/ >>>o >>>r >>>g/apache/flex/core/UIHTMLElementWrapper.as:117] >>> at >>>org.apache.flex.core::Application/initHandler()[/Users/pent/dev/flex-asj >>>s >>>/ >>>f >>>rameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.a >>>s >>>: >>>0 >>>] >>> at >>>org.apache.flex.core::Application/setRoot()[/Users/pent/dev/flex-asjs/fr >>>a >>>m >>>e >>>works/projects/Core/src/main/flex/org/apache/flex/core/Application.as:14 >>>6 >>>] >>> at >>>org.apache.flex.core::ApplicationFactory/deferredFrameHandler()[/Users/p >>>e >>>n >>>t >>>/dev/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/co >>>r >>>e >>>/ >>>ApplicationFactory.as:78] >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>DataBindingExample_as - >>>SWF: TypeError: Error #2023: Class DataBindingExample$ must inherit from >>>Sprite to link to the root. >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>DataBindingExample_flat - >>>SWF: blank screen, no error. >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>DataGridExample - >>>SWF: OK >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>FlexJSStore - >>>SWF: TypeError: Error #1007: Instantiation attempted on a >>>non-constructor. >>> at org.apache.flex.core::UIHTMLElementWrapper/get >>>model()[/Users/pent/dev/flex-asjs/frameworks/projects/Core/src/main/flex >>>/ >>>o >>>r >>>g/apache/flex/core/UIHTMLElementWrapper.as:117] >>> at >>>org.apache.flex.core::Application/initHandler()[/Users/pent/dev/flex-asj >>>s >>>/ >>>f >>>rameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.a >>>s >>>: >>>0 >>>] >>> at >>>org.apache.flex.core::Application/setRoot()[/Users/pent/dev/flex-asjs/fr >>>a >>>m >>>e >>>works/projects/Core/src/main/flex/org/apache/flex/core/Application.as:14 >>>6 >>>] >>> at >>>org.apache.flex.core::ApplicationFactory/deferredFrameHandler()[/Users/p >>>e >>>n >>>t >>>/dev/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/co >>>r >>>e >>>/ >>>ApplicationFactory.as:78] >>>JS: Several "Unexpected CSS token." messages; TypeError: >>>org.apache.flex.utils.Language.string is not a function. >>> >>> >>>FlexJSStore_jquery - >>>SWF: TypeError: Error #1007: Instantiation attempted on a >>>non-constructor. >>> at org.apache.flex.core::UIHTMLElementWrapper/get >>>model()[/Users/pent/dev/flex-asjs/frameworks/projects/Core/src/main/flex >>>/ >>>o >>>r >>>g/apache/flex/core/UIHTMLElementWrapper.as:117] >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>FlexWebsiteStatsViewer - >>>SWF: OK >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>HelloWorld - >>>SWF: OK >>>JSL: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>MapSearch - >>>SWF: N/A >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>>MobileMap - >>>SWF: VerifyError: Error #1014: Class flash.html::HTMLLoader could not be >>>found. >>> >>> at flash.display::MovieClip/nextFrame() >>> at >>>org.apache.flex.core::ApplicationFactory/initHandler()[/Users/pent/dev/f >>>l >>>e >>>x >>>-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Applic >>>a >>>t >>>i >>>onFactory.as:66] >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>MobileTrader - >>>SWF: OK >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>StorageExample - >>>SWF: N/A >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>StyleExample - >>>SWF: OK >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>TodoListSampleApp - >>>SWF: Has odd behavior when adding items to the list (large blank space >>>at >>>top). >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>>TreeExample - >>>SWF: Had odd behavior when adding items to the list (large blank space >>>at >>>top). >>>JS: TypeError: org.apache.flex.utils.Language.string is not a function. >>> >>> >>> >>> >>>On 8/11/16, 11:39 AM, "Peter Ent" <p...@adobe.com> wrote: >>> >>>>Thanks. I now have mobile trader working. That example requires >>>>FALCON_HOME to be set to the compiler directory but I didn't need it >>>>for >>>>DataBindingExample. I'll see what others need it. Seems best to avoid >>>>env >>>>vars if possible. >>>>‹peter >>>> >>>>On 8/11/16, 11:14 AM, "Alex Harui" <aha...@adobe.com> wrote: >>>> >>>>> >>>>> >>>>>On 8/11/16, 7:24 AM, "Peter Ent" <p...@adobe.com> wrote: >>>>> >>>>>>I have this: >>>>>> >>>>>>[echo] >>>>>>FALCON_HOME=/Users/pent/dev/flex-falcon/compiler/generated/dist/sdk >>>>>> [echo] FALCONJX_HOME=/Users/pent/dev/flex-falcon/compiler-jx >>>>>> >>>>>> >>>>>>The build fails if I set FALCON_HOME to the flex-falcon directory. >>>>> >>>>>That looks like a leftover from before the maven refactor. Remove the >>>>>generated folder. >>>>> >>>>>In theory, you shouldn't even need environment variables anymore. The >>>>>scripts should pick good defaults if you have the usual sibling repos >>>>>in >>>>>the expected places. If you need to set an environment variable, the >>>>>READme says to choose flex-falcon/compiler >>>>> >>>>>-Alex >>>>> >>>> >>> >> >