You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Alex Harui <ah...@adobe.com> on 2013/01/11 22:48:00 UTC

[ASJS] Update

Hi,

I’ve checked in enough code to be able to compile an MXML-based project into a working HTML/JS project.  This means my prototype is now a true prototype instead of just demo-ware.

More information on the wiki: https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Status

I’m going to divert my attention to help Peter finish off the mustella tests for mobile as we are not currently able to use them to verify our releases.  Then I’ll be back on this ASJS stuff.

--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

Re: [ASJS] Update

Posted by Nicholas Kwiatkowski <ni...@spoon.as>.
Wow.  Just wow. :)

-Nick

On Fri, Jan 11, 2013 at 4:54 PM, imagenesis@gmail.com
<im...@gmail.com>wrote:

> A possibly monumental task in the history of computing
>
>
> On Fri, Jan 11, 2013 at 4:48 PM, Alex Harui <ah...@adobe.com> wrote:
>
> > Hi,
> >
> > I’ve checked in enough code to be able to compile an MXML-based project
> > into a working HTML/JS project.  This means my prototype is now a true
> > prototype instead of just demo-ware.
> >
> > More information on the wiki:
> > https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Status
> >
> > I’m going to divert my attention to help Peter finish off the mustella
> > tests for mobile as we are not currently able to use them to verify our
> > releases.  Then I’ll be back on this ASJS stuff.
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe Systems, Inc.
> > http://blogs.adobe.com/aharui
> >
>

Re: [ASJS] Update

Posted by "imagenesis@gmail.com" <im...@gmail.com>.
A possibly monumental task in the history of computing


On Fri, Jan 11, 2013 at 4:48 PM, Alex Harui <ah...@adobe.com> wrote:

> Hi,
>
> I’ve checked in enough code to be able to compile an MXML-based project
> into a working HTML/JS project.  This means my prototype is now a true
> prototype instead of just demo-ware.
>
> More information on the wiki:
> https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Status
>
> I’m going to divert my attention to help Peter finish off the mustella
> tests for mobile as we are not currently able to use them to verify our
> releases.  Then I’ll be back on this ASJS stuff.
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>

Re: [ASJS] Update

Posted by Alex Harui <ah...@adobe.com>.


On 1/11/13 2:39 PM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:

> Interesting, I will have to look at your MXML stuff and port it over
> to FalconJx, I have a feeling it won't be that hard. :)
Most of the MXML handling is in JSMXMLClassDirectiveProcessor.java
> 
> Within the next 2 weeks we (Erik and I) will have FalconJx producing
> your prototype code. I think you would be surprised how igh octane
> FalconJx is right now and what it can actually do.
Looking forward to it.

-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [ASJS] Update

Posted by Michael Schmalle <ap...@teotigraphix.com>.
Interesting, I will have to look at your MXML stuff and port it over  
to FalconJx, I have a feeling it won't be that hard. :)

Within the next 2 weeks we (Erik and I) will have FalconJx producing  
your prototype code. I think you would be surprised how igh octane  
FalconJx is right now and what it can actually do.

Mike

Quoting Alex Harui <ah...@adobe.com>:

> Hi,
>
> I?ve checked in enough code to be able to compile an MXML-based  
> project into a working HTML/JS project.  This means my prototype is  
> now a true prototype instead of just demo-ware.
>
> More information on the wiki:  
> https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Status
>
> I?m going to divert my attention to help Peter finish off the  
> mustella tests for mobile as we are not currently able to use them  
> to verify our releases.  Then I?ll be back on this ASJS stuff.
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>

-- 
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com


Re: [ASJS] Update

Posted by Om <bi...@gmail.com>.
On Sun, Jan 27, 2013 at 8:17 AM, Alex Harui <ah...@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" <bi...@gmail.com> wrote:
>
> > On Sat, Jan 26, 2013 at 11:51 PM, Alex Harui <ah...@adobe.com> wrote:
> >
> >>
> >>
> >>
> >> On 1/26/13 11:22 PM, "Om" <bi...@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
>
>

Re: [ASJS] Update

Posted by Alex Harui <ah...@adobe.com>.
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

On 1/27/13 12:11 AM, "Om" <bi...@gmail.com> wrote:

> On Sat, Jan 26, 2013 at 11:51 PM, Alex Harui <ah...@adobe.com> wrote:
> 
>> 
>> 
>> 
>> On 1/26/13 11:22 PM, "Om" <bi...@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


Re: [ASJS] Update

Posted by Om <bi...@gmail.com>.
On Sat, Jan 26, 2013 at 11:51 PM, Alex Harui <ah...@adobe.com> wrote:

>
>
>
> On 1/26/13 11:22 PM, "Om" <bi...@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()

Re: [ASJS] Update

Posted by Alex Harui <ah...@adobe.com>.


On 1/26/13 11:22 PM, "Om" <bi...@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.

-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [ASJS] Update

Posted by Om <bi...@gmail.com>.
On Sat, Jan 26, 2013 at 11:10 PM, Alex Harui <ah...@adobe.com> wrote:

> Try an absolute path to the FlexJSTest.mxml file.  There might be a bug
> when
> trying to find the parent folder to output all of the other .js files.
>
>
This is what I get now:

======================================================

C:\p\flex_os\workspace\flexroot\asjs\branches\develop\examples\FlexJSTest_again>
C:\p\flex_os\workspace\flexroot\falcon\trunk\compiler.js\bin\mxmlc
-compiler.mxm
l.children-as-data
-library-path+=C:\p\flex_os\workspace\flexroot\asjs\branches\
develop\frameworks\as\libs
C:\p\flex_os\workspace\flexroot\asjs\branches\develop
\examples\FlexJSTest_again\FlexJSTest.mxml
Using Flex SDK: C:\p\flex_os\workspace\flexroot\sdk\branches\develop
Loading configuration:
C:\p\flex_os\workspace\flexroot\sdk\branches\develop\fram
eworks\flex-config.xml
C:\p\flex_os\workspace\flexroot\asjs\branches\develop\examples\FlexJSTest_again\
MyInitialView.js
C:\p\flex_os\workspace\flexroot\asjs\branches\develop\examples\FlexJSTest_again\
MyModel.js
C:\p\flex_os\workspace\flexroot\asjs\branches\develop\examples\FlexJSTest_again\
MySimpleValuesImpl.js
C:\p\flex_os\workspace\flexroot\asjs\branches\develop\examples\FlexJSTest_again\
MyController.js
!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



>
> On 1/26/13 10:53 PM, "Om" <bi...@gmail.com> wrote:
>
> > On Fri, Jan 11, 2013 at 1:48 PM, Alex Harui <ah...@adobe.com> wrote:
> >
> >> Hi,
> >>
> >> I¹ve checked in enough code to be able to compile an MXML-based project
> >> into a working HTML/JS project.  This means my prototype is now a true
> >> prototype instead of just demo-ware.
> >>
> >> More information on the wiki:
> >> https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Status
> >>
> >> I¹m going to divert my attention to help Peter finish off the mustella
> >> tests for mobile as we are not currently able to use them to verify our
> >> releases.  Then I¹ll be back on this ASJS stuff.
> >>
> >> --
> >> Alex Harui
> >> Flex SDK Team
> >> Adobe Systems, Inc.
> >> http://blogs.adobe.com/aharui
> >>
> >
> > So much awesomeness packed in one short email :-)  A brand new Flex SDK
> > compiled with Falcon and Falcon.js!
> >
> > I just got a chance to run the prototype for myself.  I was able to
> compile
> > the .swf file using Falcon fine.  But the .js part using Falcon.js is
> > failing.  Here are are the errors:
> >
> > ===========================================================
> >
> >
> C:\p\flex_os\workspace\flexroot\asjs\branches\develop\examples\FlexJSTest_agai
> > n>
> > C:\p\flex_os\workspace\flexroot\falcon\trunk\compiler.js\bin\mxmlc
> > -compiler.mxm
> > l.children-as-data
> > -library-path+=C:\p\flex_os\workspace\flexroot\asjs\branches\
> > develop\frameworks\as\libs FlexJSTest.mxml
> >
> > Using Flex SDK: C:\p\flex_os\workspace\flexroot\sdk\branches\develop
> > Loading configuration:
> > C:\p\flex_os\workspace\flexroot\sdk\branches\develop\fram
> > eworks\flex-config.xml
> > !ClosureProblem!
> >
> > !ClosureProblem!
> >
> > !ClosureProblem!
> >
> > !ClosureProblem!
> >
> > java.lang.NullPointerException
> >         at java.io.File.<init>(File.java:222)
> >         at
> > org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:489)
> >         at
> > org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:221
> > )
> >         at
> > org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:181)
> >
> >         at
> org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:157)
> >
> >
> > !ClosureProblem!
> > ===========================================================
> >
> > Am I missing something?
> >
> > Thanks,
> > Om
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>

Re: [ASJS] Update

Posted by Alex Harui <ah...@adobe.com>.
Try an absolute path to the FlexJSTest.mxml file.  There might be a bug when
trying to find the parent folder to output all of the other .js files.


On 1/26/13 10:53 PM, "Om" <bi...@gmail.com> wrote:

> On Fri, Jan 11, 2013 at 1:48 PM, Alex Harui <ah...@adobe.com> wrote:
> 
>> Hi,
>> 
>> I¹ve checked in enough code to be able to compile an MXML-based project
>> into a working HTML/JS project.  This means my prototype is now a true
>> prototype instead of just demo-ware.
>> 
>> More information on the wiki:
>> https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Status
>> 
>> I¹m going to divert my attention to help Peter finish off the mustella
>> tests for mobile as we are not currently able to use them to verify our
>> releases.  Then I¹ll be back on this ASJS stuff.
>> 
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
> 
> So much awesomeness packed in one short email :-)  A brand new Flex SDK
> compiled with Falcon and Falcon.js!
> 
> I just got a chance to run the prototype for myself.  I was able to compile
> the .swf file using Falcon fine.  But the .js part using Falcon.js is
> failing.  Here are are the errors:
> 
> ===========================================================
> 
> C:\p\flex_os\workspace\flexroot\asjs\branches\develop\examples\FlexJSTest_agai
> n>
> C:\p\flex_os\workspace\flexroot\falcon\trunk\compiler.js\bin\mxmlc
> -compiler.mxm
> l.children-as-data
> -library-path+=C:\p\flex_os\workspace\flexroot\asjs\branches\
> develop\frameworks\as\libs FlexJSTest.mxml
> 
> Using Flex SDK: C:\p\flex_os\workspace\flexroot\sdk\branches\develop
> Loading configuration:
> C:\p\flex_os\workspace\flexroot\sdk\branches\develop\fram
> eworks\flex-config.xml
> !ClosureProblem!
> 
> !ClosureProblem!
> 
> !ClosureProblem!
> 
> !ClosureProblem!
> 
> java.lang.NullPointerException
>         at java.io.File.<init>(File.java:222)
>         at
> org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:489)
>         at
> org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:221
> )
>         at
> org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:181)
> 
>         at org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:157)
> 
> 
> !ClosureProblem!
> ===========================================================
> 
> Am I missing something?
> 
> Thanks,
> Om

-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [ASJS] Update

Posted by Om <bi...@gmail.com>.
On Fri, Jan 11, 2013 at 1:48 PM, Alex Harui <ah...@adobe.com> wrote:

> Hi,
>
> I’ve checked in enough code to be able to compile an MXML-based project
> into a working HTML/JS project.  This means my prototype is now a true
> prototype instead of just demo-ware.
>
> More information on the wiki:
> https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Status
>
> I’m going to divert my attention to help Peter finish off the mustella
> tests for mobile as we are not currently able to use them to verify our
> releases.  Then I’ll be back on this ASJS stuff.
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>

So much awesomeness packed in one short email :-)  A brand new Flex SDK
compiled with Falcon and Falcon.js!

I just got a chance to run the prototype for myself.  I was able to compile
the .swf file using Falcon fine.  But the .js part using Falcon.js is
failing.  Here are are the errors:

===========================================================

C:\p\flex_os\workspace\flexroot\asjs\branches\develop\examples\FlexJSTest_again>
C:\p\flex_os\workspace\flexroot\falcon\trunk\compiler.js\bin\mxmlc
-compiler.mxm
l.children-as-data
-library-path+=C:\p\flex_os\workspace\flexroot\asjs\branches\
develop\frameworks\as\libs FlexJSTest.mxml

Using Flex SDK: C:\p\flex_os\workspace\flexroot\sdk\branches\develop
Loading configuration:
C:\p\flex_os\workspace\flexroot\sdk\branches\develop\fram
eworks\flex-config.xml
!ClosureProblem!

!ClosureProblem!

!ClosureProblem!

!ClosureProblem!

java.lang.NullPointerException
        at java.io.File.<init>(File.java:222)
        at
org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:489)
        at
org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:221
)
        at
org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:181)

        at org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:157)


!ClosureProblem!
===========================================================

Am I missing something?

Thanks,
Om