On Sun, Jan 27, 2013 at 8:17 AM, Alex Harui <aha...@adobe.com> wrote:
> Did you end up with a set of scripts as described in [1]? > > https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Status > > You will need to have the frameworks/js folder available to the html file, > as well as the goog and third_party folders from the google libraries. The > compiler does not generate these .js files, these are the parallel > framework > files we have to code along with the as files. > > -Alex > > It turns out that the html snippet you had in the wiki[1] is outdated. The paths to the js files should be like this: <script type="text/javascript" src="frameworks/js/*FlexJS* /src/flash/events/Event.js"></script> instead of <script type="text/javascript" src="frameworks/js/src/flash/events/Event.js"></script> Once I made this change the app works fine in HTML/JS as well. I have also updated the wiki page to reflect this change. Thanks, Om [1] https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Status On 1/27/13 12:11 AM, "Om" <bigosma...@gmail.com> wrote: > > > On Sat, Jan 26, 2013 at 11:51 PM, Alex Harui <aha...@adobe.com> wrote: > > > >> > >> > >> > >> On 1/26/13 11:22 PM, "Om" <bigosma...@gmail.com> wrote: > >> > >>> !ClosureProblem! > >>> > >>> !ClosureProblem! > >>> > >>> !ClosureProblem! > >>> > >>> !ClosureProblem! > >>> > >>> !ClosureProblem! > >>> > >>> ====================================================== > >>> > >>> I do see the following .js files in the directory though: > >>> > >>> MyController.js > >>> MyInitialView.js > >>> MyModel.js > >>> MySimpleValuesImpl.js > >>> > >>> Thanks, > >>> Om > >> OK, hopefully you can make progress. > >> > >> > > I managed to craft the html with the correct paths to the js files. On > > running the html file, firebug shows these errors: > > Mostly because of the missing .js files. I am guessing the > > !ClosureProblem! prevented these .js files from being created. > > > > goog.require could not find: org.apache.flex.binding.SimpleBinding > > require()base.js (line 349) > > name = > > > > "org.apache.flex.binding.SimpleBinding" > > > > MyInitialView.js()MyInitialView.js (line 3) > > > > goog.global.console['error'](errorMessage); > > > > base.js (line 349) > > > > goog.require could not find: flash.events.Event > > require()base.js (line 349) > > name = > > > > "flash.events.Event" > > > > MyController.js()MyController.js (line 3) > > > > goog.global.console['error'](errorMessage); > > > > base.js (line 349) > > > > goog.require could not find: org.apache.flex.core.SimpleValuesImpl > > require()base.js (line 349) > > name = > > > > "org.apache.flex.core.SimpleValuesImpl" > > > > MySimpleValuesImpl.js()MySimp...Impl.js (line 3) > > > > goog.global.console['error'](errorMessage); > > > > base.js (line 349) > > > > goog.require could not find: flash.events.Event > > require()base.js (line 349) > > name = > > > > "flash.events.Event" > > > > MyModel.js()MyModel.js (line 3) > > > > goog.global.console['error'](errorMessage); > > > > base.js (line 349) > > > > goog.require could not find: org.apache.flex.core.Application > > require()base.js (line 349) > > name = > > > > "org.apache.flex.core.Application" > > > > FlexJSTest.js()FlexJSTest.js (line 7) > > > > goog.global.console['error'](errorMessage); > > > > base.js (line 349) > > > > Error: goog.require could not find: org.apache.flex.binding.SimpleBinding > > [Break On This Error] > > > > var app = new FlexJSTest(); > > > > FlexJSTest.html (line 28) > > > > Error: goog.require could not find: flash.events.Event > > [Break On This Error] > > > > throw Error(errorMessage); > > > > base.js (line 353) > > > > Error: goog.require could not find: org.apache.flex.core.SimpleValuesImpl > > [Break On This Error] > > > > throw Error(errorMessage); > > > > base.js (line 353) > > > > Error: goog.require could not find: flash.events.Event > > [Break On This Error] > > > > throw Error(errorMessage); > > > > base.js (line 353) > > > > Error: goog.require could not find: org.apache.flex.core.Application > > [Break On This Error] > > > > throw Error(errorMessage); > > > > base.js (line 353) > > > > TypeError: FlexJSTest is not a constructor > > [Break On This Error] > > > > var app = new FlexJSTest(); > > > > FlexJSTest.html (line 28) > > > > TypeError: app is undefined > > [Break On This Error] > > > > app.start() > > -- > Alex Harui > Flex SDK Team > Adobe Systems, Inc. > http://blogs.adobe.com/aharui > >