> Hmm. Why are you extending from Sprite? You can’t use any low-level > Flash stuff in FlexJS. We should probably add a compiler option to warn > on that. DataBindingTest_as extends from > org.apache.flex.core.Application. It is all about abstractions.
I did that for 2 reasons: 1- Application define document and JS.swc window.document doesn't exist, so the this.document application wrapper is used and I can't do anything I want with this.document with the DOM 2- Application needs an initialView, etc.... I don't want to provide that. I've seen HTMLElementWrapper, maybe it could be extended to create a SimpleJSApplcation ? The only way I made my as / js html table render using JS.swc and Application was to replace in the generated js, this.document with window.document and had still some error reported because of the initial view. Frédéric THOMAS ---------------------------------------- > From: aha...@adobe.com > To: dev@flex.apache.org > Subject: Re: Re : Re: Re : Re: AW: AW: AW: [FlexJS] IntelliJ Integration > Date: Mon, 15 Jun 2015 18:04:06 +0000 > > Hmm. Why are you extending from Sprite? You can’t use any low-level > Flash stuff in FlexJS. We should probably add a compiler option to warn > on that. DataBindingTest_as extends from > org.apache.flex.core.Application. It is all about abstractions. > > -Alex > > On 6/15/15, 10:51 AM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote: > >>>>> Up to you, but I don’t think I’d be able to get FB to do that. IMO, >>>>>there >>>>> are Flex(MXML) projects and AS projects. >>>> >>>>In FB, we can create an AS projects with FlexJS as SDK ? >>> >>> Haven’t tried it, but should work since they should just be third-party >>> libs. You can create an AS-only (no MXML) FlexJS app. See >>> examples/DataBindingTest_as >> >>I didn't try DataBindingTest_as yet but tried this >>https://gist.github.com/doublefx/b380b6deeb5094e31f43 and got compiled to >>this https://gist.github.com/doublefx/af83fae1e1ee54acbc23 >> >>Even removing the weird extra "\" at the end of >>goog.require('org_apache_flex_utils_Language');\ >>Chrome complained because: >> >>Main.base(this, 'constructor'); // Uncaught TypeError: >>Main.base is not a function >>goog.inherits(Main, flash_display_Sprite); // Uncaught ReferenceError: >>flash_display_Sprite is not defined >> >>Any clue ? >> >>Frédéric THOMAS >> >> >>---------------------------------------- >>> From: aha...@adobe.com >>> To: dev@flex.apache.org >>> Subject: Re: Re : Re: Re : Re: AW: AW: AW: [FlexJS] IntelliJ Integration >>> Date: Mon, 15 Jun 2015 17:40:01 +0000 >>> >>> >>> >>> On 6/15/15, 9:45 AM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote: >>> >>>>> Up to you, but I don’t think I’d be able to get FB to do that. IMO, >>>>>there >>>>> are Flex(MXML) projects and AS projects. >>>> >>>>In FB, we can create an AS projects with FlexJS as SDK ? >>> >>> Haven’t tried it, but should work since they should just be third-party >>> libs. You can create an AS-only (no MXML) FlexJS app. See >>> examples/DataBindingTest_as >>> >>> -Alex >>> >>> >> >