You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Erik de Bruin <er...@ixsoftware.nl> on 2013/03/25 16:45:02 UTC

[FalconJx] progress update

Hi,

Just 'checking in': FalconJx can now compile the FlexJSTest_again
example from the command line, using these arguments:

+env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGlobal/player
+playerglobal.version=11.1
-load-config="/Applications/Adobe Flash Builder
4.7/sdks/4.9.1/frameworks/flex-config.xml"
-library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/libs/FlexJSUI.swc
-js-output-type=FLEXJS
-output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
/Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/FlexJSTest.mxml

Well, not exactly those, please change the paths to fit your local
environment ;-)

Next up:
- support for publishing with the GCC and associated tricks (SourceMap etc.)
- full FlexJS type AS -> JS support (the current implementation is
custom tailored to the FlexJSTest_Again example code)

Have fun!

EdB



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
> What is the difference between goog and FlexJS?  It might be better to make
> FlexJS goog-compliant.

There's not that much difference, like I said, for now it looks like
getter/setter handling is the major difference.

I am planning to make FlexJS fully 'goog' compliant as part of my
contribution; there seems to be some legacy stuff in FlexJS and some
missed opportunities for optimisation.

EdB



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

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


On 3/25/13 11:44 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

>>> I have to set up the JS part of the FlexJS parsing. I've got the MXML
>>> in place, but the JS part will take me a bit of time. Are you up
>>> against a deadline somehow?
>>> 
>> Oh, I thought it was all there.  Is it only MXML->AS?  I am setting up my
>> launch config now.  What is FlexJS specific about the parsing?  Or did you
>> mean emitting?
> 
> Yes, you are correct, I meant emitting. We can subclass the FlexJS
> emitter from the Goog emitter I did for VanillaSDK, which gives us
> about 95% of the desired output. There are some differences in the
> output between 'goog' and FlexJS (mainly in the handling of accessors)
> that I'll have to write before we can move FlexJS to FalconJx. This
> will take me a couple of days to get right.
> 
OK.  I have some other Adobe folks experimenting with FalconJS and FlexJS.
I might make some FalconJS changes to keep them happy.

What is the difference between goog and FlexJS?  It might be better to make
FlexJS goog-compliant.

I'm stopping for tonight so I'll read your response in my morning.

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
>> I have to set up the JS part of the FlexJS parsing. I've got the MXML
>> in place, but the JS part will take me a bit of time. Are you up
>> against a deadline somehow?
>>
> Oh, I thought it was all there.  Is it only MXML->AS?  I am setting up my
> launch config now.  What is FlexJS specific about the parsing?  Or did you
> mean emitting?

Yes, you are correct, I meant emitting. We can subclass the FlexJS
emitter from the Goog emitter I did for VanillaSDK, which gives us
about 95% of the desired output. There are some differences in the
output between 'goog' and FlexJS (mainly in the handling of accessors)
that I'll have to write before we can move FlexJS to FalconJx. This
will take me a couple of days to get right.

EdB



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

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


On 3/25/13 12:55 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

>>> Are you saying that you are planning to switch to FalconJX soon?
>> Soon === Now
> 
> That is... interesting :-) I guess it'll be a late night for me tonight.
> 
> I have to set up the JS part of the FlexJS parsing. I've got the MXML
> in place, but the JS part will take me a bit of time. Are you up
> against a deadline somehow?
> 
Oh, I thought it was all there.  Is it only MXML->AS?  I am setting up my
launch config now.  What is FlexJS specific about the parsing?  Or did you
mean emitting?


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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
>> Are you saying that you are planning to switch to FalconJX soon?
> Soon === Now

That is... interesting :-) I guess it'll be a late night for me tonight.

I have to set up the JS part of the FlexJS parsing. I've got the MXML
in place, but the JS part will take me a bit of time. Are you up
against a deadline somehow?

EdB



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

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


On 3/25/13 12:28 PM, "Om" <bi...@gmail.com> wrote:

> 
> With my approach, to get the rendering fidelity to match that of Flex's
> skins, inline CSS makes it easy (because of the XSLT approach)
> BTW, we still need to deal with the 'cascading' part of CSS, right?
Not quite sure what you mean, but for sure the AS side will eventually need
a "full" CSS implementation.
> One
> big .css file probably will not solve all questions.
By that, I meant gathering up the various CSS from the sources and libraries
and concatenating them into one big file so you don't have to take several
HTTP hits to get lots of small pieces.  But if that's not a good thing,
please explain why.
> 
>>> 
>>> I love how everything seems to be converging and it really feels like
>>> Flex -> HTML5/JS is doable!
>> I finally got eclipse to build FalconJX from the Git sources.  I'll be
>> testing it out today.  FalconJS had a few bugs that needed fixing and I'm
>> hoping that you already fixed them in FalconJX.  If not I'll fix them in
>> FalconJX to help me learn that code.  Hopefully there won't be any more
>> code
>> changes in compiler.js going forward.
>> 
> 
> Are you saying that you are planning to switch to FalconJX soon?
Soon === Now

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


Re: [FalconJx] progress update

Posted by Om <bi...@gmail.com>.
On Mon, Mar 25, 2013 at 12:09 PM, Alex Harui <ah...@adobe.com> wrote:

> My answers in-line
>
>
> On 3/25/13 11:55 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
> > Om,
> >
> > 1) the wiki is mostly current, but as a work in progress: if it
> > doesn't work, ask and we will fix ;-)
> >
> > 2) CSS resulting from...? I'm not familiar with FXG etc., so my
> > questions are bound to be naive as well, as you'll notice. Basically
> > we have access to whatever the compiler (Falcon-main, if you will) has
> > access to, but some thing might be easier than others. Mike S. is our
> > wizard, he'll know what to do if we can't figure it out.
> For FlexJS, I haven't decided on what to do.  Currently, CSS is compiled
> into a datastream much like MXML is, but nothing on the JS side of FlexJS
> has required CSS yet, so essentially the problem is unsolved.  I'm pretty
> sure we'll decide that we want one .css file that gets loaded in by the
> HTML
> wrapper.  The compiler currently has the smarts that determines the right
> subset of the source CSS files (by culling out type-selectors that aren't
> used, for example).  But knowing what your output will look like can
> certainly guide what we end up with.
>


With my approach, to get the rendering fidelity to match that of Flex's
skins, inline CSS makes it easy (because of the XSLT approach)
BTW, we still need to deal with the 'cascading' part of CSS, right?  One
big .css file probably will not solve all questions.


> >
> > 3) Ah, there is the CSS, I guess (fxg -> svg + css). The AS code will
> > be cross-compiled to AS (weird, I know) or any form of JS we chose,
> > most likely 'goog' JS, as it will have to be compatible with FlexJS
> > and the VanillaSDK. Due to the way FalconJx is set up, it will be easy
> > to add FXG specific JS parsing, if needed.
> >
> > 4) Sounds like and excellent starting point... however, you'll
> > probably have to tweak your local SDK 'a bit' to get both the Flex and
> > JS side working.  Or should be start one of those much rumored
> > 'shared' feature branches of the SDK?
> Peter and/or I plan to get started on the HTML5 set for FlexJS this week.
> You are welcome to wait or write that first Button yourself.  BTW, what
> browser or runtime environment are you going to be working with?
>

The button component is what I am using as my first use case.  If things go
well, I will have an independently working skinned HTML5 button component
that can be plugged in anywhere.

So far, everything I have done seems to be working with the latest versions
of all major browsers.  This means:

Firefox 19.0.2 (Mac and Windows)
Chrome 25.0.1 (Mac and Windows)
IE 9
Safari (version unknown)
Android Browser (Android version 4.1.2)
iOS (version unknown)

I prefer to not concentrate on older browsers because the Flash/Flex
version of the same app should just work fine there.



> >
> > I love how everything seems to be converging and it really feels like
> > Flex -> HTML5/JS is doable!
> I finally got eclipse to build FalconJX from the Git sources.  I'll be
> testing it out today.  FalconJS had a few bugs that needed fixing and I'm
> hoping that you already fixed them in FalconJX.  If not I'll fix them in
> FalconJX to help me learn that code.  Hopefully there won't be any more
> code
> changes in compiler.js going forward.
>

Are you saying that you are planning to switch to FalconJX soon?


> >
> > EdB
> >
> >
> >
> > On Mon, Mar 25, 2013 at 7:21 PM, Om <bi...@gmail.com> wrote:
> >> Erik,
> >>
> >> I am planning to get FalconJX working on my machine soon.  Before I
> start
> >> digging into it,
> >>
> >> 1. Are these wiki pages current?
> >>
> >>
>
> https://cwiki.apache.org/confluence/display/FLEX/AS+to+JS+-+the+%27goog%27+Wa
> >>
> y
> >>
> >> https://cwiki.apache.org/confluence/display/FLEX/FalconJx+Prototype
> >>
> >> 2.  Do you have any thoughts on how we want to handle the resulting CSS?
> >>  Inlining everything or have it as separate files?
> >>
> >> 3.  My approach would take in a spark skin file and convert the fxg
> >> elements into svg+css.  There is going to some AS code that needs to be
> >> converted JS.  I believe your approach already handles this right?
> >>
> >> 4.  I see that the VanillaSDK supports the Button component in HTML5.
> >>  Maybe that is where I should start and get my code working there?
> >>
> >> Sorry if I am asking naive questions, but I am looking for some
> guidance on
> >> how to get my work integrated into FalconJx (or FalconJS)
> >>
> >> Thanks,
> >> Om
> >>
> >> On Mon, Mar 25, 2013 at 8:45 AM, Erik de Bruin <er...@ixsoftware.nl>
> wrote:
> >>
> >>> Hi,
> >>>
> >>> Just 'checking in': FalconJx can now compile the FlexJSTest_again
> >>> example from the command line, using these arguments:
> >>>
> >>>
> >>>
> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerG
> >>> lobal/player
> >>> +playerglobal.version=11.1
> >>> -load-config="/Applications/Adobe Flash Builder
> >>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
> >>>
> >>>
> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/
> >>> libs/FlexJSUI.swc
> >>> -js-output-type=FLEXJS
> >>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
> >>>
> >>>
> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src
> >>> /FlexJSTest.mxml
> >>>
> >>> Well, not exactly those, please change the paths to fit your local
> >>> environment ;-)
> >>>
> >>> Next up:
> >>> - support for publishing with the GCC and associated tricks (SourceMap
> >>> etc.)
> >>> - full FlexJS type AS -> JS support (the current implementation is
> >>> custom tailored to the FlexJSTest_Again example code)
> >>>
> >>> Have fun!
> >>>
> >>> EdB
> >>>
> >>>
> >>>
> >>> --
> >>> Ix Multimedia Software
> >>>
> >>> Jan Luykenstraat 27
> >>> 3521 VB Utrecht
> >>>
> >>> T. 06-51952295
> >>> I. www.ixsoftware.nl
> >>>
> >
> >
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Get/set methods with prefixes are entirely possible - I just wrote the
implementation in FalconJx - just not very elegant. There is an
alternate solution that uses on function per property and depending on
the amount of arguments (1 for "set" and 0 for "get") it will either
execute the "get" or "set" implementation in the body of the function.
This would negate the need for adding prefixes to property names. When
I'm done with the basic FlexJS implementation (end of day tomorrow, I
hope), I'm ready to look at stuff like this.

EdB



On Tue, Mar 26, 2013 at 7:17 PM, Alex Harui <ah...@adobe.com> wrote:
>
>
>
> On 3/26/13 10:44 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> I was talking about changes to the JS output, not the AS input. There
>> is some obsolete stuff in the Goog JSDoc annotation; the use of
>> goog.base() instead of [functionname].call(); maybe use goog.bind()
>> and I'm not at all sure what more. We'll need to discuss the use of
>> HTML5 "object" methods like "defineProperty", or another alternative
>> to emitting all property accessors as method calls. But rest assured,
>> I'll take care not to optimise prematurely ;-)
> We're both talking about the JS side.  If the handwritten .js files in
> FlexJS need to change, I can tweak FalconJS accordingly if need be.
>
> I think this stuff still needs to run on IE8, maybe even IE7, so not sure
> what we'll need to do to handle that.  Maybe generate methods as well?  Or
> have a flag?
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

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


On 3/26/13 10:44 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> I was talking about changes to the JS output, not the AS input. There
> is some obsolete stuff in the Goog JSDoc annotation; the use of
> goog.base() instead of [functionname].call(); maybe use goog.bind()
> and I'm not at all sure what more. We'll need to discuss the use of
> HTML5 "object" methods like "defineProperty", or another alternative
> to emitting all property accessors as method calls. But rest assured,
> I'll take care not to optimise prematurely ;-)
We're both talking about the JS side.  If the handwritten .js files in
FlexJS need to change, I can tweak FalconJS accordingly if need be.

I think this stuff still needs to run on IE8, maybe even IE7, so not sure
what we'll need to do to handle that.  Maybe generate methods as well?  Or
have a flag?

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
I was talking about changes to the JS output, not the AS input. There
is some obsolete stuff in the Goog JSDoc annotation; the use of
goog.base() instead of [functionname].call(); maybe use goog.bind()
and I'm not at all sure what more. We'll need to discuss the use of
HTML5 "object" methods like "defineProperty", or another alternative
to emitting all property accessors as method calls. But rest assured,
I'll take care not to optimise prematurely ;-)

EdB

On Tue, Mar 26, 2013 at 5:20 PM, Alex Harui <ah...@adobe.com> wrote:
> What would the change to FlexJS look like?  Are you assuming that the
> browser has getter/setter support or is there a flag for that?
>
> If it is trivial I can tweak FalconJS to use the right pattern and then
> adjust FlexJS for you.
>
>
> On 3/26/13 3:08 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> I wasn't being specific enough... I should have said: support for
>> cross-compiling all AS features to FlexJS specific output. This means
>> basically getting the 'goog' emission complete (nearly there) and
>> fixing the FlexJS framework to be compatible with 'goog' output (or
>> introducing a FlexJS emitter, which I'll probably do to make the
>> transition of FlexJS to FalconJx a bit smoother).
>>
>> EdB
>>
>>
>>
>> On Tue, Mar 26, 2013 at 10:59 AM, Michael Schmalle
>> <ap...@teotigraphix.com> wrote:
>>>
>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>
>>>>> Erik thinks he can do all of this in VanillaJS.  I still think it will
>>>>> take
>>>>> him too long to get to a minimal viable product and VanillaJS will have a
>>>>> huge minimal download and worry that folks are waiting for him instead of
>>>>> jumping in on FlexJS hoping he can provide the magic bullet.
>>>>
>>>>
>>>> Well, you hit the nail on the head there. While people seem to like
>>>> VanillaSDK as a viable alternative to FlexJS (probably because they
>>>> wouldn't have to relearn their "Flex" skills to get access to JS as an
>>>> alternative platform), nobody has stepped up to help out, they're all
>>>> "waiting" for me. I can't (and won't) do it all on my own, especially
>>>> not since I have limited time and want to use the time I have to get
>>>> FlexJS into FalconJx and give FalconJx full support for all aspects of
>>>> AS/MXML. So, at least for the foreseeable future, I won't be
>>>> developing VanillaSDK, instead I'll be putting my energy into making
>>>> FlexJS work and work well.
>>>
>>>
>>>> and give FalconJx full support for all aspects of
>>>> AS/MXML.
>>>
>>>
>>> Full support of MXML you are doing but what are the problems with support of
>>> AS? If there are outstanding issues with AS, I can do them. So far with
>>> Randori, We have some large applications and the frameworks being cross
>>> compiled with no bugs.
>>>
>>> This is also why, I haven't been working on the core much since it's stable
>>> for the moment.
>>>
>>> Let me know.
>>>
>>> Mike
>>>
>>>
>>>
>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>>
>>>
>>> --
>>> Michael Schmalle - Teoti Graphix, LLC
>>> http://www.teotigraphix.com
>>> http://blog.teotigraphix.com
>>>
>>
>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
What would the change to FlexJS look like?  Are you assuming that the
browser has getter/setter support or is there a flag for that?

If it is trivial I can tweak FalconJS to use the right pattern and then
adjust FlexJS for you.


On 3/26/13 3:08 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> I wasn't being specific enough... I should have said: support for
> cross-compiling all AS features to FlexJS specific output. This means
> basically getting the 'goog' emission complete (nearly there) and
> fixing the FlexJS framework to be compatible with 'goog' output (or
> introducing a FlexJS emitter, which I'll probably do to make the
> transition of FlexJS to FalconJx a bit smoother).
> 
> EdB
> 
> 
> 
> On Tue, Mar 26, 2013 at 10:59 AM, Michael Schmalle
> <ap...@teotigraphix.com> wrote:
>> 
>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>> 
>>>> Erik thinks he can do all of this in VanillaJS.  I still think it will
>>>> take
>>>> him too long to get to a minimal viable product and VanillaJS will have a
>>>> huge minimal download and worry that folks are waiting for him instead of
>>>> jumping in on FlexJS hoping he can provide the magic bullet.
>>> 
>>> 
>>> Well, you hit the nail on the head there. While people seem to like
>>> VanillaSDK as a viable alternative to FlexJS (probably because they
>>> wouldn't have to relearn their "Flex" skills to get access to JS as an
>>> alternative platform), nobody has stepped up to help out, they're all
>>> "waiting" for me. I can't (and won't) do it all on my own, especially
>>> not since I have limited time and want to use the time I have to get
>>> FlexJS into FalconJx and give FalconJx full support for all aspects of
>>> AS/MXML. So, at least for the foreseeable future, I won't be
>>> developing VanillaSDK, instead I'll be putting my energy into making
>>> FlexJS work and work well.
>> 
>> 
>>> and give FalconJx full support for all aspects of
>>> AS/MXML.
>> 
>> 
>> Full support of MXML you are doing but what are the problems with support of
>> AS? If there are outstanding issues with AS, I can do them. So far with
>> Randori, We have some large applications and the frameworks being cross
>> compiled with no bugs.
>> 
>> This is also why, I haven't been working on the core much since it's stable
>> for the moment.
>> 
>> Let me know.
>> 
>> Mike
>> 
>> 
>> 
>> 
>>> EdB
>>> 
>>> 
>>> 
>>> --
>>> Ix Multimedia Software
>>> 
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>> 
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>>> 
>> 
>> --
>> Michael Schmalle - Teoti Graphix, LLC
>> http://www.teotigraphix.com
>> http://blog.teotigraphix.com
>> 
> 
> 

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
I wasn't being specific enough... I should have said: support for
cross-compiling all AS features to FlexJS specific output. This means
basically getting the 'goog' emission complete (nearly there) and
fixing the FlexJS framework to be compatible with 'goog' output (or
introducing a FlexJS emitter, which I'll probably do to make the
transition of FlexJS to FalconJx a bit smoother).

EdB



On Tue, Mar 26, 2013 at 10:59 AM, Michael Schmalle
<ap...@teotigraphix.com> wrote:
>
> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>
>>> Erik thinks he can do all of this in VanillaJS.  I still think it will
>>> take
>>> him too long to get to a minimal viable product and VanillaJS will have a
>>> huge minimal download and worry that folks are waiting for him instead of
>>> jumping in on FlexJS hoping he can provide the magic bullet.
>>
>>
>> Well, you hit the nail on the head there. While people seem to like
>> VanillaSDK as a viable alternative to FlexJS (probably because they
>> wouldn't have to relearn their "Flex" skills to get access to JS as an
>> alternative platform), nobody has stepped up to help out, they're all
>> "waiting" for me. I can't (and won't) do it all on my own, especially
>> not since I have limited time and want to use the time I have to get
>> FlexJS into FalconJx and give FalconJx full support for all aspects of
>> AS/MXML. So, at least for the foreseeable future, I won't be
>> developing VanillaSDK, instead I'll be putting my energy into making
>> FlexJS work and work well.
>
>
>> and give FalconJx full support for all aspects of
>> AS/MXML.
>
>
> Full support of MXML you are doing but what are the problems with support of
> AS? If there are outstanding issues with AS, I can do them. So far with
> Randori, We have some large applications and the frameworks being cross
> compiled with no bugs.
>
> This is also why, I haven't been working on the core much since it's stable
> for the moment.
>
> Let me know.
>
> Mike
>
>
>
>
>> EdB
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>>
>
> --
> Michael Schmalle - Teoti Graphix, LLC
> http://www.teotigraphix.com
> http://blog.teotigraphix.com
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Michael Schmalle <ap...@teotigraphix.com>.
Quoting Erik de Bruin <er...@ixsoftware.nl>:

>> Erik thinks he can do all of this in VanillaJS.  I still think it will take
>> him too long to get to a minimal viable product and VanillaJS will have a
>> huge minimal download and worry that folks are waiting for him instead of
>> jumping in on FlexJS hoping he can provide the magic bullet.
>
> Well, you hit the nail on the head there. While people seem to like
> VanillaSDK as a viable alternative to FlexJS (probably because they
> wouldn't have to relearn their "Flex" skills to get access to JS as an
> alternative platform), nobody has stepped up to help out, they're all
> "waiting" for me. I can't (and won't) do it all on my own, especially
> not since I have limited time and want to use the time I have to get
> FlexJS into FalconJx and give FalconJx full support for all aspects of
> AS/MXML. So, at least for the foreseeable future, I won't be
> developing VanillaSDK, instead I'll be putting my energy into making
> FlexJS work and work well.

> and give FalconJx full support for all aspects of
> AS/MXML.

Full support of MXML you are doing but what are the problems with  
support of AS? If there are outstanding issues with AS, I can do them.  
So far with Randori, We have some large applications and the  
frameworks being cross compiled with no bugs.

This is also why, I haven't been working on the core much since it's  
stable for the moment.

Let me know.

Mike



> EdB
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl
>

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
> Erik thinks he can do all of this in VanillaJS.  I still think it will take
> him too long to get to a minimal viable product and VanillaJS will have a
> huge minimal download and worry that folks are waiting for him instead of
> jumping in on FlexJS hoping he can provide the magic bullet.

Well, you hit the nail on the head there. While people seem to like
VanillaSDK as a viable alternative to FlexJS (probably because they
wouldn't have to relearn their "Flex" skills to get access to JS as an
alternative platform), nobody has stepped up to help out, they're all
"waiting" for me. I can't (and won't) do it all on my own, especially
not since I have limited time and want to use the time I have to get
FlexJS into FalconJx and give FalconJx full support for all aspects of
AS/MXML. So, at least for the foreseeable future, I won't be
developing VanillaSDK, instead I'll be putting my energy into making
FlexJS work and work well.

EdB



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

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

On 3/27/13 10:56 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Ok, but note that while the output is NEARLY correct, the application
> doesn't work in the browser. Just thought I'd emphasise that ;-)
Yeah, I saw that.
> 
> 
> On Wed, Mar 27, 2013 at 6:50 PM, Alex Harui <ah...@adobe.com> wrote:
>> Excellent.  I will try it out later today.  I have to quickly fix some
>> FalconJS stuff for my potential "customer", but once I get past that I will
>> see if FalconJX can generate the same code.
>> 
>> I am hopeful that if I run into more of the kinds of errors I am fixing in
>> FalconJS, that they will be easier to find and fix in FalconJX.
>> 
>> 
>> On 3/27/13 10:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>> 
>>> Another update (have taken/will take some time to get this right this week):
>>> 
>>> FalconJx can now parse both FlexJS MXML and AS reasonably correctly.
>>> If run from the command line, it will now create the correct output
>>> directories (bin/js-debug and bin/js-release) and emit all JS and HTML
>>> files, both plain text (debug) and optimised using the GCC (release).
>>> Please use these command line arguments:
>>> 
>>> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerG
>>> lo
>>> bal/player
>>> +playerglobal.version=11.1
>>> -load-config="/Applications/Adobe Flash Builder
>>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
>>> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/
>>> li
>>> bs/FlexJSUI.swc
>>> -js-output-type=FLEXJS
>>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
>>> -closure-lib=/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/lib
>>> ra
>>> ry
>>> -sdk-js-lib=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/js/Fle
>>> xJ
>>> S/src
>>> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src
>>> /F
>>> lexJSTest.mxml
>>> 
>>> NOTE: please use the -sdk-js-lib argument to point to the library you
>>> want to use, instead of the previous 'vanilla' themed one.
>>> 
>>> Also worth mentioning: as of now, the application doesn't do anything
>>> in the browser, due to some unfinished business in the emitted JS
>>> (mainly places where 'goog' is still used, instead of FlexJS). This is
>>> my todo for tomorrow...
>>> 
>>> Have fun,
>>> 
>>> EdB
>>> 
>>> 
>>> 
>>> On Tue, Mar 26, 2013 at 11:33 PM, Om <bi...@gmail.com> wrote:
>>>>>> So, I need to research more about how skinning works in HTML5, but I have
>>>> 
>>>>>>> this vague recollection that skins in HTML5 are entirely graphics.
>>>>>> 
>>>>>> 
>>>>>> I dont think so.  SVG is part of the HTML5 spec now, so what we are doing
>>>>>> is completely legitimate.
>>>>> That's sort of what I meant.  I think a skin in HTML5 doesn't have
>>>>> sub-components, and is a bitmap or SVG.
>>>>> 
>>>> 
>>>> Ah, got it.  I dint read your sentence that way earlier.
>>>> 
>>>> 
>>>>>>> I also need to understand how an HTML5 button skin changes its visuals
>>>>> with
>>>>>>> hover/down/selected/focused/emphasized.  That would also educate how we
>>>>> set
>>>>>>> up a skinning model for FlexJS.
>>>>>>> 
>>>>>> 
>>>>>> Here is an example: http://demos.madeinthenorth.com/slicker-buttons/#
>>>>>> Notice how they use SVG in IE9 and CSS3 for Firefox and Webkit.  This
>>>>> also
>>>>>> shows how to use CSS to control the various states.
>>>>> I took a look at this post. It uses the "hover" pseudo selector as
>>>>> expected.
>>>>> But the button did not have support for things like focused and
>>>>> emphasized.
>>>>>> 
>>>>> 
>>>> 
>>>> If you can share some examples you like, that would be useful for me.
>>>> 
>>>> 
>>>>>> 
>>>>> 
>>>>>> 
>>>>>> A restriction on skins to not have sub-components would be great IMHO.  A
>>>>>> new suffix would be great as well.  One more modification from our
>>>>> current
>>>>>> spark skins would be to perhaps have a HostInterface instead of a
>>>>>> HostComponent in skins.
>>>>>> 
>>>>> Actually, I don't envision any sort of HostInterface or HostComponent
>>>>> contract for skins.  The actual skins shouldn't really know anything about
>>>>> the host.  The view bead, which sets up the sub-componentry for the
>>>>> visuals
>>>>> may bind to the component's model.
>>>> 
>>>> 
>>>> In that case, it should bind to an interface of the component's model and
>>>> not any specific implementation.
>>>> 
>>>> Thanks,
>>>> Om
>>> 
>>> 
>> 
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
> 
> 

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Ok, but note that while the output is NEARLY correct, the application
doesn't work in the browser. Just thought I'd emphasise that ;-)

EdB



On Wed, Mar 27, 2013 at 6:50 PM, Alex Harui <ah...@adobe.com> wrote:
> Excellent.  I will try it out later today.  I have to quickly fix some
> FalconJS stuff for my potential "customer", but once I get past that I will
> see if FalconJX can generate the same code.
>
> I am hopeful that if I run into more of the kinds of errors I am fixing in
> FalconJS, that they will be easier to find and fix in FalconJX.
>
>
> On 3/27/13 10:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> Another update (have taken/will take some time to get this right this week):
>>
>> FalconJx can now parse both FlexJS MXML and AS reasonably correctly.
>> If run from the command line, it will now create the correct output
>> directories (bin/js-debug and bin/js-release) and emit all JS and HTML
>> files, both plain text (debug) and optimised using the GCC (release).
>> Please use these command line arguments:
>>
>> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGlo
>> bal/player
>> +playerglobal.version=11.1
>> -load-config="/Applications/Adobe Flash Builder
>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
>> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/li
>> bs/FlexJSUI.swc
>> -js-output-type=FLEXJS
>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
>> -closure-lib=/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/libra
>> ry
>> -sdk-js-lib=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/js/FlexJ
>> S/src
>> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/F
>> lexJSTest.mxml
>>
>> NOTE: please use the -sdk-js-lib argument to point to the library you
>> want to use, instead of the previous 'vanilla' themed one.
>>
>> Also worth mentioning: as of now, the application doesn't do anything
>> in the browser, due to some unfinished business in the emitted JS
>> (mainly places where 'goog' is still used, instead of FlexJS). This is
>> my todo for tomorrow...
>>
>> Have fun,
>>
>> EdB
>>
>>
>>
>> On Tue, Mar 26, 2013 at 11:33 PM, Om <bi...@gmail.com> wrote:
>>>>> So, I need to research more about how skinning works in HTML5, but I have
>>>
>>>>>> this vague recollection that skins in HTML5 are entirely graphics.
>>>>>
>>>>>
>>>>> I dont think so.  SVG is part of the HTML5 spec now, so what we are doing
>>>>> is completely legitimate.
>>>> That's sort of what I meant.  I think a skin in HTML5 doesn't have
>>>> sub-components, and is a bitmap or SVG.
>>>>
>>>
>>> Ah, got it.  I dint read your sentence that way earlier.
>>>
>>>
>>>>>> I also need to understand how an HTML5 button skin changes its visuals
>>>> with
>>>>>> hover/down/selected/focused/emphasized.  That would also educate how we
>>>> set
>>>>>> up a skinning model for FlexJS.
>>>>>>
>>>>>
>>>>> Here is an example: http://demos.madeinthenorth.com/slicker-buttons/#
>>>>> Notice how they use SVG in IE9 and CSS3 for Firefox and Webkit.  This
>>>> also
>>>>> shows how to use CSS to control the various states.
>>>> I took a look at this post. It uses the "hover" pseudo selector as
>>>> expected.
>>>> But the button did not have support for things like focused and emphasized.
>>>>>
>>>>
>>>
>>> If you can share some examples you like, that would be useful for me.
>>>
>>>
>>>>>
>>>>
>>>>>
>>>>> A restriction on skins to not have sub-components would be great IMHO.  A
>>>>> new suffix would be great as well.  One more modification from our
>>>> current
>>>>> spark skins would be to perhaps have a HostInterface instead of a
>>>>> HostComponent in skins.
>>>>>
>>>> Actually, I don't envision any sort of HostInterface or HostComponent
>>>> contract for skins.  The actual skins shouldn't really know anything about
>>>> the host.  The view bead, which sets up the sub-componentry for the visuals
>>>> may bind to the component's model.
>>>
>>>
>>> In that case, it should bind to an interface of the component's model and
>>> not any specific implementation.
>>>
>>> Thanks,
>>> Om
>>
>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
To avoid confusion: "my" code is a carbon copy of Alex's. The only
difference is - and should be - that his code is compiled using
FalconJS and mine is compiled with FalconJx. This means that as of
now, both compilers have the same capabilities and the transition of
FlexJS from FalconJS to FalconJx is only a matter of when it's
convenient for the parties involved.

EdB



On Thu, Mar 28, 2013 at 8:33 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> It does. No GCC with Advanced Optimisation enabled yet (or rather, it
> is enabled, but the resulting code is not yet working ;-)
>
> Without that 'release' optimisation, the application loads lots of
> files from the Google Closure Library and of course from the FlexJS
> framework, i.e. 100s of KB at least. With the optimisation by the
> Closure Compiler this is boiled down into one file of just 19 KB. The
> difference in size is only one aspect, however, the GCC also
> re-compiles the JS to be much more efficient.
>
> EdB
>
>
>
> On Thu, Mar 28, 2013 at 8:04 PM, Alex Harui <ah...@adobe.com> wrote:
>> Yup, Erik's matches my binjs-debug version.
>>
>>
>> On 3/28/13 11:49 AM, "Om" <bi...@gmail.com> wrote:
>>
>>> I am not asking you to optimize or anything, but am just curious.
>>>
>>> Alex's version:
>>> http://people.apache.org/~aharui/FlexJS/binjs-release/FlexJSTest_again.example
>>> .html
>>>
>>> loads quite fast, whereas
>>>
>>> Your version:  http://people.apache.org/~erikdebruin/flexjs/
>>>
>>> takes quite a while.
>>>
>>> I notice that your version downloads quite a few files in separate requests
>>> whereas Alex's version downloads only one additional file.
>>>
>>> Is it because yours is a debug version?
>>>
>>> Sorry for the silly question, I am trying to my bearings straight.
>>>
>>> Thanks,
>>> Om
>>>
>>> On Thu, Mar 28, 2013 at 9:24 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>
>>>> And another update (things are going much better than I expected):
>>>> FalconJx can now emit a fully functional version of the
>>>> FlexJSTest_again demo application. You can see it in action here
>>>> (provided you use Chrome or Firefox, I just noticed):
>>>>
>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>
>>>> Onwards and upwards ;-)
>>>>
>>>> EdB
>>>>
>>>>
>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>> I'd have to look into it for specifics, but of the top of my head it
>>>>> seems that this most depends on the implementation in the FlexJS JS
>>>>> framework. Emitting the strings required by that framework should
>>>>> really be easy enough. If needed we can "look forward" into AST to
>>>>> look for binding information. I do this in several other places
>>>>> already. Even the binding expressions shouldn't be too much of a
>>>>> problem, again depending on how this will be handled by the JS
>>>>> framework.
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>>> whole
>>>>>> other ball of work.
>>>>>>
>>>>>> I think in FalconJX you might have to modify the node tree in several
>>>> places
>>>>>> when you hit a [Bindable] node.
>>>>>>
>>>>>> It isn't working correctly in FalconJS either, but my "customer" needs
>>>> it so
>>>>>> I'm hacking a fix.
>>>>>>
>>>>>>
>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>
>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>>>> Metadata and
>>>>>>> Databinding information, so I guess it depends on the requirements for
>>>> the
>>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>>
>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>>
>>>>>>>>
>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>>>> wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>
>>>>>>>>>> Another one popped into my head just now: I have a gut feeling there
>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>>> constructors for the various classes. But I can't wrap around it
>>>> well
>>>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>>>> done
>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>>>> somehow
>>>>>>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>>> what you think.
>>>>>>>>>
>>>>>>>>> Actually I think it works fine. The problem you are facing is with
>>>> the
>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>>>> to
>>>>>>>>> accomplish and it is circular from the perspective of using AS within
>>>>>>>>> MXML.
>>>>>>>>>
>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>> emitter.
>>>>>>>>>
>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>>> child that knows about its parent I am blind. Like I said, the block
>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>>> the fact there is recursion.
>>>>>>>>>
>>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>>>>>>>> and lighting in the sky, there may be parts that could be
>>>> logicalized.
>>>>>>>>>
>>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>>> alone for the time being.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>> wrote:
>>>>>>>>>>> Mike,
>>>>>>>>>>>
>>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>>
>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>>> additional work in your other projects? I did my best to leave all
>>>> the
>>>>>>>>>>> APIs alone.
>>>>>>>>>>>
>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>>> suggest some kind of code review or something (I'm not used to
>>>> working
>>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>>>> for
>>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>>>> right
>>>>>>>>>>> thing there. And finally (not really, but this is all I can think
>>>> of
>>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>>> "programming to interfaces, not implementations" part that we
>>>> nearly
>>>>>>>>>>> adhere to, but not quite, we might have another look at that as
>>>> well.
>>>>>>>>>>>
>>>>>>>>>>> EdB
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>>
>>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>>> touch the
>>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>>>> code.
>>>>>>>> And
>>>>>>>>>>>> application code now.
>>>>>>>>>>>>
>>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>>> spaces. :)
>>>>>>>>>>>>
>>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>>> having to chase
>>>>>>>>>>>> them right now.
>>>>>>>>>>>>
>>>>>>>>>>>> Mike
>>>>>>>> Alex Harui
>>>>>>>> Flex SDK Team
>>>>>>>> Adobe Systems, Inc.
>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Alex Harui
>>>>>> Flex SDK Team
>>>>>> Adobe Systems, Inc.
>>>>>> http://blogs.adobe.com/aharui
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Ix Multimedia Software
>>>>>
>>>>> Jan Luykenstraat 27
>>>>> 3521 VB Utrecht
>>>>>
>>>>> T. 06-51952295
>>>>> I. www.ixsoftware.nl
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>>
>>
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
It does. No GCC with Advanced Optimisation enabled yet (or rather, it
is enabled, but the resulting code is not yet working ;-)

Without that 'release' optimisation, the application loads lots of
files from the Google Closure Library and of course from the FlexJS
framework, i.e. 100s of KB at least. With the optimisation by the
Closure Compiler this is boiled down into one file of just 19 KB. The
difference in size is only one aspect, however, the GCC also
re-compiles the JS to be much more efficient.

EdB



On Thu, Mar 28, 2013 at 8:04 PM, Alex Harui <ah...@adobe.com> wrote:
> Yup, Erik's matches my binjs-debug version.
>
>
> On 3/28/13 11:49 AM, "Om" <bi...@gmail.com> wrote:
>
>> I am not asking you to optimize or anything, but am just curious.
>>
>> Alex's version:
>> http://people.apache.org/~aharui/FlexJS/binjs-release/FlexJSTest_again.example
>> .html
>>
>> loads quite fast, whereas
>>
>> Your version:  http://people.apache.org/~erikdebruin/flexjs/
>>
>> takes quite a while.
>>
>> I notice that your version downloads quite a few files in separate requests
>> whereas Alex's version downloads only one additional file.
>>
>> Is it because yours is a debug version?
>>
>> Sorry for the silly question, I am trying to my bearings straight.
>>
>> Thanks,
>> Om
>>
>> On Thu, Mar 28, 2013 at 9:24 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>
>>> And another update (things are going much better than I expected):
>>> FalconJx can now emit a fully functional version of the
>>> FlexJSTest_again demo application. You can see it in action here
>>> (provided you use Chrome or Firefox, I just noticed):
>>>
>>> http://people.apache.org/~erikdebruin/flexjs/
>>>
>>> Onwards and upwards ;-)
>>>
>>> EdB
>>>
>>>
>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>> I'd have to look into it for specifics, but of the top of my head it
>>>> seems that this most depends on the implementation in the FlexJS JS
>>>> framework. Emitting the strings required by that framework should
>>>> really be easy enough. If needed we can "look forward" into AST to
>>>> look for binding information. I do this in several other places
>>>> already. Even the binding expressions shouldn't be too much of a
>>>> problem, again depending on how this will be handled by the JS
>>>> framework.
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>> whole
>>>>> other ball of work.
>>>>>
>>>>> I think in FalconJX you might have to modify the node tree in several
>>> places
>>>>> when you hit a [Bindable] node.
>>>>>
>>>>> It isn't working correctly in FalconJS either, but my "customer" needs
>>> it so
>>>>> I'm hacking a fix.
>>>>>
>>>>>
>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>
>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>>> Metadata and
>>>>>> Databinding information, so I guess it depends on the requirements for
>>> the
>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>
>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>
>>>>>>>
>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>>> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>
>>>>>>>>> Another one popped into my head just now: I have a gut feeling there
>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>> constructors for the various classes. But I can't wrap around it
>>> well
>>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>>> done
>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>>> somehow
>>>>>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>> what you think.
>>>>>>>>
>>>>>>>> Actually I think it works fine. The problem you are facing is with
>>> the
>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>>> to
>>>>>>>> accomplish and it is circular from the perspective of using AS within
>>>>>>>> MXML.
>>>>>>>>
>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>> emitter.
>>>>>>>>
>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>> child that knows about its parent I am blind. Like I said, the block
>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>> the fact there is recursion.
>>>>>>>>
>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>>>>>>> and lighting in the sky, there may be parts that could be
>>> logicalized.
>>>>>>>>
>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>> alone for the time being.
>>>>>>>>
>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>> wrote:
>>>>>>>>>> Mike,
>>>>>>>>>>
>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>
>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>> additional work in your other projects? I did my best to leave all
>>> the
>>>>>>>>>> APIs alone.
>>>>>>>>>>
>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>> suggest some kind of code review or something (I'm not used to
>>> working
>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>>> for
>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>>> right
>>>>>>>>>> thing there. And finally (not really, but this is all I can think
>>> of
>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>> "programming to interfaces, not implementations" part that we
>>> nearly
>>>>>>>>>> adhere to, but not quite, we might have another look at that as
>>> well.
>>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>
>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>> touch the
>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>>> code.
>>>>>>> And
>>>>>>>>>>> application code now.
>>>>>>>>>>>
>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>> spaces. :)
>>>>>>>>>>>
>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>> having to chase
>>>>>>>>>>> them right now.
>>>>>>>>>>>
>>>>>>>>>>> Mike
>>>>>>> Alex Harui
>>>>>>> Flex SDK Team
>>>>>>> Adobe Systems, Inc.
>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>
>>>>>>>
>>>>>
>>>>> --
>>>>> Alex Harui
>>>>> Flex SDK Team
>>>>> Adobe Systems, Inc.
>>>>> http://blogs.adobe.com/aharui
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>
>>>
>>>
>>> --
>>> Ix Multimedia Software
>>>
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>>
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
Yup, Erik's matches my binjs-debug version.


On 3/28/13 11:49 AM, "Om" <bi...@gmail.com> wrote:

> I am not asking you to optimize or anything, but am just curious.
> 
> Alex's version:
> http://people.apache.org/~aharui/FlexJS/binjs-release/FlexJSTest_again.example
> .html
> 
> loads quite fast, whereas
> 
> Your version:  http://people.apache.org/~erikdebruin/flexjs/
> 
> takes quite a while.
> 
> I notice that your version downloads quite a few files in separate requests
> whereas Alex's version downloads only one additional file.
> 
> Is it because yours is a debug version?
> 
> Sorry for the silly question, I am trying to my bearings straight.
> 
> Thanks,
> Om
> 
> On Thu, Mar 28, 2013 at 9:24 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> 
>> And another update (things are going much better than I expected):
>> FalconJx can now emit a fully functional version of the
>> FlexJSTest_again demo application. You can see it in action here
>> (provided you use Chrome or Firefox, I just noticed):
>> 
>> http://people.apache.org/~erikdebruin/flexjs/
>> 
>> Onwards and upwards ;-)
>> 
>> EdB
>> 
>> 
>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>> I'd have to look into it for specifics, but of the top of my head it
>>> seems that this most depends on the implementation in the FlexJS JS
>>> framework. Emitting the strings required by that framework should
>>> really be easy enough. If needed we can "look forward" into AST to
>>> look for binding information. I do this in several other places
>>> already. Even the binding expressions shouldn't be too much of a
>>> problem, again depending on how this will be handled by the JS
>>> framework.
>>> 
>>> EdB
>>> 
>>> 
>>> 
>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>> whole
>>>> other ball of work.
>>>> 
>>>> I think in FalconJX you might have to modify the node tree in several
>> places
>>>> when you hit a [Bindable] node.
>>>> 
>>>> It isn't working correctly in FalconJS either, but my "customer" needs
>> it so
>>>> I'm hacking a fix.
>>>> 
>>>> 
>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>> 
>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>> Metadata and
>>>>> Databinding information, so I guess it depends on the requirements for
>> the
>>>>> emitted JS if I can easily implement this ;-)
>>>>> 
>>>>> EdB
>>>>> 
>>>>> 
>>>>> 
>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>> 
>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>> 
>>>>>> 
>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>> wrote:
>>>>>> 
>>>>>>> 
>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>> 
>>>>>>>> Another one popped into my head just now: I have a gut feeling there
>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>> constructors for the various classes. But I can't wrap around it
>> well
>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>> done
>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>> somehow
>>>>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>> what you think.
>>>>>>> 
>>>>>>> Actually I think it works fine. The problem you are facing is with
>> the
>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>> to
>>>>>>> accomplish and it is circular from the perspective of using AS within
>>>>>>> MXML.
>>>>>>> 
>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>> emitter.
>>>>>>> 
>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>> child that knows about its parent I am blind. Like I said, the block
>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>> the fact there is recursion.
>>>>>>> 
>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>>>>>> and lighting in the sky, there may be parts that could be
>> logicalized.
>>>>>>> 
>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>> alone for the time being.
>>>>>>> 
>>>>>>> 
>>>>>>>> EdB
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>>>> Mike,
>>>>>>>>> 
>>>>>>>>> Just kidding ;-)
>>>>>>>>> 
>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>> additional work in your other projects? I did my best to leave all
>> the
>>>>>>>>> APIs alone.
>>>>>>>>> 
>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>> suggest some kind of code review or something (I'm not used to
>> working
>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>> for
>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>> right
>>>>>>>>> thing there. And finally (not really, but this is all I can think
>> of
>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>> "programming to interfaces, not implementations" part that we
>> nearly
>>>>>>>>> adhere to, but not quite, we might have another look at that as
>> well.
>>>>>>>>> 
>>>>>>>>> EdB
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>> No thats not what I meant.
>>>>>>>>>> 
>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>> touch the
>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>> code.
>>>>>> And
>>>>>>>>>> application code now.
>>>>>>>>>> 
>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>> spaces. :)
>>>>>>>>>> 
>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>> having to chase
>>>>>>>>>> them right now.
>>>>>>>>>> 
>>>>>>>>>> Mike
>>>>>> Alex Harui
>>>>>> Flex SDK Team
>>>>>> Adobe Systems, Inc.
>>>>>> http://blogs.adobe.com/aharui
>>>>>> 
>>>>>> 
>>>> 
>>>> --
>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Ix Multimedia Software
>>> 
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>> 
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>> 
>> 
>> 
>> --
>> Ix Multimedia Software
>> 
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>> 
>> T. 06-51952295
>> I. www.ixsoftware.nl
>> 

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


Re: [FalconJx] progress update

Posted by Om <bi...@gmail.com>.
I am not asking you to optimize or anything, but am just curious.

Alex's version:
http://people.apache.org/~aharui/FlexJS/binjs-release/FlexJSTest_again.example.html

loads quite fast, whereas

Your version:  http://people.apache.org/~erikdebruin/flexjs/

takes quite a while.

I notice that your version downloads quite a few files in separate requests
whereas Alex's version downloads only one additional file.

Is it because yours is a debug version?

Sorry for the silly question, I am trying to my bearings straight.

Thanks,
Om

On Thu, Mar 28, 2013 at 9:24 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:

> And another update (things are going much better than I expected):
> FalconJx can now emit a fully functional version of the
> FlexJSTest_again demo application. You can see it in action here
> (provided you use Chrome or Firefox, I just noticed):
>
> http://people.apache.org/~erikdebruin/flexjs/
>
> Onwards and upwards ;-)
>
> EdB
>
>
> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> > I'd have to look into it for specifics, but of the top of my head it
> > seems that this most depends on the implementation in the FlexJS JS
> > framework. Emitting the strings required by that framework should
> > really be easy enough. If needed we can "look forward" into AST to
> > look for binding information. I do this in several other places
> > already. Even the binding expressions shouldn't be too much of a
> > problem, again depending on how this will be handled by the JS
> > framework.
> >
> > EdB
> >
> >
> >
> > On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
> >> [Bindable] results in extra codegen.  Binding expressions with {} is a
> whole
> >> other ball of work.
> >>
> >> I think in FalconJX you might have to modify the node tree in several
> places
> >> when you hit a [Bindable] node.
> >>
> >> It isn't working correctly in FalconJS either, but my "customer" needs
> it so
> >> I'm hacking a fix.
> >>
> >>
> >> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
> >>
> >>> No, not yet. How is this set up in FlexJS? I'm sure I can read
> Metadata and
> >>> Databinding information, so I guess it depends on the requirements for
> the
> >>> emitted JS if I can easily implement this ;-)
> >>>
> >>> EdB
> >>>
> >>>
> >>>
> >>> On Wednesday, March 27, 2013, Alex Harui wrote:
> >>>
> >>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
> >>>>
> >>>>
> >>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
> wrote:
> >>>>
> >>>>>
> >>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
> >>>>>
> >>>>>> Another one popped into my head just now: I have a gut feeling there
> >>>>>> is a bit of circular logic going on in the whole 'backend',
> >>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
> >>>>>> the references to them are passed around as arguments in the
> >>>>>> constructors for the various classes. But I can't wrap around it
> well
> >>>>>> enough to figure out whether it's wrong and if so, what might be
> done
> >>>>>> about it. Don't get me wrong, it works well, it's just that it
> somehow
> >>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
> >>>>>> or quality of your code, just something I thought I'd share and see
> >>>>>> what you think.
> >>>>>
> >>>>> Actually I think it works fine. The problem you are facing is with
> the
> >>>>> MXML emitter I am sure. This adds complexity to what you are trying
> to
> >>>>> accomplish and it is circular from the perspective of using AS within
> >>>>> MXML.
> >>>>>
> >>>>> There is a buffer writer(output stream), a writer, a visitor and
> emitter.
> >>>>>
> >>>>> Each one takes a dependency of its parent. Trust me, if there is a
> >>>>> child that knows about its parent I am blind. Like I said, the block
> >>>>> walker is a visitor and the emitter is a visitor. You cannot escape
> >>>>> the fact there is recursion.
> >>>>>
> >>>>> If you can think of a more elegant way to set it up, by  all means
> >>>>> write a prototype. Remember, I wrote this with an atom bomb under me
> >>>>> and lighting in the sky, there may be parts that could be
> logicalized.
> >>>>>
> >>>>> I have another full compiler in Randori that I am going to use as a
> >>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
> >>>>> So I guess we both can experiment, we can agree to leave the core
> >>>>> alone for the time being.
> >>>>>
> >>>>>
> >>>>>> EdB
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
> >>>> wrote:
> >>>>>>> Mike,
> >>>>>>>
> >>>>>>> Just kidding ;-)
> >>>>>>>
> >>>>>>> I'm really happy with FalconJx, once you get to know it it's a
> >>>>>>> pleasure to work with. I hope my last commits didn't give you any
> >>>>>>> additional work in your other projects? I did my best to leave all
> the
> >>>>>>> APIs alone.
> >>>>>>>
> >>>>>>> There are plenty of TODOs in the code, and I would also like to
> >>>>>>> suggest some kind of code review or something (I'm not used to
> working
> >>>>>>> in groups, but that seems like a nice thing to do), since I've been
> >>>>>>> piling on stuff. I did my best to keep everything clean and in line
> >>>>>>> with the spirit of the rest of the code, but there are some areas
> >>>>>>> where I'd like to have a second opinion. Like with the code that is
> >>>>>>> copied between the DOC and JS emitters, seems there might be room
> for
> >>>>>>> improvement there. Also of note is the way I've implemented the AS
> >>>>>>> emitting within the MXML emitter, not really sure if I did the
> right
> >>>>>>> thing there. And finally (not really, but this is all I can think
> of
> >>>>>>> for now, after the marathon hacking I did today) there is the whole
> >>>>>>> "programming to interfaces, not implementations" part that we
> nearly
> >>>>>>> adhere to, but not quite, we might have another look at that as
> well.
> >>>>>>>
> >>>>>>> EdB
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
> >>>>>>> <ap...@teotigraphix.com> wrote:
> >>>>>>>> No thats not what I meant.
> >>>>>>>>
> >>>>>>>> I am saying with the Randori project compiler, I have not had to
> >>>> touch the
> >>>>>>>> core framework for weeks and it is compiling 1000's of lines of
> code.
> >>>> And
> >>>>>>>> application code now.
> >>>>>>>>
> >>>>>>>> What I meant to say was, the design keeps people in the correct
> >>>> spaces. :)
> >>>>>>>>
> >>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
> >>>>>>>> having to chase
> >>>>>>>> them right now.
> >>>>>>>>
> >>>>>>>> Mike
> >>>> Alex Harui
> >>>> Flex SDK Team
> >>>> Adobe Systems, Inc.
> >>>> http://blogs.adobe.com/aharui
> >>>>
> >>>>
> >>
> >> --
> >> Alex Harui
> >> Flex SDK Team
> >> Adobe Systems, Inc.
> >> http://blogs.adobe.com/aharui
> >>
> >
> >
> >
> > --
> > Ix Multimedia Software
> >
> > Jan Luykenstraat 27
> > 3521 VB Utrecht
> >
> > T. 06-51952295
> > I. www.ixsoftware.nl
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl
>

RE: [FalconJx] progress update

Posted by Sugan Naicker <Su...@Dev-X.co.za>.
Hi Alex,

Thanks. I will assist with testing.

Rgs,

Sugan Naicker
South Africa

-----Original Message-----
From: Alex Harui [mailto:aharui@adobe.com] 
Sent: 28 March 2013 09:46 PM
To: dev@flex.apache.org
Subject: Re: [FalconJx] progress update

OK, thanks.  There's lots of bugs in this prototype.  Once I get a few more
things cleaned up, maybe we'll start tracking bugs in JIRA.


On 3/28/13 12:40 PM, "Sugan Naicker" <Su...@Dev-X.co.za> wrote:

> Hi Alex,
> 
>>> FlexJS doesn't work on IE yet.  On my list of things to do.
> 
> Great thanks for the feedback.
> 
> I tested your version on Firefox (V14.0.1) and it works, except for 
> the TRANSER button does not work. (Text typed into the Text Input box 
> does not transfer to text box above)
> 
> Regards,
> 
> Sugan Naicker
> South Africa
> 
> -----Original Message-----
> From: Alex Harui [mailto:aharui@adobe.com]
> Sent: 28 March 2013 09:09 PM
> To: dev@flex.apache.org
> Subject: Re: [FalconJx] progress update
> 
> FlexJS doesn't work on IE yet.  On my list of things to do.
> 
> 
> On 3/28/13 11:55 AM, "Sugan Naicker" <Su...@Dev-X.co.za> wrote:
> 
> Hi,
> 
> Ran the following tests :
> 
> 1) Firefox (V14.0.1) - works         (see pic below)
> 
> 
> Issues :
> 1)      I found is that when you 'rapidly' click on the radio box 'text'
in
> quick succession, 'sometimes' the correct radio box does not get selected.
> Example below - GREEN selected (and highlighted), but radio box not 
> activated.
> 
> 
> 2)      Clicking on the OK button takes some time before a value appears
in
> the text box. Note sure what is coded behind the OK button (if it is 
> fetching a value from web and returning value)
> 
> 
> 2) IE (V9.0.8112) - does not work  (see pic below)
> 
>                 - Get "undefined" above OK button and in Text box
>                 - Radio and Check box are selectable
>                 - Button's are unresponsive
>                 - Clicking on AAPL, etc does not push value to text 
> box
> 
> Regards,
> 
> Sugan Naicker
> South Africa
> 
> 
> -----Original Message-----
> From: Erik de Bruin [mailto:erik@ixsoftware.nl]
> Sent: 28 March 2013 06:24 PM
> To: dev@flex.apache.org
> Subject: Re: [FalconJx] progress update
> 
> And another update (things are going much better than I expected):
> FalconJx can now emit a fully functional version of the 
> FlexJSTest_again demo application. You can see it in action here 
> (provided you use Chrome or Firefox, I just noticed):
> 
> http://people.apache.org/~erikdebruin/flexjs/
> <http://people.apache.org/~erikdebruin/flexjs/>
> 
> Onwards and upwards ;-)
> 
> EdB
> 
> 
> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <erik@ixsoftware.nl 
> <ma...@ixsoftware.nl> > wrote:
>> I'd have to look into it for specifics, but of the top of my head it 
>> seems that this most depends on the implementation in the FlexJS JS 
>> framework. Emitting the strings required by that framework should 
>> really be easy enough. If needed we can "look forward" into AST to 
>> look for binding information. I do this in several other places 
>> already. Even the binding expressions shouldn't be too much of a 
>> problem, again depending on how this will be handled by the JS 
>> framework.
>> 
>> EdB
>> 
>> 
>> 
>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <aharui@adobe.com
> <ma...@adobe.com> > wrote:
>>> [Bindable] results in extra codegen.  Binding expressions with {} is 
>>> a whole other ball of work.
>>> 
>>> I think in FalconJX you might have to modify the node tree in 
>>> several places when you hit a [Bindable] node.
>>> 
>>> It isn't working correctly in FalconJS either, but my "customer"
>>> needs it so I'm hacking a fix.
>>> 
>>> 
>>> On 3/27/13 1:28 PM, "Erik de Bruin" <erik@ixsoftware.nl
> <ma...@ixsoftware.nl> > wrote:
>>> 
>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read 
>>>> Metadata and Databinding information, so I guess it depends on the 
>>>> requirements for the emitted JS if I can easily implement this ;-)
>>>> 
>>>> EdB
>>>> 
>>>> 
>>>> 
>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>> 
>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>> 
>>>>> 
>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <apache@teotigraphix.com
> <ma...@teotigraphix.com> > wrote:
>>>>> 
>>>>>> 
>>>>>> Quoting Erik de Bruin <erik@ixsoftware.nl 
>>>>>> <ma...@ixsoftware.nl>
>> :
>>>>>> 
>>>>>>> Another one popped into my head just now: I have a gut feeling 
>>>>>>> there is a bit of circular logic going on in the whole 
>>>>>>> 'backend', 'blockwalker' and 'emitter' construct. More 
>>>>>>> specifically in the way the references to them are passed around 
>>>>>>> as arguments in the constructors for the various classes. But I 
>>>>>>> can't wrap around it well enough to figure out whether it's 
>>>>>>> wrong and if so, what might be done about it. Don't get me 
>>>>>>> wrong, it works well, it's just that it somehow isn't "elegant". 
>>>>>>> And that's in no way a comment on the effectiveness or quality 
>>>>>>> of your code, just something I thought I'd share and see what you
think.
>>>>>> 
>>>>>> Actually I think it works fine. The problem you are facing is 
>>>>>> with the MXML emitter I am sure. This adds complexity to what you 
>>>>>> are trying to accomplish and it is circular from the perspective 
>>>>>> of using AS within MXML.
>>>>>> 
>>>>>> There is a buffer writer(output stream), a writer, a visitor and
> emitter.
>>>>>> 
>>>>>> Each one takes a dependency of its parent. Trust me, if there is 
>>>>>> a child that knows about its parent I am blind. Like I said, the 
>>>>>> block walker is a visitor and the emitter is a visitor. You 
>>>>>> cannot escape the fact there is recursion.
>>>>>> 
>>>>>> If you can think of a more elegant way to set it up, by  all 
>>>>>> means write a prototype. Remember, I wrote this with an atom bomb 
>>>>>> under me and lighting in the sky, there may be parts that could 
>>>>>> be
> logicalized.
>>>>>> 
>>>>>> I have another full compiler in Randori that I am going to use as 
>>>>>> a proof of concept with compiler plugins and my ASDoc compiler I
> wrote.
>>>>>> So I guess we both can experiment, we can agree to leave the core 
>>>>>> alone for the time being.
>>>>>> 
>>>>>> 
>>>>>>> EdB
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin 
>>>>>>> <erik@ixsoftware.nl <ma...@ixsoftware.nl> >
>>>>> wrote:
>>>>>>>> Mike,
>>>>>>>> 
>>>>>>>> Just kidding ;-)
>>>>>>>> 
>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a 
>>>>>>>> pleasure to work with. I hope my last commits didn't give you 
>>>>>>>> any additional work in your other projects? I did my best to 
>>>>>>>> leave all the APIs alone.
>>>>>>>> 
>>>>>>>> There are plenty of TODOs in the code, and I would also like to 
>>>>>>>> suggest some kind of code review or something (I'm not used to 
>>>>>>>> working in groups, but that seems like a nice thing to do), 
>>>>>>>> since I've been piling on stuff. I did my best to keep 
>>>>>>>> everything clean and in line with the spirit of the rest of the 
>>>>>>>> code, but there are some areas where I'd like to have a second 
>>>>>>>> opinion. Like with the code that is copied between the DOC and 
>>>>>>>> JS emitters, seems there might be room for improvement there.
>>>>>>>> Also of note is the way I've implemented the AS emitting within 
>>>>>>>> the MXML emitter, not really sure if I did the right thing 
>>>>>>>> there. And finally (not really, but this is all I can think of 
>>>>>>>> for now, after the marathon hacking I did today) there is the 
>>>>>>>> whole "programming to interfaces, not implementations" part 
>>>>>>>> that we
> nearly adhere to, but not quite, we might have another look at that as
well.
>>>>>>>> 
>>>>>>>> EdB
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle 
>>>>>>>> <apache@teotigraphix.com <ma...@teotigraphix.com> > wrote:
>>>>>>>>> No thats not what I meant.
>>>>>>>>> 
>>>>>>>>> I am saying with the Randori project compiler, I have not had 
>>>>>>>>> to
>>>>> touch the
>>>>>>>>> core framework for weeks and it is compiling 1000's of lines 
>>>>>>>>> of
> code.
>>>>> And
>>>>>>>>> application code now.
>>>>>>>>> 
>>>>>>>>> What I meant to say was, the design keeps people in the 
>>>>>>>>> correct
>>>>> spaces. :)
>>>>>>>>> 
>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not 
>>>>>>>>> having to chase them right now.
>>>>>>>>> 
>>>>>>>>> Mike
>>>>> Alex Harui
>>>>> Flex SDK Team
>>>>> Adobe Systems, Inc.
>>>>> http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui>
>>>>> 
>>>>> 
>>> 
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui>
>>> 
>> 
>> 
>> 
>> --
>> Ix Multimedia Software
>> 
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>> 
>> T. 06-51952295
>> I. www.ixsoftware.nl <http://www.ixsoftware.nl>
> 
> 
> 
> --
> Ix Multimedia Software
> 
> Jan Luykenstraat 27
> 3521 VB Utrecht
> 
> T. 06-51952295
> I. www.ixsoftware.nl <http://www.ixsoftware.nl>
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
> 

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



Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
OK, thanks.  There's lots of bugs in this prototype.  Once I get a few more
things cleaned up, maybe we'll start tracking bugs in JIRA.


On 3/28/13 12:40 PM, "Sugan Naicker" <Su...@Dev-X.co.za> wrote:

> Hi Alex,
> 
>>> FlexJS doesn't work on IE yet.  On my list of things to do.
> 
> Great thanks for the feedback.
> 
> I tested your version on Firefox (V14.0.1) and it works, except for the
> TRANSER button does not work. (Text typed into the Text Input box does not
> transfer to text box above)
> 
> Regards,
> 
> Sugan Naicker
> South Africa
> 
> -----Original Message-----
> From: Alex Harui [mailto:aharui@adobe.com]
> Sent: 28 March 2013 09:09 PM
> To: dev@flex.apache.org
> Subject: Re: [FalconJx] progress update
> 
> FlexJS doesn't work on IE yet.  On my list of things to do.
> 
> 
> On 3/28/13 11:55 AM, "Sugan Naicker" <Su...@Dev-X.co.za> wrote:
> 
> Hi,
> 
> Ran the following tests :
> 
> 1) Firefox (V14.0.1) - works         (see pic below)
> 
> 
> Issues :
> 1)      I found is that when you 'rapidly' click on the radio box 'text' in
> quick succession, 'sometimes' the correct radio box does not get selected.
> Example below - GREEN selected (and highlighted), but radio box not
> activated.
> 
> 
> 2)      Clicking on the OK button takes some time before a value appears in
> the text box. Note sure what is coded behind the OK button (if it is
> fetching a value from web and returning value)
> 
> 
> 2) IE (V9.0.8112) - does not work  (see pic below)
> 
>                 - Get "undefined" above OK button and in Text box
>                 - Radio and Check box are selectable
>                 - Button's are unresponsive
>                 - Clicking on AAPL, etc does not push value to text box
> 
> Regards,
> 
> Sugan Naicker
> South Africa
> 
> 
> -----Original Message-----
> From: Erik de Bruin [mailto:erik@ixsoftware.nl]
> Sent: 28 March 2013 06:24 PM
> To: dev@flex.apache.org
> Subject: Re: [FalconJx] progress update
> 
> And another update (things are going much better than I expected):
> FalconJx can now emit a fully functional version of the FlexJSTest_again
> demo application. You can see it in action here (provided you use Chrome or
> Firefox, I just noticed):
> 
> http://people.apache.org/~erikdebruin/flexjs/
> <http://people.apache.org/~erikdebruin/flexjs/>
> 
> Onwards and upwards ;-)
> 
> EdB
> 
> 
> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <erik@ixsoftware.nl
> <ma...@ixsoftware.nl> > wrote:
>> I'd have to look into it for specifics, but of the top of my head it
>> seems that this most depends on the implementation in the FlexJS JS
>> framework. Emitting the strings required by that framework should
>> really be easy enough. If needed we can "look forward" into AST to
>> look for binding information. I do this in several other places
>> already. Even the binding expressions shouldn't be too much of a
>> problem, again depending on how this will be handled by the JS
>> framework.
>> 
>> EdB
>> 
>> 
>> 
>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <aharui@adobe.com
> <ma...@adobe.com> > wrote:
>>> [Bindable] results in extra codegen.  Binding expressions with {} is
>>> a whole other ball of work.
>>> 
>>> I think in FalconJX you might have to modify the node tree in several
>>> places when you hit a [Bindable] node.
>>> 
>>> It isn't working correctly in FalconJS either, but my "customer"
>>> needs it so I'm hacking a fix.
>>> 
>>> 
>>> On 3/27/13 1:28 PM, "Erik de Bruin" <erik@ixsoftware.nl
> <ma...@ixsoftware.nl> > wrote:
>>> 
>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>>>> Metadata and Databinding information, so I guess it depends on the
>>>> requirements for the emitted JS if I can easily implement this ;-)
>>>> 
>>>> EdB
>>>> 
>>>> 
>>>> 
>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>> 
>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>> 
>>>>> 
>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <apache@teotigraphix.com
> <ma...@teotigraphix.com> > wrote:
>>>>> 
>>>>>> 
>>>>>> Quoting Erik de Bruin <erik@ixsoftware.nl <ma...@ixsoftware.nl>
>> :
>>>>>> 
>>>>>>> Another one popped into my head just now: I have a gut feeling
>>>>>>> there is a bit of circular logic going on in the whole 'backend',
>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the
>>>>>>> way the references to them are passed around as arguments in the
>>>>>>> constructors for the various classes. But I can't wrap around it
>>>>>>> well enough to figure out whether it's wrong and if so, what
>>>>>>> might be done about it. Don't get me wrong, it works well, it's
>>>>>>> just that it somehow isn't "elegant". And that's in no way a
>>>>>>> comment on the effectiveness or quality of your code, just
>>>>>>> something I thought I'd share and see what you think.
>>>>>> 
>>>>>> Actually I think it works fine. The problem you are facing is with
>>>>>> the MXML emitter I am sure. This adds complexity to what you are
>>>>>> trying to accomplish and it is circular from the perspective of
>>>>>> using AS within MXML.
>>>>>> 
>>>>>> There is a buffer writer(output stream), a writer, a visitor and
> emitter.
>>>>>> 
>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>> child that knows about its parent I am blind. Like I said, the
>>>>>> block walker is a visitor and the emitter is a visitor. You cannot
>>>>>> escape the fact there is recursion.
>>>>>> 
>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>> write a prototype. Remember, I wrote this with an atom bomb under
>>>>>> me and lighting in the sky, there may be parts that could be
> logicalized.
>>>>>> 
>>>>>> I have another full compiler in Randori that I am going to use as
>>>>>> a proof of concept with compiler plugins and my ASDoc compiler I
> wrote.
>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>> alone for the time being.
>>>>>> 
>>>>>> 
>>>>>>> EdB
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin
>>>>>>> <erik@ixsoftware.nl <ma...@ixsoftware.nl> >
>>>>> wrote:
>>>>>>>> Mike,
>>>>>>>> 
>>>>>>>> Just kidding ;-)
>>>>>>>> 
>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>> pleasure to work with. I hope my last commits didn't give you
>>>>>>>> any additional work in your other projects? I did my best to
>>>>>>>> leave all the APIs alone.
>>>>>>>> 
>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>> suggest some kind of code review or something (I'm not used to
>>>>>>>> working in groups, but that seems like a nice thing to do),
>>>>>>>> since I've been piling on stuff. I did my best to keep
>>>>>>>> everything clean and in line with the spirit of the rest of the
>>>>>>>> code, but there are some areas where I'd like to have a second
>>>>>>>> opinion. Like with the code that is copied between the DOC and
>>>>>>>> JS emitters, seems there might be room for improvement there.
>>>>>>>> Also of note is the way I've implemented the AS emitting within
>>>>>>>> the MXML emitter, not really sure if I did the right thing
>>>>>>>> there. And finally (not really, but this is all I can think of
>>>>>>>> for now, after the marathon hacking I did today) there is the
>>>>>>>> whole "programming to interfaces, not implementations" part that we
> nearly adhere to, but not quite, we might have another look at that as well.
>>>>>>>> 
>>>>>>>> EdB
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>> <apache@teotigraphix.com <ma...@teotigraphix.com> > wrote:
>>>>>>>>> No thats not what I meant.
>>>>>>>>> 
>>>>>>>>> I am saying with the Randori project compiler, I have not had
>>>>>>>>> to
>>>>> touch the
>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
> code.
>>>>> And
>>>>>>>>> application code now.
>>>>>>>>> 
>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>> spaces. :)
>>>>>>>>> 
>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>> having to chase them right now.
>>>>>>>>> 
>>>>>>>>> Mike
>>>>> Alex Harui
>>>>> Flex SDK Team
>>>>> Adobe Systems, Inc.
>>>>> http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui>
>>>>> 
>>>>> 
>>> 
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui>
>>> 
>> 
>> 
>> 
>> --
>> Ix Multimedia Software
>> 
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>> 
>> T. 06-51952295
>> I. www.ixsoftware.nl <http://www.ixsoftware.nl>
> 
> 
> 
> --
> Ix Multimedia Software
> 
> Jan Luykenstraat 27
> 3521 VB Utrecht
> 
> T. 06-51952295
> I. www.ixsoftware.nl <http://www.ixsoftware.nl>
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
> 

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


RE: [FalconJx] progress update

Posted by Sugan Naicker <Su...@Dev-X.co.za>.
Hi Alex,

>> FlexJS doesn't work on IE yet.  On my list of things to do.

Great thanks for the feedback.

I tested your version on Firefox (V14.0.1) and it works, except for the
TRANSER button does not work. (Text typed into the Text Input box does not
transfer to text box above)

Regards,

Sugan Naicker
South Africa

-----Original Message-----
From: Alex Harui [mailto:aharui@adobe.com] 
Sent: 28 March 2013 09:09 PM
To: dev@flex.apache.org
Subject: Re: [FalconJx] progress update

FlexJS doesn't work on IE yet.  On my list of things to do.


On 3/28/13 11:55 AM, "Sugan Naicker" <Su...@Dev-X.co.za> wrote:

Hi,

Ran the following tests :

1) Firefox (V14.0.1) - works         (see pic below)


Issues :
1)      I found is that when you 'rapidly' click on the radio box 'text' in
quick succession, 'sometimes' the correct radio box does not get selected.
Example below - GREEN selected (and highlighted), but radio box not
activated.


2)      Clicking on the OK button takes some time before a value appears in
the text box. Note sure what is coded behind the OK button (if it is
fetching a value from web and returning value)


2) IE (V9.0.8112) - does not work  (see pic below)

                - Get "undefined" above OK button and in Text box
                - Radio and Check box are selectable
                - Button's are unresponsive
                - Clicking on AAPL, etc does not push value to text box

Regards,

Sugan Naicker
South Africa


-----Original Message-----
From: Erik de Bruin [mailto:erik@ixsoftware.nl]
Sent: 28 March 2013 06:24 PM
To: dev@flex.apache.org
Subject: Re: [FalconJx] progress update

And another update (things are going much better than I expected):
FalconJx can now emit a fully functional version of the FlexJSTest_again
demo application. You can see it in action here (provided you use Chrome or
Firefox, I just noticed):

http://people.apache.org/~erikdebruin/flexjs/
<http://people.apache.org/~erikdebruin/flexjs/>

Onwards and upwards ;-)

EdB


On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <erik@ixsoftware.nl
<ma...@ixsoftware.nl> > wrote:
> I'd have to look into it for specifics, but of the top of my head it 
> seems that this most depends on the implementation in the FlexJS JS 
> framework. Emitting the strings required by that framework should 
> really be easy enough. If needed we can "look forward" into AST to 
> look for binding information. I do this in several other places 
> already. Even the binding expressions shouldn't be too much of a 
> problem, again depending on how this will be handled by the JS 
> framework.
>
> EdB
>
>
>
> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <aharui@adobe.com
<ma...@adobe.com> > wrote:
>> [Bindable] results in extra codegen.  Binding expressions with {} is 
>> a whole other ball of work.
>>
>> I think in FalconJX you might have to modify the node tree in several 
>> places when you hit a [Bindable] node.
>>
>> It isn't working correctly in FalconJS either, but my "customer"
>> needs it so I'm hacking a fix.
>>
>>
>> On 3/27/13 1:28 PM, "Erik de Bruin" <erik@ixsoftware.nl
<ma...@ixsoftware.nl> > wrote:
>>
>>> No, not yet. How is this set up in FlexJS? I'm sure I can read 
>>> Metadata and Databinding information, so I guess it depends on the 
>>> requirements for the emitted JS if I can easily implement this ;-)
>>>
>>> EdB
>>>
>>>
>>>
>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>
>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>
>>>>
>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <apache@teotigraphix.com
<ma...@teotigraphix.com> > wrote:
>>>>
>>>>>
>>>>> Quoting Erik de Bruin <erik@ixsoftware.nl <ma...@ixsoftware.nl>
>:
>>>>>
>>>>>> Another one popped into my head just now: I have a gut feeling 
>>>>>> there is a bit of circular logic going on in the whole 'backend', 
>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the 
>>>>>> way the references to them are passed around as arguments in the 
>>>>>> constructors for the various classes. But I can't wrap around it 
>>>>>> well enough to figure out whether it's wrong and if so, what 
>>>>>> might be done about it. Don't get me wrong, it works well, it's 
>>>>>> just that it somehow isn't "elegant". And that's in no way a 
>>>>>> comment on the effectiveness or quality of your code, just 
>>>>>> something I thought I'd share and see what you think.
>>>>>
>>>>> Actually I think it works fine. The problem you are facing is with 
>>>>> the MXML emitter I am sure. This adds complexity to what you are 
>>>>> trying to accomplish and it is circular from the perspective of 
>>>>> using AS within MXML.
>>>>>
>>>>> There is a buffer writer(output stream), a writer, a visitor and
emitter.
>>>>>
>>>>> Each one takes a dependency of its parent. Trust me, if there is a 
>>>>> child that knows about its parent I am blind. Like I said, the 
>>>>> block walker is a visitor and the emitter is a visitor. You cannot 
>>>>> escape the fact there is recursion.
>>>>>
>>>>> If you can think of a more elegant way to set it up, by  all means 
>>>>> write a prototype. Remember, I wrote this with an atom bomb under 
>>>>> me and lighting in the sky, there may be parts that could be
logicalized.
>>>>>
>>>>> I have another full compiler in Randori that I am going to use as 
>>>>> a proof of concept with compiler plugins and my ASDoc compiler I
wrote.
>>>>> So I guess we both can experiment, we can agree to leave the core 
>>>>> alone for the time being.
>>>>>
>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin 
>>>>>> <erik@ixsoftware.nl <ma...@ixsoftware.nl> >
>>>> wrote:
>>>>>>> Mike,
>>>>>>>
>>>>>>> Just kidding ;-)
>>>>>>>
>>>>>>> I'm really happy with FalconJx, once you get to know it it's a 
>>>>>>> pleasure to work with. I hope my last commits didn't give you 
>>>>>>> any additional work in your other projects? I did my best to 
>>>>>>> leave all the APIs alone.
>>>>>>>
>>>>>>> There are plenty of TODOs in the code, and I would also like to 
>>>>>>> suggest some kind of code review or something (I'm not used to 
>>>>>>> working in groups, but that seems like a nice thing to do), 
>>>>>>> since I've been piling on stuff. I did my best to keep 
>>>>>>> everything clean and in line with the spirit of the rest of the 
>>>>>>> code, but there are some areas where I'd like to have a second 
>>>>>>> opinion. Like with the code that is copied between the DOC and 
>>>>>>> JS emitters, seems there might be room for improvement there.
>>>>>>> Also of note is the way I've implemented the AS emitting within 
>>>>>>> the MXML emitter, not really sure if I did the right thing 
>>>>>>> there. And finally (not really, but this is all I can think of 
>>>>>>> for now, after the marathon hacking I did today) there is the 
>>>>>>> whole "programming to interfaces, not implementations" part that we
nearly adhere to, but not quite, we might have another look at that as well.
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle 
>>>>>>> <apache@teotigraphix.com <ma...@teotigraphix.com> > wrote:
>>>>>>>> No thats not what I meant.
>>>>>>>>
>>>>>>>> I am saying with the Randori project compiler, I have not had 
>>>>>>>> to
>>>> touch the
>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
code.
>>>> And
>>>>>>>> application code now.
>>>>>>>>
>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>> spaces. :)
>>>>>>>>
>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not 
>>>>>>>> having to chase them right now.
>>>>>>>>
>>>>>>>> Mike
>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui>
>>>>
>>>>
>>
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui>
>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl <http://www.ixsoftware.nl>



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl <http://www.ixsoftware.nl>


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


Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
FlexJS doesn’t work on IE yet.  On my list of things to do.


On 3/28/13 11:55 AM, "Sugan Naicker" <Su...@Dev-X.co.za> wrote:

Hi,

Ran the following tests :

1) Firefox (V14.0.1) - works         (see pic below)


Issues :
1)      I found is that when you ‘rapidly’ click on the radio box ‘text’ in quick succession, ‘sometimes’ the correct radio box does not get selected.
Example below - GREEN selected (and highlighted), but radio box not activated.


2)      Clicking on the OK button takes some time before a value appears in the text box. Note sure what is coded behind the OK button (if it is fetching a value from web and returning value)


2) IE (V9.0.8112) - does not work  (see pic below)

                - Get “undefined” above OK button and in Text box
                - Radio and Check box are selectable
                - Button’s are unresponsive
                - Clicking on AAPL, etc does not push value to text box

Regards,

Sugan Naicker
South Africa


-----Original Message-----
From: Erik de Bruin [mailto:erik@ixsoftware.nl]
Sent: 28 March 2013 06:24 PM
To: dev@flex.apache.org
Subject: Re: [FalconJx] progress update

And another update (things are going much better than I expected):
FalconJx can now emit a fully functional version of the FlexJSTest_again demo application. You can see it in action here (provided you use Chrome or Firefox, I just noticed):

http://people.apache.org/~erikdebruin/flexjs/ <http://people.apache.org/~erikdebruin/flexjs/>

Onwards and upwards ;-)

EdB


On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <erik@ixsoftware.nl <ma...@ixsoftware.nl> > wrote:
> I'd have to look into it for specifics, but of the top of my head it
> seems that this most depends on the implementation in the FlexJS JS
> framework. Emitting the strings required by that framework should
> really be easy enough. If needed we can "look forward" into AST to
> look for binding information. I do this in several other places
> already. Even the binding expressions shouldn't be too much of a
> problem, again depending on how this will be handled by the JS
> framework.
>
> EdB
>
>
>
> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <aharui@adobe.com <ma...@adobe.com> > wrote:
>> [Bindable] results in extra codegen.  Binding expressions with {} is
>> a whole other ball of work.
>>
>> I think in FalconJX you might have to modify the node tree in several
>> places when you hit a [Bindable] node.
>>
>> It isn't working correctly in FalconJS either, but my "customer"
>> needs it so I'm hacking a fix.
>>
>>
>> On 3/27/13 1:28 PM, "Erik de Bruin" <erik@ixsoftware.nl <ma...@ixsoftware.nl> > wrote:
>>
>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>>> Metadata and Databinding information, so I guess it depends on the
>>> requirements for the emitted JS if I can easily implement this ;-)
>>>
>>> EdB
>>>
>>>
>>>
>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>
>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>
>>>>
>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <apache@teotigraphix.com <ma...@teotigraphix.com> > wrote:
>>>>
>>>>>
>>>>> Quoting Erik de Bruin <erik@ixsoftware.nl <ma...@ixsoftware.nl> >:
>>>>>
>>>>>> Another one popped into my head just now: I have a gut feeling
>>>>>> there is a bit of circular logic going on in the whole 'backend',
>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the
>>>>>> way the references to them are passed around as arguments in the
>>>>>> constructors for the various classes. But I can't wrap around it
>>>>>> well enough to figure out whether it's wrong and if so, what
>>>>>> might be done about it. Don't get me wrong, it works well, it's
>>>>>> just that it somehow isn't "elegant". And that's in no way a
>>>>>> comment on the effectiveness or quality of your code, just
>>>>>> something I thought I'd share and see what you think.
>>>>>
>>>>> Actually I think it works fine. The problem you are facing is with
>>>>> the MXML emitter I am sure. This adds complexity to what you are
>>>>> trying to accomplish and it is circular from the perspective of
>>>>> using AS within MXML.
>>>>>
>>>>> There is a buffer writer(output stream), a writer, a visitor and emitter.
>>>>>
>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>> child that knows about its parent I am blind. Like I said, the
>>>>> block walker is a visitor and the emitter is a visitor. You cannot
>>>>> escape the fact there is recursion.
>>>>>
>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>> write a prototype. Remember, I wrote this with an atom bomb under
>>>>> me and lighting in the sky, there may be parts that could be logicalized.
>>>>>
>>>>> I have another full compiler in Randori that I am going to use as
>>>>> a proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>> alone for the time being.
>>>>>
>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin
>>>>>> <erik@ixsoftware.nl <ma...@ixsoftware.nl> >
>>>> wrote:
>>>>>>> Mike,
>>>>>>>
>>>>>>> Just kidding ;-)
>>>>>>>
>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>> pleasure to work with. I hope my last commits didn't give you
>>>>>>> any additional work in your other projects? I did my best to
>>>>>>> leave all the APIs alone.
>>>>>>>
>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>> suggest some kind of code review or something (I'm not used to
>>>>>>> working in groups, but that seems like a nice thing to do),
>>>>>>> since I've been piling on stuff. I did my best to keep
>>>>>>> everything clean and in line with the spirit of the rest of the
>>>>>>> code, but there are some areas where I'd like to have a second
>>>>>>> opinion. Like with the code that is copied between the DOC and
>>>>>>> JS emitters, seems there might be room for improvement there.
>>>>>>> Also of note is the way I've implemented the AS emitting within
>>>>>>> the MXML emitter, not really sure if I did the right thing
>>>>>>> there. And finally (not really, but this is all I can think of
>>>>>>> for now, after the marathon hacking I did today) there is the
>>>>>>> whole "programming to interfaces, not implementations" part that we nearly adhere to, but not quite, we might have another look at that as well.
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>> <apache@teotigraphix.com <ma...@teotigraphix.com> > wrote:
>>>>>>>> No thats not what I meant.
>>>>>>>>
>>>>>>>> I am saying with the Randori project compiler, I have not had
>>>>>>>> to
>>>> touch the
>>>>>>>> core framework for weeks and it is compiling 1000's of lines of code.
>>>> And
>>>>>>>> application code now.
>>>>>>>>
>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>> spaces. :)
>>>>>>>>
>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>> having to chase them right now.
>>>>>>>>
>>>>>>>> Mike
>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui>
>>>>
>>>>
>>
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui>
>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl <http://www.ixsoftware.nl>



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl <http://www.ixsoftware.nl>


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

RE: [FalconJx] progress update

Posted by Sugan Naicker <Su...@Dev-X.co.za>.
Hi,

 

Ran the following tests :

 

1) Firefox (V14.0.1) - works         (see pic below)



 

Issues :  

1)      I found is that when you 'rapidly' click on the radio box 'text' in
quick succession, 'sometimes' the correct radio box does not get selected. 

Example below - GREEN selected (and highlighted), but radio box not
activated.

 



2)      Clicking on the OK button takes some time before a value appears in
the text box. Note sure what is coded behind the OK button (if it is
fetching a value from web and returning value)

 

 

2) IE (V9.0.8112) - does not work  (see pic below)



                - Get "undefined" above OK button and in Text box

                - Radio and Check box are selectable

                - Button's are unresponsive

                - Clicking on AAPL, etc does not push value to text box

 

Regards,

 

Sugan Naicker

South Africa

 

 

-----Original Message-----
From: Erik de Bruin [mailto:erik@ixsoftware.nl] 
Sent: 28 March 2013 06:24 PM
To: dev@flex.apache.org
Subject: Re: [FalconJx] progress update

 

And another update (things are going much better than I expected):

FalconJx can now emit a fully functional version of the FlexJSTest_again
demo application. You can see it in action here (provided you use Chrome or
Firefox, I just noticed):

 

 <http://people.apache.org/~erikdebruin/flexjs/>
http://people.apache.org/~erikdebruin/flexjs/

 

Onwards and upwards ;-)

 

EdB

 

 

On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin < <ma...@ixsoftware.nl>
erik@ixsoftware.nl> wrote:

> I'd have to look into it for specifics, but of the top of my head it 

> seems that this most depends on the implementation in the FlexJS JS 

> framework. Emitting the strings required by that framework should 

> really be easy enough. If needed we can "look forward" into AST to 

> look for binding information. I do this in several other places 

> already. Even the binding expressions shouldn't be too much of a 

> problem, again depending on how this will be handled by the JS 

> framework.

> 

> EdB

> 

> 

> 

> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui < <ma...@adobe.com>
aharui@adobe.com> wrote:

>> [Bindable] results in extra codegen.  Binding expressions with {} is 

>> a whole other ball of work.

>> 

>> I think in FalconJX you might have to modify the node tree in several 

>> places when you hit a [Bindable] node.

>> 

>> It isn't working correctly in FalconJS either, but my "customer" 

>> needs it so I'm hacking a fix.

>> 

>> 

>> On 3/27/13 1:28 PM, "Erik de Bruin" < <ma...@ixsoftware.nl>
erik@ixsoftware.nl> wrote:

>> 

>>> No, not yet. How is this set up in FlexJS? I'm sure I can read 

>>> Metadata and Databinding information, so I guess it depends on the 

>>> requirements for the emitted JS if I can easily implement this ;-)

>>> 

>>> EdB

>>> 

>>> 

>>> 

>>> On Wednesday, March 27, 2013, Alex Harui wrote:

>>> 

>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.

>>>> 

>>>> 

>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <
<ma...@teotigraphix.com> apache@teotigraphix.com> wrote:

>>>> 

>>>>> 

>>>>> Quoting Erik de Bruin < <ma...@ixsoftware.nl>
erik@ixsoftware.nl>:

>>>>> 

>>>>>> Another one popped into my head just now: I have a gut feeling 

>>>>>> there is a bit of circular logic going on in the whole 'backend', 

>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the 

>>>>>> way the references to them are passed around as arguments in the 

>>>>>> constructors for the various classes. But I can't wrap around it 

>>>>>> well enough to figure out whether it's wrong and if so, what 

>>>>>> might be done about it. Don't get me wrong, it works well, it's 

>>>>>> just that it somehow isn't "elegant". And that's in no way a 

>>>>>> comment on the effectiveness or quality of your code, just 

>>>>>> something I thought I'd share and see what you think.

>>>>> 

>>>>> Actually I think it works fine. The problem you are facing is with 

>>>>> the MXML emitter I am sure. This adds complexity to what you are 

>>>>> trying to accomplish and it is circular from the perspective of 

>>>>> using AS within MXML.

>>>>> 

>>>>> There is a buffer writer(output stream), a writer, a visitor and
emitter.

>>>>> 

>>>>> Each one takes a dependency of its parent. Trust me, if there is a 

>>>>> child that knows about its parent I am blind. Like I said, the 

>>>>> block walker is a visitor and the emitter is a visitor. You cannot 

>>>>> escape the fact there is recursion.

>>>>> 

>>>>> If you can think of a more elegant way to set it up, by  all means 

>>>>> write a prototype. Remember, I wrote this with an atom bomb under 

>>>>> me and lighting in the sky, there may be parts that could be
logicalized.

>>>>> 

>>>>> I have another full compiler in Randori that I am going to use as 

>>>>> a proof of concept with compiler plugins and my ASDoc compiler I
wrote.

>>>>> So I guess we both can experiment, we can agree to leave the core 

>>>>> alone for the time being.

>>>>> 

>>>>> 

>>>>>> EdB

>>>>>> 

>>>>>> 

>>>>>> 

>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin 

>>>>>> < <ma...@ixsoftware.nl> erik@ixsoftware.nl>

>>>> wrote:

>>>>>>> Mike,

>>>>>>> 

>>>>>>> Just kidding ;-)

>>>>>>> 

>>>>>>> I'm really happy with FalconJx, once you get to know it it's a 

>>>>>>> pleasure to work with. I hope my last commits didn't give you 

>>>>>>> any additional work in your other projects? I did my best to 

>>>>>>> leave all the APIs alone.

>>>>>>> 

>>>>>>> There are plenty of TODOs in the code, and I would also like to 

>>>>>>> suggest some kind of code review or something (I'm not used to 

>>>>>>> working in groups, but that seems like a nice thing to do), 

>>>>>>> since I've been piling on stuff. I did my best to keep 

>>>>>>> everything clean and in line with the spirit of the rest of the 

>>>>>>> code, but there are some areas where I'd like to have a second 

>>>>>>> opinion. Like with the code that is copied between the DOC and 

>>>>>>> JS emitters, seems there might be room for improvement there. 

>>>>>>> Also of note is the way I've implemented the AS emitting within 

>>>>>>> the MXML emitter, not really sure if I did the right thing 

>>>>>>> there. And finally (not really, but this is all I can think of 

>>>>>>> for now, after the marathon hacking I did today) there is the 

>>>>>>> whole "programming to interfaces, not implementations" part that we
nearly adhere to, but not quite, we might have another look at that as well.

>>>>>>> 

>>>>>>> EdB

>>>>>>> 

>>>>>>> 

>>>>>>> 

>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle 

>>>>>>> < <ma...@teotigraphix.com> apache@teotigraphix.com> wrote:

>>>>>>>> No thats not what I meant.

>>>>>>>> 

>>>>>>>> I am saying with the Randori project compiler, I have not had 

>>>>>>>> to

>>>> touch the

>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
code.

>>>> And

>>>>>>>> application code now.

>>>>>>>> 

>>>>>>>> What I meant to say was, the design keeps people in the correct

>>>> spaces. :)

>>>>>>>> 

>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not 

>>>>>>>> having to chase them right now.

>>>>>>>> 

>>>>>>>> Mike

>>>> Alex Harui

>>>> Flex SDK Team

>>>> Adobe Systems, Inc.

>>>>  <http://blogs.adobe.com/aharui> http://blogs.adobe.com/aharui

>>>> 

>>>> 

>> 

>> --

>> Alex Harui

>> Flex SDK Team

>> Adobe Systems, Inc.

>>  <http://blogs.adobe.com/aharui> http://blogs.adobe.com/aharui

>> 

> 

> 

> 

> --

> Ix Multimedia Software

> 

> Jan Luykenstraat 27

> 3521 VB Utrecht

> 

> T. 06-51952295

> I.  <http://www.ixsoftware.nl> www.ixsoftware.nl

 

 

 

--

Ix Multimedia Software

 

Jan Luykenstraat 27

3521 VB Utrecht

 

T. 06-51952295

I.  <http://www.ixsoftware.nl> www.ixsoftware.nl


Re: Google Closure Events (was Re: [FalconJx] progress update)

Posted by Erik de Bruin <er...@ixsoftware.nl>.
>> One certainly could. But I don't know jQuery and I do know the Closure tools.
>>
> I will choose not to interpret this as your "my way or the highway"
> declaration. :-)

Just pointing out my limitations :-P

EdB



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: Google Closure Events (was Re: [FalconJx] progress update)

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


On 3/31/13 7:46 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

>>> any day. And it's there for us to use, since we already require (pun
>>> intended) the Closure Library.
>> But one could use the same argument to say we should start with Jquery.
> 
> One certainly could. But I don't know jQuery and I do know the Closure tools.
> 
I will choose not to interpret this as your "my way or the highway"
declaration. :-)

I can certainly see that if I was to write a JS app that I would choose a
framework like Jquery or the closure library, but I see a different angle:
We are writing a parallel framework, so for me, I would rather use
addEventListener in both AS and JS and remember to use createProxy in JS
than use addEventListener in AS and listen() in JS or shim addEventListener
with listen() in AS.  I think for those debugging generated code it will be
easier to see addEventListener in there as well, even though it has that
createProxy added to it.  But that's just me.  And it still depends on if I
can get the current code to work on ie8 in a day or two.

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


Re: Google Closure Events (was Re: [FalconJx] progress update)

Posted by Erik de Bruin <er...@ixsoftware.nl>.
>> any day. And it's there for us to use, since we already require (pun
>> intended) the Closure Library.
> But one could use the same argument to say we should start with Jquery.

One certainly could. But I don't know jQuery and I do know the Closure tools.

EdB



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: Google Closure Events (was Re: [FalconJx] progress update)

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


On 3/31/13 12:36 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Ok, I agree on the minimalist approach very much, but that doesn't
> exclude the use of a large library (sounds silly, but read on).
> 
> On the merits of using 'goog' events: Gmail, Google Plus, Google Drive
> etc. This is a cross-platform, cross-browser, tremendously tested and
> proofed implementation. It drives some of what maybe the most used
> online applications. I'll take that over a "roll your own" solution
> any day. And it's there for us to use, since we already require (pun
> intended) the Closure Library.
But one could use the same argument to say we should start with Jquery.
> 
> As to the code bloat: looking at the file sizes in the events
> directory is plain silly. That only goes for the 'intermediate/debug'
> release anyway, where size and speed play second fiddle to readability
> and ease of debugging. For the release we use (in both FalconJS and
> FalconJx) the Google Closure Compiler in advanced mode. This is a true
> compiler. The resulting output of that compiler only contains classes
> and methods that are actually used by the code, unlike what minifiers
> do, those include all the code, just reworked to remove whitespace and
> refactored to replace long names.
> 
> I will build a FlexJS branch where I use the closure events so we can compare.
That would be great.  And like I said, maybe as I try to get IE8 working
I'll realize why the Google version has what it has.  For me, no matter who
else is using it and how well tested it is, I want to know what is in it and
that we aren't taking more than we need.


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


Re: Google Closure Events (was Re: [FalconJx] progress update)

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Ok, I agree on the minimalist approach very much, but that doesn't
exclude the use of a large library (sounds silly, but read on).

On the merits of using 'goog' events: Gmail, Google Plus, Google Drive
etc. This is a cross-platform, cross-browser, tremendously tested and
proofed implementation. It drives some of what maybe the most used
online applications. I'll take that over a "roll your own" solution
any day. And it's there for us to use, since we already require (pun
intended) the Closure Library.

As to the code bloat: looking at the file sizes in the events
directory is plain silly. That only goes for the 'intermediate/debug'
release anyway, where size and speed play second fiddle to readability
and ease of debugging. For the release we use (in both FalconJS and
FalconJx) the Google Closure Compiler in advanced mode. This is a true
compiler. The resulting output of that compiler only contains classes
and methods that are actually used by the code, unlike what minifiers
do, those include all the code, just reworked to remove whitespace and
refactored to replace long names.

I will build a FlexJS branch where I use the closure events so we can compare.

EdB



On Sun, Mar 31, 2013 at 8:11 AM, Alex Harui <ah...@adobe.com> wrote:
>
>
>
> On 3/30/13 10:39 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> Alex, just checking before I spend too much time on this: with FlexJS, is
>> it always going to be "your way or the highway"?
> I don't think so.   What gave you that impression?  If it was the tone of my
> last post, I apologize.  I am actually trying to start a discussion on
> technical merits.
>
> I do have a particular point of view.  I am a code minimalist.  I watched
> the current SDK get fatter and slower with all of this just-in-case code,
> and have helped dozens of folks try to optimize their apps after they wrote
> or added rich and powerful libraries and application frameworks that they
> didn't actually need. I definitely want to try to avoid that.
>
> I like to think I am open to input from others, but I am going to ask why
> your choice is the best choice.  When you suggested moving to base.js, I
> looked at that file and didn't see any obvious reason to not use it, and we
> are.
>
> If I had opened up the events folder in google closure library and it was
> one 10K file, I wouldn't have even looked inside it, but it was 41K and
> required a whole bunch of other files, and then I saw that the API was
> different from DOM Events.  I haven't tried it yet, but I still think it
> will not take that much code to handle IE8.  I know you're busy this week,
> so my trying to hack IE8 might show me the excellence of Google's library.
>
> Sorry if I seem too obstinate.  I definitely need everyone's help and input.
>
> -Alex
>
>>
>> EdB
>>
>>
>>
>> On Sunday, March 31, 2013, Alex Harui wrote:
>>
>>> I read up a little on Google Closure Events.  I was hoping to find some
>>> information on why it takes that much javascript to implement a brand new
>>> event model when it appears (at least from my perspective) that the only
>>> rogue browser is IE8.
>>>
>>> I think I'm going to forge ahead with my custom approximation of events in
>>> IE8 and maybe I'll discover why Google Closure Events are better.  I would
>>> rather use a DOM Events API surface since that's what AS has and folks are
>>> used to.
>>>
>>>
>>> On 3/30/13 9:15 AM, "Erik de Bruin" <erik@ixsoftware.nl <javascript:;>>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> From [1]: "Closure Library provides the advantage of a consistent
>>>> event model that works the same way in all browsers."
>>>>
>>>> And the GC Compiler takes care of any overhead, it can very
>>>> efficiently re-compile "goog" based Javascript. More so than "manual"
>>>> JS like FlexGlobals. And we're using the GC Library anyways.
>>>>
>>>> I plan to look at the "insides" of FlexJS Javascript code next week,
>>>> see what I can come up with. Maybe start a branch, we can do that
>>>> easily now in git :-P
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Sat, Mar 30, 2013 at 5:00 PM, Alex Harui <aharui@adobe.com<javascript:;>>
>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>> On 3/30/13 7:54 AM, "Erik de Bruin" <erik@ixsoftware.nl <javascript:;>>
>>> wrote:
>>>>>
>>>>>> I left out FlexGlobals on purpose, I plan to bring the Google Closure
>>>>>> way of dealing with events to FlexJS. The GC way is not dependent on
>>>>>> DOM based events and fits very snugly with the way Flex handles
>>>>>> events.
>>>>> BTW, do we need a DOM event for MouseEvents?
>>>>>
>>>>> Also, I was going to work on IE8 compatibility soon.  Does Google
>>> Closure
>>>>> events work well on ie8?  How much overhead is there for using it?
>>>>>
>>>>> --
>>>>> Alex Harui
>>>>> Flex SDK Team
>>>>> Adobe Systems, Inc.
>>>>> http://blogs.adobe.com/aharui
>>>>>
>>>>
>>>>
>>>
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui
>>>
>>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: Google Closure Events (was Re: [FalconJx] progress update)

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


On 3/30/13 10:39 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Alex, just checking before I spend too much time on this: with FlexJS, is
> it always going to be "your way or the highway"?
I don't think so.   What gave you that impression?  If it was the tone of my
last post, I apologize.  I am actually trying to start a discussion on
technical merits.

I do have a particular point of view.  I am a code minimalist.  I watched
the current SDK get fatter and slower with all of this just-in-case code,
and have helped dozens of folks try to optimize their apps after they wrote
or added rich and powerful libraries and application frameworks that they
didn't actually need. I definitely want to try to avoid that.

I like to think I am open to input from others, but I am going to ask why
your choice is the best choice.  When you suggested moving to base.js, I
looked at that file and didn't see any obvious reason to not use it, and we
are.

If I had opened up the events folder in google closure library and it was
one 10K file, I wouldn't have even looked inside it, but it was 41K and
required a whole bunch of other files, and then I saw that the API was
different from DOM Events.  I haven't tried it yet, but I still think it
will not take that much code to handle IE8.  I know you're busy this week,
so my trying to hack IE8 might show me the excellence of Google's library.

Sorry if I seem too obstinate.  I definitely need everyone's help and input.

-Alex

> 
> EdB
> 
> 
> 
> On Sunday, March 31, 2013, Alex Harui wrote:
> 
>> I read up a little on Google Closure Events.  I was hoping to find some
>> information on why it takes that much javascript to implement a brand new
>> event model when it appears (at least from my perspective) that the only
>> rogue browser is IE8.
>> 
>> I think I'm going to forge ahead with my custom approximation of events in
>> IE8 and maybe I'll discover why Google Closure Events are better.  I would
>> rather use a DOM Events API surface since that's what AS has and folks are
>> used to.
>> 
>> 
>> On 3/30/13 9:15 AM, "Erik de Bruin" <erik@ixsoftware.nl <javascript:;>>
>> wrote:
>> 
>>> Hi,
>>> 
>>> From [1]: "Closure Library provides the advantage of a consistent
>>> event model that works the same way in all browsers."
>>> 
>>> And the GC Compiler takes care of any overhead, it can very
>>> efficiently re-compile "goog" based Javascript. More so than "manual"
>>> JS like FlexGlobals. And we're using the GC Library anyways.
>>> 
>>> I plan to look at the "insides" of FlexJS Javascript code next week,
>>> see what I can come up with. Maybe start a branch, we can do that
>>> easily now in git :-P
>>> 
>>> EdB
>>> 
>>> 
>>> 
>>> On Sat, Mar 30, 2013 at 5:00 PM, Alex Harui <aharui@adobe.com<javascript:;>>
>> wrote:
>>>> 
>>>> 
>>>> 
>>>> On 3/30/13 7:54 AM, "Erik de Bruin" <erik@ixsoftware.nl <javascript:;>>
>> wrote:
>>>> 
>>>>> I left out FlexGlobals on purpose, I plan to bring the Google Closure
>>>>> way of dealing with events to FlexJS. The GC way is not dependent on
>>>>> DOM based events and fits very snugly with the way Flex handles
>>>>> events.
>>>> BTW, do we need a DOM event for MouseEvents?
>>>> 
>>>> Also, I was going to work on IE8 compatibility soon.  Does Google
>> Closure
>>>> events work well on ie8?  How much overhead is there for using it?
>>>> 
>>>> --
>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui
>>>> 
>>> 
>>> 
>> 
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
>> 

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


Re: Google Closure Events (was Re: [FalconJx] progress update)

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Alex, just checking before I spend too much time on this: with FlexJS, is
it always going to be "your way or the highway"?

EdB



On Sunday, March 31, 2013, Alex Harui wrote:

> I read up a little on Google Closure Events.  I was hoping to find some
> information on why it takes that much javascript to implement a brand new
> event model when it appears (at least from my perspective) that the only
> rogue browser is IE8.
>
> I think I'm going to forge ahead with my custom approximation of events in
> IE8 and maybe I'll discover why Google Closure Events are better.  I would
> rather use a DOM Events API surface since that's what AS has and folks are
> used to.
>
>
> On 3/30/13 9:15 AM, "Erik de Bruin" <erik@ixsoftware.nl <javascript:;>>
> wrote:
>
> > Hi,
> >
> > From [1]: "Closure Library provides the advantage of a consistent
> > event model that works the same way in all browsers."
> >
> > And the GC Compiler takes care of any overhead, it can very
> > efficiently re-compile "goog" based Javascript. More so than "manual"
> > JS like FlexGlobals. And we're using the GC Library anyways.
> >
> > I plan to look at the "insides" of FlexJS Javascript code next week,
> > see what I can come up with. Maybe start a branch, we can do that
> > easily now in git :-P
> >
> > EdB
> >
> >
> >
> > On Sat, Mar 30, 2013 at 5:00 PM, Alex Harui <aharui@adobe.com<javascript:;>>
> wrote:
> >>
> >>
> >>
> >> On 3/30/13 7:54 AM, "Erik de Bruin" <erik@ixsoftware.nl <javascript:;>>
> wrote:
> >>
> >>> I left out FlexGlobals on purpose, I plan to bring the Google Closure
> >>> way of dealing with events to FlexJS. The GC way is not dependent on
> >>> DOM based events and fits very snugly with the way Flex handles
> >>> events.
> >> BTW, do we need a DOM event for MouseEvents?
> >>
> >> Also, I was going to work on IE8 compatibility soon.  Does Google
> Closure
> >> events work well on ie8?  How much overhead is there for using it?
> >>
> >> --
> >> Alex Harui
> >> Flex SDK Team
> >> Adobe Systems, Inc.
> >> http://blogs.adobe.com/aharui
> >>
> >
> >
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>

-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Google Closure Events (was Re: [FalconJx] progress update)

Posted by Alex Harui <ah...@adobe.com>.
I read up a little on Google Closure Events.  I was hoping to find some
information on why it takes that much javascript to implement a brand new
event model when it appears (at least from my perspective) that the only
rogue browser is IE8.

I think I'm going to forge ahead with my custom approximation of events in
IE8 and maybe I'll discover why Google Closure Events are better.  I would
rather use a DOM Events API surface since that's what AS has and folks are
used to.


On 3/30/13 9:15 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Hi,
> 
> From [1]: "Closure Library provides the advantage of a consistent
> event model that works the same way in all browsers."
> 
> And the GC Compiler takes care of any overhead, it can very
> efficiently re-compile "goog" based Javascript. More so than "manual"
> JS like FlexGlobals. And we're using the GC Library anyways.
> 
> I plan to look at the "insides" of FlexJS Javascript code next week,
> see what I can come up with. Maybe start a branch, we can do that
> easily now in git :-P
> 
> EdB
> 
> 
> 
> On Sat, Mar 30, 2013 at 5:00 PM, Alex Harui <ah...@adobe.com> wrote:
>> 
>> 
>> 
>> On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>> 
>>> I left out FlexGlobals on purpose, I plan to bring the Google Closure
>>> way of dealing with events to FlexJS. The GC way is not dependent on
>>> DOM based events and fits very snugly with the way Flex handles
>>> events.
>> BTW, do we need a DOM event for MouseEvents?
>> 
>> Also, I was going to work on IE8 compatibility soon.  Does Google Closure
>> events work well on ie8?  How much overhead is there for using it?
>> 
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
> 
> 

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Hi,

>From [1]: "Closure Library provides the advantage of a consistent
event model that works the same way in all browsers."

And the GC Compiler takes care of any overhead, it can very
efficiently re-compile "goog" based Javascript. More so than "manual"
JS like FlexGlobals. And we're using the GC Library anyways.

I plan to look at the "insides" of FlexJS Javascript code next week,
see what I can come up with. Maybe start a branch, we can do that
easily now in git :-P

EdB



On Sat, Mar 30, 2013 at 5:00 PM, Alex Harui <ah...@adobe.com> wrote:
>
>
>
> On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> I left out FlexGlobals on purpose, I plan to bring the Google Closure
>> way of dealing with events to FlexJS. The GC way is not dependent on
>> DOM based events and fits very snugly with the way Flex handles
>> events.
> BTW, do we need a DOM event for MouseEvents?
>
> Also, I was going to work on IE8 compatibility soon.  Does Google Closure
> events work well on ie8?  How much overhead is there for using it?
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Om <bi...@gmail.com>.
Probably not related to what you guys are discussing, but Erik's latest
changes send to have caused the list to look more like a drop down list.
This used to work fine in both versions a couple of days ago.

Thanks,
Om
On Mar 30, 2013 9:34 AM, "Alex Harui" <ah...@adobe.com> wrote:

> No, because I ran the link to your app in the debugger in Safari and I get
> the exception.  I don't think the flash.*.* thing is involved in your
> version right?
>
> If you run http://people.apache.org/~erikdebruin/flexjs/ in the JS
> debugger
> it doesn't send exceptions to the console? And changing the selection in
> the
> dropdownlist changes the label and/or textarea?
>
> I'm offline for a bit.  I'll look into it more tonight.
>
>
> On 3/30/13 9:16 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
> > Did you try to put the flash.*.* thing back (revert your latest commit)?
> >
> > EdB
> >
> >
> >
> > On Sat, Mar 30, 2013 at 4:20 PM, Erik de Bruin <er...@ixsoftware.nl>
> wrote:
> >> Or, it might have something to do with your last ASJS commit... remove
> >> flash.*.* from implicit imports... If you revert that locally, does
> >> FalconJx work? It wasn't there yesterday, so that's the only
> >> difference in code between you and me.
> >>
> >> We need to set up functional testing for Falcon/FlexJS soon!
> >>
> >> EdB
> >>
> >>
> >>
> >> On Sat, Mar 30, 2013 at 4:15 PM, Erik de Bruin <er...@ixsoftware.nl>
> wrote:
> >>> Nope, Safari works well for me, and there doesn't need to be the extra
> >>> method in the main HTML anymore, I remember. Weird.
> >>>
> >>> EdB
> >>>
> >>>
> >>>
> >>> On Sat, Mar 30, 2013 at 4:13 PM, Erik de Bruin <er...@ixsoftware.nl>
> wrote:
> >>>> Maybe I'm doing something wrong... the example on my p.a.o works for
> you?
> >>>>
> >>>> http://people.apache.org/~erikdebruin/flexjs/
> >>>>
> >>>> Maybe try Chrome?
> >>>>
> >>>> EdB
> >>>>
> >>>>
> >>>>
> >>>> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com> wrote:
> >>>>> I'm not seeing anything like that in the HTML wrapper.  Safari is
> >>>>> definitely
> >>>>> throwing on exception on "new Event".  Any idea what I'm doing wrong?
> >>>>>
> >>>>>
> >>>>> On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
> >>>>>
> >>>>>> I left out FlexGlobals on purpose, I plan to bring the Google
> Closure
> >>>>>> way of dealing with events to FlexJS. The GC way is not dependent on
> >>>>>> DOM based events and fits very snugly with the way Flex handles
> >>>>>> events.
> >>>>>>
> >>>>>> In the mean time I've a method in the "main" HTML that is called
> Event
> >>>>>> and that passes the event through to FlexGlobals for now.
> >>>>>>
> >>>>>> EdB
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On Sat, Mar 30, 2013 at 3:47 PM, Alex Harui <ah...@adobe.com>
> wrote:
> >>>>>>> Hi Erik,
> >>>>>>>
> >>>>>>> I finally got time to try to switch over to FalconJX.  It produces
> js
> >>>>>>> files
> >>>>>>> and the app shows up, but the console shows an exception and the
> >>>>>>> interactivity of the application is mostly broken because the
> generated
> >>>>>>> js
> >>>>>>> code has snippets like this:
> >>>>>>>
> >>>>>>> models.MyModel.prototype.set_labelText = function(value) {
> >>>>>>>     var self = this;
> >>>>>>>     if (value != self._labelText) {
> >>>>>>>         self._labelText = value;
> >>>>>>>         self.dispatchEvent(new Event("labelTextChanged"));
> >>>>>>>     }
> >>>>>>> };
> >>>>>>>
> >>>>>>> In the FalconJS output, we are calling FlexGlobals.newObject
> because
> >>>>>>> Event
> >>>>>>> is a special class in the browser that can't be instantiated via
> "new"
> >>>>>>> and
> >>>>>>> FlexJS is using these DOM Events.
> >>>>>>>
> >>>>>>> Did I miss a flag, or can I go about trying to intercept these
> calls and
> >>>>>>> have them call FlexGlobals.newObject instead?
> >>>>>>>
> >>>>>>> -Alex
> >>>>>>>
> >>>>>>>
> >>>>>>> On 3/29/13 11:58 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
> >>>>>>>
> >>>>>>>> Ok, we're back in business! I think this time I have been working
> with
> >>>>>>>> the right version of FlexJS (the one with the timer and the drop
> down
> >>>>>>>> list?) and it looks to work as advertised:
> >>>>>>>>
> >>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
> >>>>>>>>
> >>>>>>>> Time to get packing for the long flight ;-)
> >>>>>>>>
> >>>>>>>> EdB
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On Fri, Mar 29, 2013 at 3:15 PM, Erik de Bruin <
> erik@ixsoftware.nl>
> >>>>>>>> wrote:
> >>>>>>>>> Ah, and there's plenty left for you to "learn" from :-)
> >>>>>>>>>
> >>>>>>>>> EdB
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com>
> wrote:
> >>>>>>>>>> No worries.  Might be a good way for me to learn how it works by
> >>>>>>>>>> getting
> >>>>>>>>>> it
> >>>>>>>>>> to work.
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl>
> wrote:
> >>>>>>>>>>
> >>>>>>>>>>> Uh oh... Turns out I was testing against an outdated ASJS lib
> >>>>>>>>>>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
> >>>>>>>>>>> iteration of FlexJS. Sorry about that. I will work on that
> today,
> >>>>>>>>>>> but
> >>>>>>>>>>> I don't have a lot of time, so it might be a while before I can
> >>>>>>>>>>> catch
> >>>>>>>>>>> up, due to next week's travel to the land of golden
> opportunity.
> >>>>>>>>>>>
> >>>>>>>>>>> EdB
> >>>>>>>>>>>
> >>>>>>>>>>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <
> erik@ixsoftware.nl>
> >>>>>>>>>>> wrote:
> >>>>>>>>>>>> And another update (things are going much better than I
> expected):
> >>>>>>>>>>>> FalconJx can now emit a fully functional version of the
> >>>>>>>>>>>> FlexJSTest_again demo application. You can see it in action
> here
> >>>>>>>>>>>> (provided you use Chrome or Firefox, I just noticed):
> >>>>>>>>>>>>
> >>>>>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
> >>>>>>>>>>>>
> >>>>>>>>>>>> Onwards and upwards ;-)
> >>>>>>>>>>>>
> >>>>>>>>>>>> EdB
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <
> erik@ixsoftware.nl>
> >>>>>>>>>>>> wrote:
> >>>>>>>>>>>> I'd have to look into it for specifics, but of the top of my
> head
> >>>>>>>>>>>> it
> >>>>>>>>>>>> seems that this most depends on the implementation in the
> FlexJS JS
> >>>>>>>>>>>> framework. Emitting the strings required by that framework
> should
> >>>>>>>>>>>> really be easy enough. If needed we can "look forward" into
> AST to
> >>>>>>>>>>>> look for binding information. I do this in several other
> places
> >>>>>>>>>>>> already. Even the binding expressions shouldn't be too much
> of a
> >>>>>>>>>>>> problem, again depending on how this will be handled by the JS
> >>>>>>>>>>>> framework.
> >>>>>>>>>>>>
> >>>>>>>>>>>> EdB
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <aharui@adobe.com
> >
> >>>>>>>>>>>> wrote:
> >>>>>>>>>>>> [Bindable] results in extra codegen.  Binding expressions
> with {}
> >>>>>>>>>>>> is a
> >>>>>>>>>>>> whole
> >>>>>>>>>>>> other ball of work.
> >>>>>>>>>>>>
> >>>>>>>>>>>> I think in FalconJX you might have to modify the node tree in
> >>>>>>>>>>>> several
> >>>>>>>>>>>> places
> >>>>>>>>>>>> when you hit a [Bindable] node.
> >>>>>>>>>>>>
> >>>>>>>>>>>> It isn't working correctly in FalconJS either, but my
> "customer"
> >>>>>>>>>>>> needs
> >>>>>>>>>>>> it
> >>>>>>>>>>>> so
> >>>>>>>>>>>> I'm hacking a fix.
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl>
> wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
> >>>>>>>>>>>> Metadata
> >>>>>>>>>>>> and
> >>>>>>>>>>>> Databinding information, so I guess it depends on the
> requirements
> >>>>>>>>>>>> for
> >>>>>>>>>>>> the
> >>>>>>>>>>>> emitted JS if I can easily implement this ;-)
> >>>>>>>>>>>>
> >>>>>>>>>>>> EdB
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <
> apache@teotigraphix.com>
> >>>>>>>>>>>> wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
> >>>>>>>>>>>>
> >>>>>>>>>>>> Another one popped into my head just now: I have a gut feeling
> >>>>>>>>>>>> there
> >>>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
> >>>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in
> the way
> >>>>>>>>>>>> the references to them are passed around as arguments in the
> >>>>>>>>>>>> constructors for the various classes. But I can't wrap around
> it
> >>>>>>>>>>>> well
> >>>>>>>>>>>> enough to figure out whether it's wrong and if so, what might
> be
> >>>>>>>>>>>> done
> >>>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
> >>>>>>>>>>>> somehow
> >>>>>>>>>>>> isn't "elegant". And that's in no way a comment on the
> >>>>>>>>>>>> effectiveness
> >>>>>>>>>>>> or quality of your code, just something I thought I'd share
> and see
> >>>>>>>>>>>> what you think.
> >>>>>>>>>>>>
> >>>>>>>>>>>> Actually I think it works fine. The problem you are facing is
> with
> >>>>>>>>>>>> the
> >>>>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are
> trying
> >>>>>>>>>>>> to
> >>>>>>>>>>>> accomplish and it is circular from the perspective of using AS
> >>>>>>>>>>>> within
> >>>>>>>>>>>> MXML.
> >>>>>>>>>>>>
> >>>>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor
> and
> >>>>>>>>>>>> emitter.
> >>>>>>>>>>>>
> >>>>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there
> is a
> >>>>>>>>>>>> child that knows about its parent I am blind. Like I said, the
> >>>>>>>>>>>> block
> >>>>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot
> escape
> >>>>>>>>>>>> the fact there is recursion.
> >>>>>>>>>>>>
> >>>>>>>>>>>> If you can think of a more elegant way to set it up, by  all
> means
> >>>>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb
> under
> >>>>>>>>>>>> me
> >>>>>>>>>>>> and lighting in the sky, there may be parts that could be
> >>>>>>>>>>>> logicalized.
> >>>>>>>>>>>>
> >>>>>>>>>>>> I have another full compiler in Randori that I am going to
> use as a
> >>>>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I
> >>>>>>>>>>>> wrote.
> >>>>>>>>>>>> So I guess we both can experiment, we can agree to leave the
> core
> >>>>>>>>>>>> alone for the time being.
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> EdB
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <
> erik@ixsoftware.nl>
> >>>>>>>>>>>> wrote:
> >>>>>>>>>>>> Mike,
> >>>>>>>>>>>>
> >>>>>>>>>>>> Just kidding ;-)
> >>>>>>>>>>>>
> >>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
> >>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you
> any
> >>>>>>>>>>>> additional work in your other projects? I did my best to
> leave all
> >>>>>>>>>>>> the
> >>>>>>>>>>>> APIs alone.
> >>>>>>>>>>>>
> >>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like
> to
> >>>>>>>>>>>> suggest some kind of code review or something (I'm not used to
> >>>>>>>>>>>> working
> >>>>>>>>>>>> in groups, but that seems like a nice thing to do), since
> I've been
> >>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and
> in line
> >>>>>>>>>>>> with the spirit of the rest of the code, but there are some
> areas
> >>>>>>>>>>>> where I'd like to have a second opinion. Like with the code
> that is
> >>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be
> room
> >>>>>>>>>>>> for
> >>>>>>>>>>>> improvement there. Also of note is the way I've implemented
> the AS
> >>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
> >>>>>>>>>>>> right
> >>>>>>>>>>>> thing there. And finally (not really, but this is all I can
> think
> >>>>>>>>>>>> of
> >>>>>>>>>>>> for now, after the marathon hacking I did today) there is the
> whole
> >>>>>>>>>>>> "programming to interfaces, not implementations" part that we
> >>>>>>>>>>>> nearly
> >>>>>>>>>>>> adhere to, but not quite, we might have another look at that
> as
> >>>>>>>>>>>> well.
> >>>>>>>>>>>>
> >>>>>>>>>>>> EdB
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
> >>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
> >>>>>>>>>>>> No thats not what I meant.
> >>>>>>>>>>>>
> >>>>>>>>>>>> I am saying with the Randori project compiler, I have not had
> to
> >>>>>>>>>>>> touch the
> >>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines
> of
> >>>>>>>>>>>> code.
> >>>>>>>>>>>> And
> >>>>>>>>>>>> application code now.
> >>>>>>>>>>>>
> >>>>>>>>>>>> What I meant to say was, the design keeps people in the
> correct
> >>>>>>>>>>>> spaces. :)
> >>>>>>>>>>>>
> >>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
> >>>>>>>>>>>> having to chase
> >>>>>>>>>>>> them right now.
> >>>>>>>>>>>>
> >>>>>>>>>>>> Mike
> >>>>>>>>>>>> Alex Harui
> >>>>>>>>>>>> Flex SDK Team
> >>>>>>>>>>>> Adobe Systems, Inc.
> >>>>>>>>>>>> http://blogs.adobe.com/aharui
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> --
> >>>>>>>>>>>> Alex Harui
> >>>>>>>>>>>> Flex SDK Team
> >>>>>>>>>>>> Adobe Systems, Inc.
> >>>>>>>>>>>> http://blogs.adobe.com/aharui
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> --
> >>>>>>>>>>>> Ix Multimedia Software
> >>>>>>>>>>>>
> >>>>>>>>>>>> Jan Luykenstraat 27
> >>>>>>>>>>>> 3521 VB Utrecht
> >>>>>>>>>>>>
> >>>>>>>>>>>> T. 06-51952295
> >>>>>>>>>>>> I. www.ixsoftware.nl
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> --
> >>>>>>>>>>>> Ix Multimedia Software
> >>>>>>>>>>>>
> >>>>>>>>>>>> Jan Luykenstraat 27
> >>>>>>>>>>>> 3521 VB Utrecht
> >>>>>>>>>>>>
> >>>>>>>>>>>> T. 06-51952295
> >>>>>>>>>>>> I. www.ixsoftware.nl
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> --
> >>>>>>>>>> Alex Harui
> >>>>>>>>>> Flex SDK Team
> >>>>>>>>>> Adobe Systems, Inc.
> >>>>>>>>>> http://blogs.adobe.com/aharui
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>> Ix Multimedia Software
> >>>>>>>>>
> >>>>>>>>> Jan Luykenstraat 27
> >>>>>>>>> 3521 VB Utrecht
> >>>>>>>>>
> >>>>>>>>> T. 06-51952295
> >>>>>>>>> I. www.ixsoftware.nl
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> Alex Harui
> >>>>>>> Flex SDK Team
> >>>>>>> Adobe Systems, Inc.
> >>>>>>> http://blogs.adobe.com/aharui
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> --
> >>>>> Alex Harui
> >>>>> Flex SDK Team
> >>>>> Adobe Systems, Inc.
> >>>>> http://blogs.adobe.com/aharui
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Ix Multimedia Software
> >>>>
> >>>> Jan Luykenstraat 27
> >>>> 3521 VB Utrecht
> >>>>
> >>>> T. 06-51952295
> >>>> I. www.ixsoftware.nl
> >>>
> >>>
> >>>
> >>> --
> >>> Ix Multimedia Software
> >>>
> >>> Jan Luykenstraat 27
> >>> 3521 VB Utrecht
> >>>
> >>> T. 06-51952295
> >>> I. www.ixsoftware.nl
> >>
> >>
> >>
> >> --
> >> Ix Multimedia Software
> >>
> >> Jan Luykenstraat 27
> >> 3521 VB Utrecht
> >>
> >> T. 06-51952295
> >> I. www.ixsoftware.nl
> >
> >
> >
> > --
> > Ix Multimedia Software
> >
> > Jan Luykenstraat 27
> > 3521 VB Utrecht
> >
> > T. 06-51952295
> > I. www.ixsoftware.nl
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>

Re: [FalconJx] progress update

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


On 3/31/13 8:05 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> I think WebKit might be solved by fully qualifying constructor calls.
> Should be easy enough to add to FalconJx.
I'm not sure about that.  In my older safari, you can't dispatch anything
other than the built-in Event from an HTMLElement.
> 
> EdB
> 


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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
I think WebKit might be solved by fully qualifying constructor calls.
Should be easy enough to add to FalconJx.

EdB



On Sunday, March 31, 2013, Alex Harui wrote:

> You're right it works much better in Chrome.  I guess later webkit must be
> able to resolve "new CustomEvent" to "new
> org.apache.flex.events.CustomEvent", and the HTTP DOM lets you dispatch
> something other than DOMEvent.
>
> I would think we need to support older webkit versions, though, so that
> brings us back to FlexGlobals or replacing the whole event system.
>
>
> On 3/31/13 7:39 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
> > Chrome (if it's up to date) should have the same webkit version as my
> > Safari 6 (I think), so if it's a version "problem", this should show
> > you in Chrome what I see in my Safari (and Chrome and Firefox, both on
> > OS X and WinXP/7).
> >
> > EdB
> >
> >
> >
> > On Sun, Mar 31, 2013 at 4:33 PM, Erik de Bruin <er...@ixsoftware.nl>
> wrote:
> >> My Safari is 6.0.3, the current version on OS X 10.8.3. I'm curious to
> >> hear how the app is functioning for you in Chrome?
> >>
> >> EdB
> >>
> >>
> >>
> >> On Sun, Mar 31, 2013 at 4:28 PM, Alex Harui <ah...@adobe.com> wrote:
> >>>
> >>>
> >>>
> >>> On 3/31/13 7:03 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
> >>>
> >>>> On selection from the dropdownlist it hits the breakpoint. Stepping
> >>>> into brings me to UIBase::dispatchEvent, where the only argument is a
> >>>> CustomEvent (so that was created properly, it seems) and then it
> >>>> enters the whole event chain that lead to the value of the
> >>>> dropdownlist being displayed in the textarea next to it.
> >>>>
> >>>> Is there a "goog.require('org.apache.flex.events.CustomEvent')" in
> >>>> your MyInitialView.js?
> >>> This is very strange.  Yes, I have the require for CustomEvent, but
> the code
> >>> "new CustomEvent()" throws that reference error because it, from my
> >>> understanding of JS, should not resolve.  At minimum, I think the code
> >>> should be "new org.apache.flex.events.CustomEvent".
> >>>
> >>> I'm on Mac Safari 5.1.7.  Are you on some newer version that resolves
> >>> functions/constructors more intelligently?
> >>>
> >>>>
> >>>> EdB
> >>>>
> >>>>
> >>>> On Sun, Mar 31, 2013 at 3:50 PM, Alex Harui <ah...@adobe.com> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>> On 3/31/13 6:33 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
> >>>>>
> >>>>>> In Safari, with the "error console" opened, I get the following
> >>>>>> "warning/message" (not an exception, as far as I can tell):
> >>>>>>
> >>>>>> event.layerX and event.layerY are broken and deprecated in WebKit.
> >>>>>> They will be removed from the engine in the near future.
> >>>>>>
> >>>>>> Is that what you are seeing as well? Or do you get another message?
> >>>>>>
> >>>>> No, haven't seen that.  You are right that the timer buttons work,
> but
> >>>>> Transfer doesn't and OK doesn't.
> >>>>>
> >>>>> Try this:
> >>>>> Set a breakpoint on MyInitialView.js on line 213 where it says "var
> self =
> >>>>> this = value".  The entire function starts on line 211 for me and
> looks
> >>>>> like
> >>>>> this:
> >>>>>
> >>>>> MyInitialView.prototype.$EH1 = function(event)
> >>>>> {
> >>>>> var self = this;
> >>>>> this.dispatchEvent(new CustomEvent('listChanged'));
> >>>>> };
> >>>>>
> >>>>> Pick from the dropdownlist and it should hit the breakpoint.  Now
> try to
> >>>>> step into the CustomEvent constructor.  For me, it doesn't go in and
> after
> >>>>> it stops running code, the console shows: "Reference Error: Can't
> find
> >>>>> variable: CustomEvent".
> >>>>>
> >>>>> What happens for you?
> >>>>>
> >>>>> --
> >>>>> Alex Harui
> >>>>> Flex SDK Team
> >>>>> Adobe Systems, Inc.
>


-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
You're right it works much better in Chrome.  I guess later webkit must be
able to resolve "new CustomEvent" to "new
org.apache.flex.events.CustomEvent", and the HTTP DOM lets you dispatch
something other than DOMEvent.

I would think we need to support older webkit versions, though, so that
brings us back to FlexGlobals or replacing the whole event system.


On 3/31/13 7:39 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Chrome (if it's up to date) should have the same webkit version as my
> Safari 6 (I think), so if it's a version "problem", this should show
> you in Chrome what I see in my Safari (and Chrome and Firefox, both on
> OS X and WinXP/7).
> 
> EdB
> 
> 
> 
> On Sun, Mar 31, 2013 at 4:33 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> My Safari is 6.0.3, the current version on OS X 10.8.3. I'm curious to
>> hear how the app is functioning for you in Chrome?
>> 
>> EdB
>> 
>> 
>> 
>> On Sun, Mar 31, 2013 at 4:28 PM, Alex Harui <ah...@adobe.com> wrote:
>>> 
>>> 
>>> 
>>> On 3/31/13 7:03 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>> 
>>>> On selection from the dropdownlist it hits the breakpoint. Stepping
>>>> into brings me to UIBase::dispatchEvent, where the only argument is a
>>>> CustomEvent (so that was created properly, it seems) and then it
>>>> enters the whole event chain that lead to the value of the
>>>> dropdownlist being displayed in the textarea next to it.
>>>> 
>>>> Is there a "goog.require('org.apache.flex.events.CustomEvent')" in
>>>> your MyInitialView.js?
>>> This is very strange.  Yes, I have the require for CustomEvent, but the code
>>> "new CustomEvent()" throws that reference error because it, from my
>>> understanding of JS, should not resolve.  At minimum, I think the code
>>> should be "new org.apache.flex.events.CustomEvent".
>>> 
>>> I'm on Mac Safari 5.1.7.  Are you on some newer version that resolves
>>> functions/constructors more intelligently?
>>> 
>>>> 
>>>> EdB
>>>> 
>>>> 
>>>> On Sun, Mar 31, 2013 at 3:50 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>> 
>>>>> 
>>>>> 
>>>>> On 3/31/13 6:33 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>> 
>>>>>> In Safari, with the "error console" opened, I get the following
>>>>>> "warning/message" (not an exception, as far as I can tell):
>>>>>> 
>>>>>> event.layerX and event.layerY are broken and deprecated in WebKit.
>>>>>> They will be removed from the engine in the near future.
>>>>>> 
>>>>>> Is that what you are seeing as well? Or do you get another message?
>>>>>> 
>>>>> No, haven't seen that.  You are right that the timer buttons work, but
>>>>> Transfer doesn't and OK doesn't.
>>>>> 
>>>>> Try this:
>>>>> Set a breakpoint on MyInitialView.js on line 213 where it says "var self =
>>>>> this = value".  The entire function starts on line 211 for me and looks
>>>>> like
>>>>> this:
>>>>> 
>>>>> MyInitialView.prototype.$EH1 = function(event)
>>>>> {
>>>>> var self = this;
>>>>> this.dispatchEvent(new CustomEvent('listChanged'));
>>>>> };
>>>>> 
>>>>> Pick from the dropdownlist and it should hit the breakpoint.  Now try to
>>>>> step into the CustomEvent constructor.  For me, it doesn't go in and after
>>>>> it stops running code, the console shows: "Reference Error: Can't find
>>>>> variable: CustomEvent".
>>>>> 
>>>>> What happens for you?
>>>>> 
>>>>> --
>>>>> Alex Harui
>>>>> Flex SDK Team
>>>>> Adobe Systems, Inc.
>>>>> http://blogs.adobe.com/aharui
>>>>> 
>>>> 
>>>> 
>>> 
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui
>>> 
>> 
>> 
>> 
>> --
>> Ix Multimedia Software
>> 
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>> 
>> T. 06-51952295
>> I. www.ixsoftware.nl
> 
> 

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Chrome (if it's up to date) should have the same webkit version as my
Safari 6 (I think), so if it's a version "problem", this should show
you in Chrome what I see in my Safari (and Chrome and Firefox, both on
OS X and WinXP/7).

EdB



On Sun, Mar 31, 2013 at 4:33 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> My Safari is 6.0.3, the current version on OS X 10.8.3. I'm curious to
> hear how the app is functioning for you in Chrome?
>
> EdB
>
>
>
> On Sun, Mar 31, 2013 at 4:28 PM, Alex Harui <ah...@adobe.com> wrote:
>>
>>
>>
>> On 3/31/13 7:03 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>
>>> On selection from the dropdownlist it hits the breakpoint. Stepping
>>> into brings me to UIBase::dispatchEvent, where the only argument is a
>>> CustomEvent (so that was created properly, it seems) and then it
>>> enters the whole event chain that lead to the value of the
>>> dropdownlist being displayed in the textarea next to it.
>>>
>>> Is there a "goog.require('org.apache.flex.events.CustomEvent')" in
>>> your MyInitialView.js?
>> This is very strange.  Yes, I have the require for CustomEvent, but the code
>> "new CustomEvent()" throws that reference error because it, from my
>> understanding of JS, should not resolve.  At minimum, I think the code
>> should be "new org.apache.flex.events.CustomEvent".
>>
>> I'm on Mac Safari 5.1.7.  Are you on some newer version that resolves
>> functions/constructors more intelligently?
>>
>>>
>>> EdB
>>>
>>>
>>> On Sun, Mar 31, 2013 at 3:50 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>
>>>>
>>>>
>>>> On 3/31/13 6:33 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>
>>>>> In Safari, with the "error console" opened, I get the following
>>>>> "warning/message" (not an exception, as far as I can tell):
>>>>>
>>>>> event.layerX and event.layerY are broken and deprecated in WebKit.
>>>>> They will be removed from the engine in the near future.
>>>>>
>>>>> Is that what you are seeing as well? Or do you get another message?
>>>>>
>>>> No, haven't seen that.  You are right that the timer buttons work, but
>>>> Transfer doesn't and OK doesn't.
>>>>
>>>> Try this:
>>>> Set a breakpoint on MyInitialView.js on line 213 where it says "var self =
>>>> this = value".  The entire function starts on line 211 for me and looks like
>>>> this:
>>>>
>>>> MyInitialView.prototype.$EH1 = function(event)
>>>> {
>>>> var self = this;
>>>> this.dispatchEvent(new CustomEvent('listChanged'));
>>>> };
>>>>
>>>> Pick from the dropdownlist and it should hit the breakpoint.  Now try to
>>>> step into the CustomEvent constructor.  For me, it doesn't go in and after
>>>> it stops running code, the console shows: "Reference Error: Can't find
>>>> variable: CustomEvent".
>>>>
>>>> What happens for you?
>>>>
>>>> --
>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui
>>>>
>>>
>>>
>>
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
My Safari is 6.0.3, the current version on OS X 10.8.3. I'm curious to
hear how the app is functioning for you in Chrome?

EdB



On Sun, Mar 31, 2013 at 4:28 PM, Alex Harui <ah...@adobe.com> wrote:
>
>
>
> On 3/31/13 7:03 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> On selection from the dropdownlist it hits the breakpoint. Stepping
>> into brings me to UIBase::dispatchEvent, where the only argument is a
>> CustomEvent (so that was created properly, it seems) and then it
>> enters the whole event chain that lead to the value of the
>> dropdownlist being displayed in the textarea next to it.
>>
>> Is there a "goog.require('org.apache.flex.events.CustomEvent')" in
>> your MyInitialView.js?
> This is very strange.  Yes, I have the require for CustomEvent, but the code
> "new CustomEvent()" throws that reference error because it, from my
> understanding of JS, should not resolve.  At minimum, I think the code
> should be "new org.apache.flex.events.CustomEvent".
>
> I'm on Mac Safari 5.1.7.  Are you on some newer version that resolves
> functions/constructors more intelligently?
>
>>
>> EdB
>>
>>
>> On Sun, Mar 31, 2013 at 3:50 PM, Alex Harui <ah...@adobe.com> wrote:
>>>
>>>
>>>
>>> On 3/31/13 6:33 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>
>>>> In Safari, with the "error console" opened, I get the following
>>>> "warning/message" (not an exception, as far as I can tell):
>>>>
>>>> event.layerX and event.layerY are broken and deprecated in WebKit.
>>>> They will be removed from the engine in the near future.
>>>>
>>>> Is that what you are seeing as well? Or do you get another message?
>>>>
>>> No, haven't seen that.  You are right that the timer buttons work, but
>>> Transfer doesn't and OK doesn't.
>>>
>>> Try this:
>>> Set a breakpoint on MyInitialView.js on line 213 where it says "var self =
>>> this = value".  The entire function starts on line 211 for me and looks like
>>> this:
>>>
>>> MyInitialView.prototype.$EH1 = function(event)
>>> {
>>> var self = this;
>>> this.dispatchEvent(new CustomEvent('listChanged'));
>>> };
>>>
>>> Pick from the dropdownlist and it should hit the breakpoint.  Now try to
>>> step into the CustomEvent constructor.  For me, it doesn't go in and after
>>> it stops running code, the console shows: "Reference Error: Can't find
>>> variable: CustomEvent".
>>>
>>> What happens for you?
>>>
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui
>>>
>>
>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

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


On 3/31/13 7:03 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> On selection from the dropdownlist it hits the breakpoint. Stepping
> into brings me to UIBase::dispatchEvent, where the only argument is a
> CustomEvent (so that was created properly, it seems) and then it
> enters the whole event chain that lead to the value of the
> dropdownlist being displayed in the textarea next to it.
> 
> Is there a "goog.require('org.apache.flex.events.CustomEvent')" in
> your MyInitialView.js?
This is very strange.  Yes, I have the require for CustomEvent, but the code
"new CustomEvent()" throws that reference error because it, from my
understanding of JS, should not resolve.  At minimum, I think the code
should be "new org.apache.flex.events.CustomEvent".

I'm on Mac Safari 5.1.7.  Are you on some newer version that resolves
functions/constructors more intelligently?

> 
> EdB
> 
> 
> On Sun, Mar 31, 2013 at 3:50 PM, Alex Harui <ah...@adobe.com> wrote:
>> 
>> 
>> 
>> On 3/31/13 6:33 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>> 
>>> In Safari, with the "error console" opened, I get the following
>>> "warning/message" (not an exception, as far as I can tell):
>>> 
>>> event.layerX and event.layerY are broken and deprecated in WebKit.
>>> They will be removed from the engine in the near future.
>>> 
>>> Is that what you are seeing as well? Or do you get another message?
>>> 
>> No, haven't seen that.  You are right that the timer buttons work, but
>> Transfer doesn't and OK doesn't.
>> 
>> Try this:
>> Set a breakpoint on MyInitialView.js on line 213 where it says "var self =
>> this = value".  The entire function starts on line 211 for me and looks like
>> this:
>> 
>> MyInitialView.prototype.$EH1 = function(event)
>> {
>> var self = this;
>> this.dispatchEvent(new CustomEvent('listChanged'));
>> };
>> 
>> Pick from the dropdownlist and it should hit the breakpoint.  Now try to
>> step into the CustomEvent constructor.  For me, it doesn't go in and after
>> it stops running code, the console shows: "Reference Error: Can't find
>> variable: CustomEvent".
>> 
>> What happens for you?
>> 
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
> 
> 

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
On selection from the dropdownlist it hits the breakpoint. Stepping
into brings me to UIBase::dispatchEvent, where the only argument is a
CustomEvent (so that was created properly, it seems) and then it
enters the whole event chain that lead to the value of the
dropdownlist being displayed in the textarea next to it.

Is there a "goog.require('org.apache.flex.events.CustomEvent')" in
your MyInitialView.js?

EdB


On Sun, Mar 31, 2013 at 3:50 PM, Alex Harui <ah...@adobe.com> wrote:
>
>
>
> On 3/31/13 6:33 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> In Safari, with the "error console" opened, I get the following
>> "warning/message" (not an exception, as far as I can tell):
>>
>> event.layerX and event.layerY are broken and deprecated in WebKit.
>> They will be removed from the engine in the near future.
>>
>> Is that what you are seeing as well? Or do you get another message?
>>
> No, haven't seen that.  You are right that the timer buttons work, but
> Transfer doesn't and OK doesn't.
>
> Try this:
> Set a breakpoint on MyInitialView.js on line 213 where it says "var self =
> this = value".  The entire function starts on line 211 for me and looks like
> this:
>
> MyInitialView.prototype.$EH1 = function(event)
> {
> var self = this;
> this.dispatchEvent(new CustomEvent('listChanged'));
> };
>
> Pick from the dropdownlist and it should hit the breakpoint.  Now try to
> step into the CustomEvent constructor.  For me, it doesn't go in and after
> it stops running code, the console shows: "Reference Error: Can't find
> variable: CustomEvent".
>
> What happens for you?
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

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


On 3/31/13 6:33 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> In Safari, with the "error console" opened, I get the following
> "warning/message" (not an exception, as far as I can tell):
> 
> event.layerX and event.layerY are broken and deprecated in WebKit.
> They will be removed from the engine in the near future.
> 
> Is that what you are seeing as well? Or do you get another message?
> 
No, haven't seen that.  You are right that the timer buttons work, but
Transfer doesn't and OK doesn't.

Try this:
Set a breakpoint on MyInitialView.js on line 213 where it says "var self =
this = value".  The entire function starts on line 211 for me and looks like
this:

MyInitialView.prototype.$EH1 = function(event)
{
var self = this;
this.dispatchEvent(new CustomEvent('listChanged'));
};

Pick from the dropdownlist and it should hit the breakpoint.  Now try to
step into the CustomEvent constructor.  For me, it doesn't go in and after
it stops running code, the console shows: "Reference Error: Can't find
variable: CustomEvent".

What happens for you?

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
In Safari, with the "error console" opened, I get the following
"warning/message" (not an exception, as far as I can tell):

event.layerX and event.layerY are broken and deprecated in WebKit.
They will be removed from the engine in the near future.

Is that what you are seeing as well? Or do you get another message?

EdB



On Sun, Mar 31, 2013 at 9:16 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> When I pick from the dropdown list, initially nothing happens. But
> when I then click OK, the currect stock price of the selected ticker
> symbol is displayed in the text entry on the right.
>
> I can't get the original FlexJS example to work in Flash Builder, so I
> can't check on the intended functionality. Clicking buttons does stuff
> in the JS FalconJx produced (start/stop timer, transfer text from
> entry to display etc.), so I figured events and stuff were working. If
> there is a specific functionality you're missing, maybe we can home in
> on that and see what's causing it.
>
> Also, more of relevance probably: I didn't tweak the JS output of
> FalconJx other than use 'goog.bind()' where appropriate and I didn't
> parse the "new WhatEver" object instantiation to the FlexGlobals
> implementation. I just left 'm be.
>
> EdB
>
>
>
> On Sun, Mar 31, 2013 at 8:12 AM, Alex Harui <ah...@adobe.com> wrote:
>> If I pick from the dropdown list, other things are supposed to update.  They
>> don't for me.  This is bizarre.  What code in your link supports "new
>> Event"?
>>
>>
>> On 3/30/13 10:42 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>
>>> Even on my iPhone all functionality of the demo app is working fine. What
>>> isn't working for you?
>>>
>>> EdB
>>>
>>>
>>>
>>> On Sunday, March 31, 2013, Alex Harui wrote:
>>>
>>>> I hit this link in Mac Safari:
>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>> I turn on JavaScript debugging.
>>>> I hit refresh on the address bar.
>>>> It halts on MyModel.js line 30.
>>>>
>>>> It doesn't do that for you?
>>>>
>>>>
>>>> On 3/30/13 10:33 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>
>>>>> Not at all. But I don't understand. The online example runs fine for me
>>>>> with full functionality and no exceptions or anything in the console.
>>>> I'll
>>>>> spend some time on this after the weekend.
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>>
>>>>> On Sunday, March 31, 2013, Alex Harui wrote:
>>>>>
>>>>>> I put in an Event and CustomEvent class in the html and got past the
>>>>>> exceptions, but it still craps out with another exception later in
>>>>>> dispatchEvent.  You would have had to override the dispatchEvent in
>>>>>> UIBase.as to ever see this app respond to a change in the dropdownlist.
>>>>>>
>>>>>> Do you have strong objections to going back to FlexGlobals so I can get
>>>>>> this
>>>>>> to run and discuss the event strategy later?
>>>>>>
>>>>>>
>>>>>> On 3/30/13 9:33 AM, "Alex Harui" <ah...@adobe.com> wrote:
>>>>>>
>>>>>>> No, because I ran the link to your app in the debugger in Safari and I
>>>>>> get
>>>>>>> the exception.  I don't think the flash.*.* thing is involved in your
>>>>>>> version right?
>>>>>>>
>>>>>>> If you run http://people.apache.org/~erikdebruin/flexjs/ in the JS
>>>>>> debugger
>>>>>>> it doesn't send exceptions to the console? And changing the selection
>>>> in
>>>>>> the
>>>>>>> dropdownlist changes the label and/or textarea?
>>>>>>>
>>>>>>> I'm offline for a bit.  I'll look into it more tonight.
>>>>>>>
>>>>>>>
>>>>>>> On 3/30/13 9:16 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>
>>>>>>>> Did you try to put the flash.*.* thing back (revert your latest
>>>> commit)?
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sat, Mar 30, 2013 at 4:20 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>>>> Or, it might have something to do with your last ASJS commit...
>>>> remove
>>>>>>>>> flash.*.* from implicit imports... If you revert that locally, does
>>>>>>>>> FalconJx work? It wasn't there yesterday, so that's the only
>>>>>>>>> difference in code between you and me.
>>>>>>>>>
>>>>>>>>> We need to set up functional testing for Falcon/FlexJS soon!
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Sat, Mar 30, 2013 at 4:15 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>>>>> Nope, Safari works well for me, and there doesn't need to be the
>>>> extra
>>>>>>>>>> method in the main HTML anymore, I remember. Weird.
>>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Sat, Mar 30, 2013 at 4:13 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>>>>>> Maybe I'm doing something wrong... the example on my p.a.o works
>>>> for
>>>>>> you?
>>>>>>>>>>>
>>>>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>>>>>
>>>>>>>>>>> Maybe try Chrome?
>>>>>>>>>>>
>>>>>>>>>>> EdB
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com>
>>>>>> wrote:
>>>>>>>>>>>> I'm not seeing anything like that in the HTML wrapper.  Safari is
>>>>>>>>>>>> definitely
>>>>>>>>>>>> throwing on exception on "new Event".  Any idea what I'm doing
>>>>>> wrong?
>>>>>>>>>>>>
>>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui
>>>>
>>>>
>>
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
When I pick from the dropdown list, initially nothing happens. But
when I then click OK, the currect stock price of the selected ticker
symbol is displayed in the text entry on the right.

I can't get the original FlexJS example to work in Flash Builder, so I
can't check on the intended functionality. Clicking buttons does stuff
in the JS FalconJx produced (start/stop timer, transfer text from
entry to display etc.), so I figured events and stuff were working. If
there is a specific functionality you're missing, maybe we can home in
on that and see what's causing it.

Also, more of relevance probably: I didn't tweak the JS output of
FalconJx other than use 'goog.bind()' where appropriate and I didn't
parse the "new WhatEver" object instantiation to the FlexGlobals
implementation. I just left 'm be.

EdB



On Sun, Mar 31, 2013 at 8:12 AM, Alex Harui <ah...@adobe.com> wrote:
> If I pick from the dropdown list, other things are supposed to update.  They
> don't for me.  This is bizarre.  What code in your link supports "new
> Event"?
>
>
> On 3/30/13 10:42 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> Even on my iPhone all functionality of the demo app is working fine. What
>> isn't working for you?
>>
>> EdB
>>
>>
>>
>> On Sunday, March 31, 2013, Alex Harui wrote:
>>
>>> I hit this link in Mac Safari:
>>> http://people.apache.org/~erikdebruin/flexjs/
>>> I turn on JavaScript debugging.
>>> I hit refresh on the address bar.
>>> It halts on MyModel.js line 30.
>>>
>>> It doesn't do that for you?
>>>
>>>
>>> On 3/30/13 10:33 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>
>>>> Not at all. But I don't understand. The online example runs fine for me
>>>> with full functionality and no exceptions or anything in the console.
>>> I'll
>>>> spend some time on this after the weekend.
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Sunday, March 31, 2013, Alex Harui wrote:
>>>>
>>>>> I put in an Event and CustomEvent class in the html and got past the
>>>>> exceptions, but it still craps out with another exception later in
>>>>> dispatchEvent.  You would have had to override the dispatchEvent in
>>>>> UIBase.as to ever see this app respond to a change in the dropdownlist.
>>>>>
>>>>> Do you have strong objections to going back to FlexGlobals so I can get
>>>>> this
>>>>> to run and discuss the event strategy later?
>>>>>
>>>>>
>>>>> On 3/30/13 9:33 AM, "Alex Harui" <ah...@adobe.com> wrote:
>>>>>
>>>>>> No, because I ran the link to your app in the debugger in Safari and I
>>>>> get
>>>>>> the exception.  I don't think the flash.*.* thing is involved in your
>>>>>> version right?
>>>>>>
>>>>>> If you run http://people.apache.org/~erikdebruin/flexjs/ in the JS
>>>>> debugger
>>>>>> it doesn't send exceptions to the console? And changing the selection
>>> in
>>>>> the
>>>>>> dropdownlist changes the label and/or textarea?
>>>>>>
>>>>>> I'm offline for a bit.  I'll look into it more tonight.
>>>>>>
>>>>>>
>>>>>> On 3/30/13 9:16 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>
>>>>>>> Did you try to put the flash.*.* thing back (revert your latest
>>> commit)?
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sat, Mar 30, 2013 at 4:20 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>> wrote:
>>>>>>>> Or, it might have something to do with your last ASJS commit...
>>> remove
>>>>>>>> flash.*.* from implicit imports... If you revert that locally, does
>>>>>>>> FalconJx work? It wasn't there yesterday, so that's the only
>>>>>>>> difference in code between you and me.
>>>>>>>>
>>>>>>>> We need to set up functional testing for Falcon/FlexJS soon!
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sat, Mar 30, 2013 at 4:15 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>> wrote:
>>>>>>>>> Nope, Safari works well for me, and there doesn't need to be the
>>> extra
>>>>>>>>> method in the main HTML anymore, I remember. Weird.
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Sat, Mar 30, 2013 at 4:13 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>> wrote:
>>>>>>>>>> Maybe I'm doing something wrong... the example on my p.a.o works
>>> for
>>>>> you?
>>>>>>>>>>
>>>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>>>>
>>>>>>>>>> Maybe try Chrome?
>>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com>
>>>>> wrote:
>>>>>>>>>>> I'm not seeing anything like that in the HTML wrapper.  Safari is
>>>>>>>>>>> definitely
>>>>>>>>>>> throwing on exception on "new Event".  Any idea what I'm doing
>>>>> wrong?
>>>>>>>>>>>
>>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui
>>>
>>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
If I pick from the dropdown list, other things are supposed to update.  They
don't for me.  This is bizarre.  What code in your link supports "new
Event"?


On 3/30/13 10:42 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Even on my iPhone all functionality of the demo app is working fine. What
> isn't working for you?
> 
> EdB
> 
> 
> 
> On Sunday, March 31, 2013, Alex Harui wrote:
> 
>> I hit this link in Mac Safari:
>> http://people.apache.org/~erikdebruin/flexjs/
>> I turn on JavaScript debugging.
>> I hit refresh on the address bar.
>> It halts on MyModel.js line 30.
>> 
>> It doesn't do that for you?
>> 
>> 
>> On 3/30/13 10:33 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>> 
>>> Not at all. But I don't understand. The online example runs fine for me
>>> with full functionality and no exceptions or anything in the console.
>> I'll
>>> spend some time on this after the weekend.
>>> 
>>> EdB
>>> 
>>> 
>>> 
>>> On Sunday, March 31, 2013, Alex Harui wrote:
>>> 
>>>> I put in an Event and CustomEvent class in the html and got past the
>>>> exceptions, but it still craps out with another exception later in
>>>> dispatchEvent.  You would have had to override the dispatchEvent in
>>>> UIBase.as to ever see this app respond to a change in the dropdownlist.
>>>> 
>>>> Do you have strong objections to going back to FlexGlobals so I can get
>>>> this
>>>> to run and discuss the event strategy later?
>>>> 
>>>> 
>>>> On 3/30/13 9:33 AM, "Alex Harui" <ah...@adobe.com> wrote:
>>>> 
>>>>> No, because I ran the link to your app in the debugger in Safari and I
>>>> get
>>>>> the exception.  I don't think the flash.*.* thing is involved in your
>>>>> version right?
>>>>> 
>>>>> If you run http://people.apache.org/~erikdebruin/flexjs/ in the JS
>>>> debugger
>>>>> it doesn't send exceptions to the console? And changing the selection
>> in
>>>> the
>>>>> dropdownlist changes the label and/or textarea?
>>>>> 
>>>>> I'm offline for a bit.  I'll look into it more tonight.
>>>>> 
>>>>> 
>>>>> On 3/30/13 9:16 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>> 
>>>>>> Did you try to put the flash.*.* thing back (revert your latest
>> commit)?
>>>>>> 
>>>>>> EdB
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Sat, Mar 30, 2013 at 4:20 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>> wrote:
>>>>>>> Or, it might have something to do with your last ASJS commit...
>> remove
>>>>>>> flash.*.* from implicit imports... If you revert that locally, does
>>>>>>> FalconJx work? It wasn't there yesterday, so that's the only
>>>>>>> difference in code between you and me.
>>>>>>> 
>>>>>>> We need to set up functional testing for Falcon/FlexJS soon!
>>>>>>> 
>>>>>>> EdB
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On Sat, Mar 30, 2013 at 4:15 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>> wrote:
>>>>>>>> Nope, Safari works well for me, and there doesn't need to be the
>> extra
>>>>>>>> method in the main HTML anymore, I remember. Weird.
>>>>>>>> 
>>>>>>>> EdB
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Sat, Mar 30, 2013 at 4:13 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>> wrote:
>>>>>>>>> Maybe I'm doing something wrong... the example on my p.a.o works
>> for
>>>> you?
>>>>>>>>> 
>>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>>> 
>>>>>>>>> Maybe try Chrome?
>>>>>>>>> 
>>>>>>>>> EdB
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com>
>>>> wrote:
>>>>>>>>>> I'm not seeing anything like that in the HTML wrapper.  Safari is
>>>>>>>>>> definitely
>>>>>>>>>> throwing on exception on "new Event".  Any idea what I'm doing
>>>> wrong?
>>>>>>>>>> 
>>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
>> 

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Even on my iPhone all functionality of the demo app is working fine. What
isn't working for you?

EdB



On Sunday, March 31, 2013, Alex Harui wrote:

> I hit this link in Mac Safari:
> http://people.apache.org/~erikdebruin/flexjs/
> I turn on JavaScript debugging.
> I hit refresh on the address bar.
> It halts on MyModel.js line 30.
>
> It doesn't do that for you?
>
>
> On 3/30/13 10:33 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
> > Not at all. But I don't understand. The online example runs fine for me
> > with full functionality and no exceptions or anything in the console.
> I'll
> > spend some time on this after the weekend.
> >
> > EdB
> >
> >
> >
> > On Sunday, March 31, 2013, Alex Harui wrote:
> >
> >> I put in an Event and CustomEvent class in the html and got past the
> >> exceptions, but it still craps out with another exception later in
> >> dispatchEvent.  You would have had to override the dispatchEvent in
> >> UIBase.as to ever see this app respond to a change in the dropdownlist.
> >>
> >> Do you have strong objections to going back to FlexGlobals so I can get
> >> this
> >> to run and discuss the event strategy later?
> >>
> >>
> >> On 3/30/13 9:33 AM, "Alex Harui" <ah...@adobe.com> wrote:
> >>
> >>> No, because I ran the link to your app in the debugger in Safari and I
> >> get
> >>> the exception.  I don't think the flash.*.* thing is involved in your
> >>> version right?
> >>>
> >>> If you run http://people.apache.org/~erikdebruin/flexjs/ in the JS
> >> debugger
> >>> it doesn't send exceptions to the console? And changing the selection
> in
> >> the
> >>> dropdownlist changes the label and/or textarea?
> >>>
> >>> I'm offline for a bit.  I'll look into it more tonight.
> >>>
> >>>
> >>> On 3/30/13 9:16 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
> >>>
> >>>> Did you try to put the flash.*.* thing back (revert your latest
> commit)?
> >>>>
> >>>> EdB
> >>>>
> >>>>
> >>>>
> >>>> On Sat, Mar 30, 2013 at 4:20 PM, Erik de Bruin <er...@ixsoftware.nl>
> >> wrote:
> >>>>> Or, it might have something to do with your last ASJS commit...
> remove
> >>>>> flash.*.* from implicit imports... If you revert that locally, does
> >>>>> FalconJx work? It wasn't there yesterday, so that's the only
> >>>>> difference in code between you and me.
> >>>>>
> >>>>> We need to set up functional testing for Falcon/FlexJS soon!
> >>>>>
> >>>>> EdB
> >>>>>
> >>>>>
> >>>>>
> >>>>> On Sat, Mar 30, 2013 at 4:15 PM, Erik de Bruin <er...@ixsoftware.nl>
> >> wrote:
> >>>>>> Nope, Safari works well for me, and there doesn't need to be the
> extra
> >>>>>> method in the main HTML anymore, I remember. Weird.
> >>>>>>
> >>>>>> EdB
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On Sat, Mar 30, 2013 at 4:13 PM, Erik de Bruin <er...@ixsoftware.nl>
> >> wrote:
> >>>>>>> Maybe I'm doing something wrong... the example on my p.a.o works
> for
> >> you?
> >>>>>>>
> >>>>>>> http://people.apache.org/~erikdebruin/flexjs/
> >>>>>>>
> >>>>>>> Maybe try Chrome?
> >>>>>>>
> >>>>>>> EdB
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com>
> >> wrote:
> >>>>>>>> I'm not seeing anything like that in the HTML wrapper.  Safari is
> >>>>>>>> definitely
> >>>>>>>> throwing on exception on "new Event".  Any idea what I'm doing
> >> wrong?
> >>>>>>>>
> >Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>

-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
I hit this link in Mac Safari: http://people.apache.org/~erikdebruin/flexjs/
I turn on JavaScript debugging.
I hit refresh on the address bar.
It halts on MyModel.js line 30.

It doesn't do that for you?


On 3/30/13 10:33 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Not at all. But I don't understand. The online example runs fine for me
> with full functionality and no exceptions or anything in the console. I'll
> spend some time on this after the weekend.
> 
> EdB
> 
> 
> 
> On Sunday, March 31, 2013, Alex Harui wrote:
> 
>> I put in an Event and CustomEvent class in the html and got past the
>> exceptions, but it still craps out with another exception later in
>> dispatchEvent.  You would have had to override the dispatchEvent in
>> UIBase.as to ever see this app respond to a change in the dropdownlist.
>> 
>> Do you have strong objections to going back to FlexGlobals so I can get
>> this
>> to run and discuss the event strategy later?
>> 
>> 
>> On 3/30/13 9:33 AM, "Alex Harui" <ah...@adobe.com> wrote:
>> 
>>> No, because I ran the link to your app in the debugger in Safari and I
>> get
>>> the exception.  I don't think the flash.*.* thing is involved in your
>>> version right?
>>> 
>>> If you run http://people.apache.org/~erikdebruin/flexjs/ in the JS
>> debugger
>>> it doesn't send exceptions to the console? And changing the selection in
>> the
>>> dropdownlist changes the label and/or textarea?
>>> 
>>> I'm offline for a bit.  I'll look into it more tonight.
>>> 
>>> 
>>> On 3/30/13 9:16 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>> 
>>>> Did you try to put the flash.*.* thing back (revert your latest commit)?
>>>> 
>>>> EdB
>>>> 
>>>> 
>>>> 
>>>> On Sat, Mar 30, 2013 at 4:20 PM, Erik de Bruin <er...@ixsoftware.nl>
>> wrote:
>>>>> Or, it might have something to do with your last ASJS commit... remove
>>>>> flash.*.* from implicit imports... If you revert that locally, does
>>>>> FalconJx work? It wasn't there yesterday, so that's the only
>>>>> difference in code between you and me.
>>>>> 
>>>>> We need to set up functional testing for Falcon/FlexJS soon!
>>>>> 
>>>>> EdB
>>>>> 
>>>>> 
>>>>> 
>>>>> On Sat, Mar 30, 2013 at 4:15 PM, Erik de Bruin <er...@ixsoftware.nl>
>> wrote:
>>>>>> Nope, Safari works well for me, and there doesn't need to be the extra
>>>>>> method in the main HTML anymore, I remember. Weird.
>>>>>> 
>>>>>> EdB
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Sat, Mar 30, 2013 at 4:13 PM, Erik de Bruin <er...@ixsoftware.nl>
>> wrote:
>>>>>>> Maybe I'm doing something wrong... the example on my p.a.o works for
>> you?
>>>>>>> 
>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>> 
>>>>>>> Maybe try Chrome?
>>>>>>> 
>>>>>>> EdB
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com>
>> wrote:
>>>>>>>> I'm not seeing anything like that in the HTML wrapper.  Safari is
>>>>>>>> definitely
>>>>>>>> throwing on exception on "new Event".  Any idea what I'm doing
>> wrong?
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>> 
>>>>>>>>> I left out FlexGlobals on purpose, I plan to bring the Google
>> Closure
>>>>>>>>> way of dealing with events to FlexJS. The GC way is not dependent
>> on
>>>>>>>>> DOM based events and fits very snugly with the way Flex handles
>>>>>>>>> events.
>>>>>>>>> 
>>>>>>>>> In the mean time I've a method in the "main" HTML that is called
>> Event
>>>>>>>>> and that passes the event through to FlexGlobals for now.
>>>>>>>>> 
>>>>>>>>> EdB
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On Sat, Mar 30, 2013 at 3:47 PM, Alex Harui <ah...@adobe.com>
>> wrote:
>>>>>>>>>> Hi Erik,
>>>>>>>>>> 
>>>>>>>>>> I finally got time to try to switch over to FalconJX.  It
>> produces js
>>>>>>>>>> files
>>>>>>>>>> and the app shows up, but the console shows an exception and the
>>>>>>>>>> interactivity of the application is mostly broken because the
>> generated
>> 
> 

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Not at all. But I don't understand. The online example runs fine for me
with full functionality and no exceptions or anything in the console. I'll
spend some time on this after the weekend.

EdB



On Sunday, March 31, 2013, Alex Harui wrote:

> I put in an Event and CustomEvent class in the html and got past the
> exceptions, but it still craps out with another exception later in
> dispatchEvent.  You would have had to override the dispatchEvent in
> UIBase.as to ever see this app respond to a change in the dropdownlist.
>
> Do you have strong objections to going back to FlexGlobals so I can get
> this
> to run and discuss the event strategy later?
>
>
> On 3/30/13 9:33 AM, "Alex Harui" <ah...@adobe.com> wrote:
>
> > No, because I ran the link to your app in the debugger in Safari and I
> get
> > the exception.  I don't think the flash.*.* thing is involved in your
> > version right?
> >
> > If you run http://people.apache.org/~erikdebruin/flexjs/ in the JS
> debugger
> > it doesn't send exceptions to the console? And changing the selection in
> the
> > dropdownlist changes the label and/or textarea?
> >
> > I'm offline for a bit.  I'll look into it more tonight.
> >
> >
> > On 3/30/13 9:16 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
> >
> >> Did you try to put the flash.*.* thing back (revert your latest commit)?
> >>
> >> EdB
> >>
> >>
> >>
> >> On Sat, Mar 30, 2013 at 4:20 PM, Erik de Bruin <er...@ixsoftware.nl>
> wrote:
> >>> Or, it might have something to do with your last ASJS commit... remove
> >>> flash.*.* from implicit imports... If you revert that locally, does
> >>> FalconJx work? It wasn't there yesterday, so that's the only
> >>> difference in code between you and me.
> >>>
> >>> We need to set up functional testing for Falcon/FlexJS soon!
> >>>
> >>> EdB
> >>>
> >>>
> >>>
> >>> On Sat, Mar 30, 2013 at 4:15 PM, Erik de Bruin <er...@ixsoftware.nl>
> wrote:
> >>>> Nope, Safari works well for me, and there doesn't need to be the extra
> >>>> method in the main HTML anymore, I remember. Weird.
> >>>>
> >>>> EdB
> >>>>
> >>>>
> >>>>
> >>>> On Sat, Mar 30, 2013 at 4:13 PM, Erik de Bruin <er...@ixsoftware.nl>
> wrote:
> >>>>> Maybe I'm doing something wrong... the example on my p.a.o works for
> you?
> >>>>>
> >>>>> http://people.apache.org/~erikdebruin/flexjs/
> >>>>>
> >>>>> Maybe try Chrome?
> >>>>>
> >>>>> EdB
> >>>>>
> >>>>>
> >>>>>
> >>>>> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com>
> wrote:
> >>>>>> I'm not seeing anything like that in the HTML wrapper.  Safari is
> >>>>>> definitely
> >>>>>> throwing on exception on "new Event".  Any idea what I'm doing
> wrong?
> >>>>>>
> >>>>>>
> >>>>>> On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
> >>>>>>
> >>>>>>> I left out FlexGlobals on purpose, I plan to bring the Google
> Closure
> >>>>>>> way of dealing with events to FlexJS. The GC way is not dependent
> on
> >>>>>>> DOM based events and fits very snugly with the way Flex handles
> >>>>>>> events.
> >>>>>>>
> >>>>>>> In the mean time I've a method in the "main" HTML that is called
> Event
> >>>>>>> and that passes the event through to FlexGlobals for now.
> >>>>>>>
> >>>>>>> EdB
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> On Sat, Mar 30, 2013 at 3:47 PM, Alex Harui <ah...@adobe.com>
> wrote:
> >>>>>>>> Hi Erik,
> >>>>>>>>
> >>>>>>>> I finally got time to try to switch over to FalconJX.  It
> produces js
> >>>>>>>> files
> >>>>>>>> and the app shows up, but the console shows an exception and the
> >>>>>>>> interactivity of the application is mostly broken because the
> generated
>


-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
I put in an Event and CustomEvent class in the html and got past the
exceptions, but it still craps out with another exception later in
dispatchEvent.  You would have had to override the dispatchEvent in
UIBase.as to ever see this app respond to a change in the dropdownlist.

Do you have strong objections to going back to FlexGlobals so I can get this
to run and discuss the event strategy later?


On 3/30/13 9:33 AM, "Alex Harui" <ah...@adobe.com> wrote:

> No, because I ran the link to your app in the debugger in Safari and I get
> the exception.  I don't think the flash.*.* thing is involved in your
> version right?
>
> If you run http://people.apache.org/~erikdebruin/flexjs/ in the JS debugger
> it doesn't send exceptions to the console? And changing the selection in the
> dropdownlist changes the label and/or textarea?
>
> I'm offline for a bit.  I'll look into it more tonight.
>
>
> On 3/30/13 9:16 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> Did you try to put the flash.*.* thing back (revert your latest commit)?
>>
>> EdB
>>
>>
>>
>> On Sat, Mar 30, 2013 at 4:20 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>> Or, it might have something to do with your last ASJS commit... remove
>>> flash.*.* from implicit imports... If you revert that locally, does
>>> FalconJx work? It wasn't there yesterday, so that's the only
>>> difference in code between you and me.
>>>
>>> We need to set up functional testing for Falcon/FlexJS soon!
>>>
>>> EdB
>>>
>>>
>>>
>>> On Sat, Mar 30, 2013 at 4:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>> Nope, Safari works well for me, and there doesn't need to be the extra
>>>> method in the main HTML anymore, I remember. Weird.
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Sat, Mar 30, 2013 at 4:13 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>> Maybe I'm doing something wrong... the example on my p.a.o works for you?
>>>>>
>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>
>>>>> Maybe try Chrome?
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>> I'm not seeing anything like that in the HTML wrapper.  Safari is
>>>>>> definitely
>>>>>> throwing on exception on "new Event".  Any idea what I'm doing wrong?
>>>>>>
>>>>>>
>>>>>> On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>
>>>>>>> I left out FlexGlobals on purpose, I plan to bring the Google Closure
>>>>>>> way of dealing with events to FlexJS. The GC way is not dependent on
>>>>>>> DOM based events and fits very snugly with the way Flex handles
>>>>>>> events.
>>>>>>>
>>>>>>> In the mean time I've a method in the "main" HTML that is called Event
>>>>>>> and that passes the event through to FlexGlobals for now.
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sat, Mar 30, 2013 at 3:47 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>>> Hi Erik,
>>>>>>>>
>>>>>>>> I finally got time to try to switch over to FalconJX.  It produces js
>>>>>>>> files
>>>>>>>> and the app shows up, but the console shows an exception and the
>>>>>>>> interactivity of the application is mostly broken because the generated
>>>>>>>> js
>>>>>>>> code has snippets like this:
>>>>>>>>
>>>>>>>> models.MyModel.prototype.set_labelText = function(value) {
>>>>>>>>     var self = this;
>>>>>>>>     if (value != self._labelText) {
>>>>>>>>         self._labelText = value;
>>>>>>>>         self.dispatchEvent(new Event("labelTextChanged"));
>>>>>>>>     }
>>>>>>>> };
>>>>>>>>
>>>>>>>> In the FalconJS output, we are calling FlexGlobals.newObject because
>>>>>>>> Event
>>>>>>>> is a special class in the browser that can't be instantiated via "new"
>>>>>>>> and
>>>>>>>> FlexJS is using these DOM Events.
>>>>>>>>
>>>>>>>> Did I miss a flag, or can I go about trying to intercept these calls
>>>>>>>> and
>>>>>>>> have them call FlexGlobals.newObject instead?
>>>>>>>>
>>>>>>>> -Alex
>>>>>>>>
>>>>>>>>
>>>>>>>> On 3/29/13 11:58 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>
>>>>>>>>> Ok, we're back in business! I think this time I have been working with
>>>>>>>>> the right version of FlexJS (the one with the timer and the drop down
>>>>>>>>> list?) and it looks to work as advertised:
>>>>>>>>>
>>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>>>
>>>>>>>>> Time to get packing for the long flight ;-)
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Mar 29, 2013 at 3:15 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>> wrote:
>>>>>>>>>> Ah, and there's plenty left for you to "learn" from :-)
>>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>>>>>> No worries.  Might be a good way for me to learn how it works by
>>>>>>>>>>> getting
>>>>>>>>>>> it
>>>>>>>>>>> to work.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Uh oh... Turns out I was testing against an outdated ASJS lib
>>>>>>>>>>>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>>>>>>>>>>>> iteration of FlexJS. Sorry about that. I will work on that today,
>>>>>>>>>>>> but
>>>>>>>>>>>> I don't have a lot of time, so it might be a while before I can
>>>>>>>>>>>> catch
>>>>>>>>>>>> up, due to next week's travel to the land of golden opportunity.
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>> And another update (things are going much better than I expected):
>>>>>>>>>>>> FalconJx can now emit a fully functional version of the
>>>>>>>>>>>> FlexJSTest_again demo application. You can see it in action here
>>>>>>>>>>>> (provided you use Chrome or Firefox, I just noticed):
>>>>>>>>>>>>
>>>>>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>>>>>>
>>>>>>>>>>>> Onwards and upwards ;-)
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>> I'd have to look into it for specifics, but of the top of my head
>>>>>>>>>>>> it
>>>>>>>>>>>> seems that this most depends on the implementation in the FlexJS JS
>>>>>>>>>>>> framework. Emitting the strings required by that framework should
>>>>>>>>>>>> really be easy enough. If needed we can "look forward" into AST to
>>>>>>>>>>>> look for binding information. I do this in several other places
>>>>>>>>>>>> already. Even the binding expressions shouldn't be too much of a
>>>>>>>>>>>> problem, again depending on how this will be handled by the JS
>>>>>>>>>>>> framework.
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>> [Bindable] results in extra codegen.  Binding expressions with {}
>>>>>>>>>>>> is a
>>>>>>>>>>>> whole
>>>>>>>>>>>> other ball of work.
>>>>>>>>>>>>
>>>>>>>>>>>> I think in FalconJX you might have to modify the node tree in
>>>>>>>>>>>> several
>>>>>>>>>>>> places
>>>>>>>>>>>> when you hit a [Bindable] node.
>>>>>>>>>>>>
>>>>>>>>>>>> It isn't working correctly in FalconJS either, but my "customer"
>>>>>>>>>>>> needs
>>>>>>>>>>>> it
>>>>>>>>>>>> so
>>>>>>>>>>>> I'm hacking a fix.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>>>>>>>>>>>> Metadata
>>>>>>>>>>>> and
>>>>>>>>>>>> Databinding information, so I guess it depends on the requirements
>>>>>>>>>>>> for
>>>>>>>>>>>> the
>>>>>>>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>>>>
>>>>>>>>>>>> Another one popped into my head just now: I have a gut feeling
>>>>>>>>>>>> there
>>>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>>>>> constructors for the various classes. But I can't wrap around it
>>>>>>>>>>>> well
>>>>>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>>>>>>>>>>>> done
>>>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>>>>>>>>>>>> somehow
>>>>>>>>>>>> isn't "elegant". And that's in no way a comment on the
>>>>>>>>>>>> effectiveness
>>>>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>>>>> what you think.
>>>>>>>>>>>>
>>>>>>>>>>>> Actually I think it works fine. The problem you are facing is with
>>>>>>>>>>>> the
>>>>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>>>>>>>>>>>> to
>>>>>>>>>>>> accomplish and it is circular from the perspective of using AS
>>>>>>>>>>>> within
>>>>>>>>>>>> MXML.
>>>>>>>>>>>>
>>>>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>>>>>> emitter.
>>>>>>>>>>>>
>>>>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>>>>>> child that knows about its parent I am blind. Like I said, the
>>>>>>>>>>>> block
>>>>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>>>>>> the fact there is recursion.
>>>>>>>>>>>>
>>>>>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under
>>>>>>>>>>>> me
>>>>>>>>>>>> and lighting in the sky, there may be parts that could be
>>>>>>>>>>>> logicalized.
>>>>>>>>>>>>
>>>>>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I
>>>>>>>>>>>> wrote.
>>>>>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>>>>>> alone for the time being.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>> Mike,
>>>>>>>>>>>>
>>>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>>>
>>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>>>> additional work in your other projects? I did my best to leave all
>>>>>>>>>>>> the
>>>>>>>>>>>> APIs alone.
>>>>>>>>>>>>
>>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>>>> suggest some kind of code review or something (I'm not used to
>>>>>>>>>>>> working
>>>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>>>>>>>>>>>> for
>>>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>>>>>>>>>>>> right
>>>>>>>>>>>> thing there. And finally (not really, but this is all I can think
>>>>>>>>>>>> of
>>>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>>>> "programming to interfaces, not implementations" part that we
>>>>>>>>>>>> nearly
>>>>>>>>>>>> adhere to, but not quite, we might have another look at that as
>>>>>>>>>>>> well.
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>>
>>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>>>>>>> touch the
>>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>>>>>>>>>>>> code.
>>>>>>>>>>>> And
>>>>>>>>>>>> application code now.
>>>>>>>>>>>>
>>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>>>>>>> spaces. :)
>>>>>>>>>>>>
>>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>>> having to chase
>>>>>>>>>>>> them right now.
>>>>>>>>>>>>
>>>>>>>>>>>> Mike
>>>>>>>>>>>> Alex Harui
>>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Alex Harui
>>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Ix Multimedia Software
>>>>>>>>>>>>
>>>>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>>>>
>>>>>>>>>>>> T. 06-51952295
>>>>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Ix Multimedia Software
>>>>>>>>>>>>
>>>>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>>>>
>>>>>>>>>>>> T. 06-51952295
>>>>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Alex Harui
>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Ix Multimedia Software
>>>>>>>>>>
>>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>>
>>>>>>>>>> T. 06-51952295
>>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Alex Harui
>>>>>>>> Flex SDK Team
>>>>>>>> Adobe Systems, Inc.
>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Alex Harui
>>>>>> Flex SDK Team
>>>>>> Adobe Systems, Inc.
>>>>>> http://blogs.adobe.com/aharui
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Ix Multimedia Software
>>>>>
>>>>> Jan Luykenstraat 27
>>>>> 3521 VB Utrecht
>>>>>
>>>>> T. 06-51952295
>>>>> I. www.ixsoftware.nl
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>
>>>
>>>
>>> --
>>> Ix Multimedia Software
>>>
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>>
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>

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


Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
No, because I ran the link to your app in the debugger in Safari and I get
the exception.  I don't think the flash.*.* thing is involved in your
version right?

If you run http://people.apache.org/~erikdebruin/flexjs/ in the JS debugger
it doesn't send exceptions to the console? And changing the selection in the
dropdownlist changes the label and/or textarea?

I'm offline for a bit.  I'll look into it more tonight.


On 3/30/13 9:16 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Did you try to put the flash.*.* thing back (revert your latest commit)?
>
> EdB
>
>
>
> On Sat, Mar 30, 2013 at 4:20 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> Or, it might have something to do with your last ASJS commit... remove
>> flash.*.* from implicit imports... If you revert that locally, does
>> FalconJx work? It wasn't there yesterday, so that's the only
>> difference in code between you and me.
>>
>> We need to set up functional testing for Falcon/FlexJS soon!
>>
>> EdB
>>
>>
>>
>> On Sat, Mar 30, 2013 at 4:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>> Nope, Safari works well for me, and there doesn't need to be the extra
>>> method in the main HTML anymore, I remember. Weird.
>>>
>>> EdB
>>>
>>>
>>>
>>> On Sat, Mar 30, 2013 at 4:13 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>> Maybe I'm doing something wrong... the example on my p.a.o works for you?
>>>>
>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>
>>>> Maybe try Chrome?
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>> I'm not seeing anything like that in the HTML wrapper.  Safari is
>>>>> definitely
>>>>> throwing on exception on "new Event".  Any idea what I'm doing wrong?
>>>>>
>>>>>
>>>>> On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>
>>>>>> I left out FlexGlobals on purpose, I plan to bring the Google Closure
>>>>>> way of dealing with events to FlexJS. The GC way is not dependent on
>>>>>> DOM based events and fits very snugly with the way Flex handles
>>>>>> events.
>>>>>>
>>>>>> In the mean time I've a method in the "main" HTML that is called Event
>>>>>> and that passes the event through to FlexGlobals for now.
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Sat, Mar 30, 2013 at 3:47 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>> Hi Erik,
>>>>>>>
>>>>>>> I finally got time to try to switch over to FalconJX.  It produces js
>>>>>>> files
>>>>>>> and the app shows up, but the console shows an exception and the
>>>>>>> interactivity of the application is mostly broken because the generated
>>>>>>> js
>>>>>>> code has snippets like this:
>>>>>>>
>>>>>>> models.MyModel.prototype.set_labelText = function(value) {
>>>>>>>     var self = this;
>>>>>>>     if (value != self._labelText) {
>>>>>>>         self._labelText = value;
>>>>>>>         self.dispatchEvent(new Event("labelTextChanged"));
>>>>>>>     }
>>>>>>> };
>>>>>>>
>>>>>>> In the FalconJS output, we are calling FlexGlobals.newObject because
>>>>>>> Event
>>>>>>> is a special class in the browser that can't be instantiated via "new"
>>>>>>> and
>>>>>>> FlexJS is using these DOM Events.
>>>>>>>
>>>>>>> Did I miss a flag, or can I go about trying to intercept these calls and
>>>>>>> have them call FlexGlobals.newObject instead?
>>>>>>>
>>>>>>> -Alex
>>>>>>>
>>>>>>>
>>>>>>> On 3/29/13 11:58 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>
>>>>>>>> Ok, we're back in business! I think this time I have been working with
>>>>>>>> the right version of FlexJS (the one with the timer and the drop down
>>>>>>>> list?) and it looks to work as advertised:
>>>>>>>>
>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>>
>>>>>>>> Time to get packing for the long flight ;-)
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Mar 29, 2013 at 3:15 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>> wrote:
>>>>>>>>> Ah, and there's plenty left for you to "learn" from :-)
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>>>>> No worries.  Might be a good way for me to learn how it works by
>>>>>>>>>> getting
>>>>>>>>>> it
>>>>>>>>>> to work.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>>
>>>>>>>>>>> Uh oh... Turns out I was testing against an outdated ASJS lib
>>>>>>>>>>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>>>>>>>>>>> iteration of FlexJS. Sorry about that. I will work on that today,
>>>>>>>>>>> but
>>>>>>>>>>> I don't have a lot of time, so it might be a while before I can
>>>>>>>>>>> catch
>>>>>>>>>>> up, due to next week's travel to the land of golden opportunity.
>>>>>>>>>>>
>>>>>>>>>>> EdB
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>> wrote:
>>>>>>>>>>>> And another update (things are going much better than I expected):
>>>>>>>>>>>> FalconJx can now emit a fully functional version of the
>>>>>>>>>>>> FlexJSTest_again demo application. You can see it in action here
>>>>>>>>>>>> (provided you use Chrome or Firefox, I just noticed):
>>>>>>>>>>>>
>>>>>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>>>>>>
>>>>>>>>>>>> Onwards and upwards ;-)
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>> I'd have to look into it for specifics, but of the top of my head
>>>>>>>>>>>> it
>>>>>>>>>>>> seems that this most depends on the implementation in the FlexJS JS
>>>>>>>>>>>> framework. Emitting the strings required by that framework should
>>>>>>>>>>>> really be easy enough. If needed we can "look forward" into AST to
>>>>>>>>>>>> look for binding information. I do this in several other places
>>>>>>>>>>>> already. Even the binding expressions shouldn't be too much of a
>>>>>>>>>>>> problem, again depending on how this will be handled by the JS
>>>>>>>>>>>> framework.
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>> [Bindable] results in extra codegen.  Binding expressions with {}
>>>>>>>>>>>> is a
>>>>>>>>>>>> whole
>>>>>>>>>>>> other ball of work.
>>>>>>>>>>>>
>>>>>>>>>>>> I think in FalconJX you might have to modify the node tree in
>>>>>>>>>>>> several
>>>>>>>>>>>> places
>>>>>>>>>>>> when you hit a [Bindable] node.
>>>>>>>>>>>>
>>>>>>>>>>>> It isn't working correctly in FalconJS either, but my "customer"
>>>>>>>>>>>> needs
>>>>>>>>>>>> it
>>>>>>>>>>>> so
>>>>>>>>>>>> I'm hacking a fix.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>>>>>>>>>>>> Metadata
>>>>>>>>>>>> and
>>>>>>>>>>>> Databinding information, so I guess it depends on the requirements
>>>>>>>>>>>> for
>>>>>>>>>>>> the
>>>>>>>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>>>>
>>>>>>>>>>>> Another one popped into my head just now: I have a gut feeling
>>>>>>>>>>>> there
>>>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>>>>> constructors for the various classes. But I can't wrap around it
>>>>>>>>>>>> well
>>>>>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>>>>>>>>>>>> done
>>>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>>>>>>>>>>>> somehow
>>>>>>>>>>>> isn't "elegant". And that's in no way a comment on the
>>>>>>>>>>>> effectiveness
>>>>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>>>>> what you think.
>>>>>>>>>>>>
>>>>>>>>>>>> Actually I think it works fine. The problem you are facing is with
>>>>>>>>>>>> the
>>>>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>>>>>>>>>>>> to
>>>>>>>>>>>> accomplish and it is circular from the perspective of using AS
>>>>>>>>>>>> within
>>>>>>>>>>>> MXML.
>>>>>>>>>>>>
>>>>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>>>>>> emitter.
>>>>>>>>>>>>
>>>>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>>>>>> child that knows about its parent I am blind. Like I said, the
>>>>>>>>>>>> block
>>>>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>>>>>> the fact there is recursion.
>>>>>>>>>>>>
>>>>>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under
>>>>>>>>>>>> me
>>>>>>>>>>>> and lighting in the sky, there may be parts that could be
>>>>>>>>>>>> logicalized.
>>>>>>>>>>>>
>>>>>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I
>>>>>>>>>>>> wrote.
>>>>>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>>>>>> alone for the time being.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>> Mike,
>>>>>>>>>>>>
>>>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>>>
>>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>>>> additional work in your other projects? I did my best to leave all
>>>>>>>>>>>> the
>>>>>>>>>>>> APIs alone.
>>>>>>>>>>>>
>>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>>>> suggest some kind of code review or something (I'm not used to
>>>>>>>>>>>> working
>>>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>>>>>>>>>>>> for
>>>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>>>>>>>>>>>> right
>>>>>>>>>>>> thing there. And finally (not really, but this is all I can think
>>>>>>>>>>>> of
>>>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>>>> "programming to interfaces, not implementations" part that we
>>>>>>>>>>>> nearly
>>>>>>>>>>>> adhere to, but not quite, we might have another look at that as
>>>>>>>>>>>> well.
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>>
>>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>>>>>>> touch the
>>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>>>>>>>>>>>> code.
>>>>>>>>>>>> And
>>>>>>>>>>>> application code now.
>>>>>>>>>>>>
>>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>>>>>>> spaces. :)
>>>>>>>>>>>>
>>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>>> having to chase
>>>>>>>>>>>> them right now.
>>>>>>>>>>>>
>>>>>>>>>>>> Mike
>>>>>>>>>>>> Alex Harui
>>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Alex Harui
>>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Ix Multimedia Software
>>>>>>>>>>>>
>>>>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>>>>
>>>>>>>>>>>> T. 06-51952295
>>>>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Ix Multimedia Software
>>>>>>>>>>>>
>>>>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>>>>
>>>>>>>>>>>> T. 06-51952295
>>>>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Alex Harui
>>>>>>>>>> Flex SDK Team
>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Ix Multimedia Software
>>>>>>>>>
>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>
>>>>>>>>> T. 06-51952295
>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Alex Harui
>>>>>>> Flex SDK Team
>>>>>>> Adobe Systems, Inc.
>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Alex Harui
>>>>> Flex SDK Team
>>>>> Adobe Systems, Inc.
>>>>> http://blogs.adobe.com/aharui
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>
>>>
>>>
>>> --
>>> Ix Multimedia Software
>>>
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>>
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Did you try to put the flash.*.* thing back (revert your latest commit)?

EdB



On Sat, Mar 30, 2013 at 4:20 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> Or, it might have something to do with your last ASJS commit... remove
> flash.*.* from implicit imports... If you revert that locally, does
> FalconJx work? It wasn't there yesterday, so that's the only
> difference in code between you and me.
>
> We need to set up functional testing for Falcon/FlexJS soon!
>
> EdB
>
>
>
> On Sat, Mar 30, 2013 at 4:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> Nope, Safari works well for me, and there doesn't need to be the extra
>> method in the main HTML anymore, I remember. Weird.
>>
>> EdB
>>
>>
>>
>> On Sat, Mar 30, 2013 at 4:13 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>> Maybe I'm doing something wrong... the example on my p.a.o works for you?
>>>
>>> http://people.apache.org/~erikdebruin/flexjs/
>>>
>>> Maybe try Chrome?
>>>
>>> EdB
>>>
>>>
>>>
>>> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com> wrote:
>>>> I'm not seeing anything like that in the HTML wrapper.  Safari is definitely
>>>> throwing on exception on "new Event".  Any idea what I'm doing wrong?
>>>>
>>>>
>>>> On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>
>>>>> I left out FlexGlobals on purpose, I plan to bring the Google Closure
>>>>> way of dealing with events to FlexJS. The GC way is not dependent on
>>>>> DOM based events and fits very snugly with the way Flex handles
>>>>> events.
>>>>>
>>>>> In the mean time I've a method in the "main" HTML that is called Event
>>>>> and that passes the event through to FlexGlobals for now.
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Mar 30, 2013 at 3:47 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>> Hi Erik,
>>>>>>
>>>>>> I finally got time to try to switch over to FalconJX.  It produces js files
>>>>>> and the app shows up, but the console shows an exception and the
>>>>>> interactivity of the application is mostly broken because the generated js
>>>>>> code has snippets like this:
>>>>>>
>>>>>> models.MyModel.prototype.set_labelText = function(value) {
>>>>>>     var self = this;
>>>>>>     if (value != self._labelText) {
>>>>>>         self._labelText = value;
>>>>>>         self.dispatchEvent(new Event("labelTextChanged"));
>>>>>>     }
>>>>>> };
>>>>>>
>>>>>> In the FalconJS output, we are calling FlexGlobals.newObject because Event
>>>>>> is a special class in the browser that can't be instantiated via "new" and
>>>>>> FlexJS is using these DOM Events.
>>>>>>
>>>>>> Did I miss a flag, or can I go about trying to intercept these calls and
>>>>>> have them call FlexGlobals.newObject instead?
>>>>>>
>>>>>> -Alex
>>>>>>
>>>>>>
>>>>>> On 3/29/13 11:58 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>
>>>>>>> Ok, we're back in business! I think this time I have been working with
>>>>>>> the right version of FlexJS (the one with the timer and the drop down
>>>>>>> list?) and it looks to work as advertised:
>>>>>>>
>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>
>>>>>>> Time to get packing for the long flight ;-)
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Mar 29, 2013 at 3:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>>>>> Ah, and there's plenty left for you to "learn" from :-)
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>>>> No worries.  Might be a good way for me to learn how it works by getting
>>>>>>>>> it
>>>>>>>>> to work.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>
>>>>>>>>>> Uh oh... Turns out I was testing against an outdated ASJS lib
>>>>>>>>>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>>>>>>>>>> iteration of FlexJS. Sorry about that. I will work on that today, but
>>>>>>>>>> I don't have a lot of time, so it might be a while before I can catch
>>>>>>>>>> up, due to next week's travel to the land of golden opportunity.
>>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>> wrote:
>>>>>>>>>>> And another update (things are going much better than I expected):
>>>>>>>>>>> FalconJx can now emit a fully functional version of the
>>>>>>>>>>> FlexJSTest_again demo application. You can see it in action here
>>>>>>>>>>> (provided you use Chrome or Firefox, I just noticed):
>>>>>>>>>>>
>>>>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>>>>>
>>>>>>>>>>> Onwards and upwards ;-)
>>>>>>>>>>>
>>>>>>>>>>> EdB
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>> wrote:
>>>>>>>>>>>> I'd have to look into it for specifics, but of the top of my head it
>>>>>>>>>>>> seems that this most depends on the implementation in the FlexJS JS
>>>>>>>>>>>> framework. Emitting the strings required by that framework should
>>>>>>>>>>>> really be easy enough. If needed we can "look forward" into AST to
>>>>>>>>>>>> look for binding information. I do this in several other places
>>>>>>>>>>>> already. Even the binding expressions shouldn't be too much of a
>>>>>>>>>>>> problem, again depending on how this will be handled by the JS
>>>>>>>>>>>> framework.
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>>>>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>>>>>>>>>>>> whole
>>>>>>>>>>>>> other ball of work.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I think in FalconJX you might have to modify the node tree in several
>>>>>>>>>>>>> places
>>>>>>>>>>>>> when you hit a [Bindable] node.
>>>>>>>>>>>>>
>>>>>>>>>>>>> It isn't working correctly in FalconJS either, but my "customer" needs
>>>>>>>>>>>>> it
>>>>>>>>>>>>> so
>>>>>>>>>>>>> I'm hacking a fix.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>>>>>>>>>>>>>> Metadata
>>>>>>>>>>>>>> and
>>>>>>>>>>>>>> Databinding information, so I guess it depends on the requirements
>>>>>>>>>>>>>> for
>>>>>>>>>>>>>> the
>>>>>>>>>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> EdB
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Another one popped into my head just now: I have a gut feeling
>>>>>>>>>>>>>>>> there
>>>>>>>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>>>>>>>>> constructors for the various classes. But I can't wrap around it
>>>>>>>>>>>>>>>> well
>>>>>>>>>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>>>>>>>>>>>>>>>> done
>>>>>>>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>>>>>>>>>>>>>>>> somehow
>>>>>>>>>>>>>>>> isn't "elegant". And that's in no way a comment on the
>>>>>>>>>>>>>>>> effectiveness
>>>>>>>>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>>>>>>>>> what you think.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Actually I think it works fine. The problem you are facing is with
>>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>>>>>>>>>>>>>>>> to
>>>>>>>>>>>>>>>> accomplish and it is circular from the perspective of using AS
>>>>>>>>>>>>>>>> within
>>>>>>>>>>>>>>>> MXML.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>>>>>>>>>> emitter.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>>>>>>>>>> child that knows about its parent I am blind. Like I said, the
>>>>>>>>>>>>>>>> block
>>>>>>>>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>>>>>>>>>> the fact there is recursion.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under
>>>>>>>>>>>>>>>> me
>>>>>>>>>>>>>>>> and lighting in the sky, there may be parts that could be
>>>>>>>>>>>>>>>> logicalized.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I
>>>>>>>>>>>>>>>> wrote.
>>>>>>>>>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>>>>>>>>>> alone for the time being.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> EdB
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> Mike,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>>>>>>>> additional work in your other projects? I did my best to leave all
>>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>>>> APIs alone.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>>>>>>>> suggest some kind of code review or something (I'm not used to
>>>>>>>>>>>>>>>> working
>>>>>>>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>>>>>>>>>>>>>>>> for
>>>>>>>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>>>>>>>>>>>>>>>> right
>>>>>>>>>>>>>>>> thing there. And finally (not really, but this is all I can think
>>>>>>>>>>>>>>>> of
>>>>>>>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>>>>>>>> "programming to interfaces, not implementations" part that we
>>>>>>>>>>>>>>>> nearly
>>>>>>>>>>>>>>>> adhere to, but not quite, we might have another look at that as
>>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> EdB
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>>>>>>>>>> touch the
>>>>>>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>>>>>>>>>>>>>>>> code.
>>>>>>>>>>>>>>> And
>>>>>>>>>>>>>>>> application code now.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>>>>>>>>>> spaces. :)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>>>>>>> having to chase
>>>>>>>>>>>>>>>> them right now.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>>> Alex Harui
>>>>>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Alex Harui
>>>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Ix Multimedia Software
>>>>>>>>>>>>
>>>>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>>>>
>>>>>>>>>>>> T. 06-51952295
>>>>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Ix Multimedia Software
>>>>>>>>>>>
>>>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>>>
>>>>>>>>>>> T. 06-51952295
>>>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Alex Harui
>>>>>>>>> Flex SDK Team
>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Ix Multimedia Software
>>>>>>>>
>>>>>>>> Jan Luykenstraat 27
>>>>>>>> 3521 VB Utrecht
>>>>>>>>
>>>>>>>> T. 06-51952295
>>>>>>>> I. www.ixsoftware.nl
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Alex Harui
>>>>>> Flex SDK Team
>>>>>> Adobe Systems, Inc.
>>>>>> http://blogs.adobe.com/aharui
>>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui
>>>>
>>>
>>>
>>>
>>> --
>>> Ix Multimedia Software
>>>
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>>
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Or, it might have something to do with your last ASJS commit... remove
flash.*.* from implicit imports... If you revert that locally, does
FalconJx work? It wasn't there yesterday, so that's the only
difference in code between you and me.

We need to set up functional testing for Falcon/FlexJS soon!

EdB



On Sat, Mar 30, 2013 at 4:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> Nope, Safari works well for me, and there doesn't need to be the extra
> method in the main HTML anymore, I remember. Weird.
>
> EdB
>
>
>
> On Sat, Mar 30, 2013 at 4:13 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> Maybe I'm doing something wrong... the example on my p.a.o works for you?
>>
>> http://people.apache.org/~erikdebruin/flexjs/
>>
>> Maybe try Chrome?
>>
>> EdB
>>
>>
>>
>> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com> wrote:
>>> I'm not seeing anything like that in the HTML wrapper.  Safari is definitely
>>> throwing on exception on "new Event".  Any idea what I'm doing wrong?
>>>
>>>
>>> On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>
>>>> I left out FlexGlobals on purpose, I plan to bring the Google Closure
>>>> way of dealing with events to FlexJS. The GC way is not dependent on
>>>> DOM based events and fits very snugly with the way Flex handles
>>>> events.
>>>>
>>>> In the mean time I've a method in the "main" HTML that is called Event
>>>> and that passes the event through to FlexGlobals for now.
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Sat, Mar 30, 2013 at 3:47 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>> Hi Erik,
>>>>>
>>>>> I finally got time to try to switch over to FalconJX.  It produces js files
>>>>> and the app shows up, but the console shows an exception and the
>>>>> interactivity of the application is mostly broken because the generated js
>>>>> code has snippets like this:
>>>>>
>>>>> models.MyModel.prototype.set_labelText = function(value) {
>>>>>     var self = this;
>>>>>     if (value != self._labelText) {
>>>>>         self._labelText = value;
>>>>>         self.dispatchEvent(new Event("labelTextChanged"));
>>>>>     }
>>>>> };
>>>>>
>>>>> In the FalconJS output, we are calling FlexGlobals.newObject because Event
>>>>> is a special class in the browser that can't be instantiated via "new" and
>>>>> FlexJS is using these DOM Events.
>>>>>
>>>>> Did I miss a flag, or can I go about trying to intercept these calls and
>>>>> have them call FlexGlobals.newObject instead?
>>>>>
>>>>> -Alex
>>>>>
>>>>>
>>>>> On 3/29/13 11:58 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>
>>>>>> Ok, we're back in business! I think this time I have been working with
>>>>>> the right version of FlexJS (the one with the timer and the drop down
>>>>>> list?) and it looks to work as advertised:
>>>>>>
>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>
>>>>>> Time to get packing for the long flight ;-)
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Mar 29, 2013 at 3:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>>>> Ah, and there's plenty left for you to "learn" from :-)
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>>> No worries.  Might be a good way for me to learn how it works by getting
>>>>>>>> it
>>>>>>>> to work.
>>>>>>>>
>>>>>>>>
>>>>>>>> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>
>>>>>>>>> Uh oh... Turns out I was testing against an outdated ASJS lib
>>>>>>>>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>>>>>>>>> iteration of FlexJS. Sorry about that. I will work on that today, but
>>>>>>>>> I don't have a lot of time, so it might be a while before I can catch
>>>>>>>>> up, due to next week's travel to the land of golden opportunity.
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>> wrote:
>>>>>>>>>> And another update (things are going much better than I expected):
>>>>>>>>>> FalconJx can now emit a fully functional version of the
>>>>>>>>>> FlexJSTest_again demo application. You can see it in action here
>>>>>>>>>> (provided you use Chrome or Firefox, I just noticed):
>>>>>>>>>>
>>>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>>>>
>>>>>>>>>> Onwards and upwards ;-)
>>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>> wrote:
>>>>>>>>>>> I'd have to look into it for specifics, but of the top of my head it
>>>>>>>>>>> seems that this most depends on the implementation in the FlexJS JS
>>>>>>>>>>> framework. Emitting the strings required by that framework should
>>>>>>>>>>> really be easy enough. If needed we can "look forward" into AST to
>>>>>>>>>>> look for binding information. I do this in several other places
>>>>>>>>>>> already. Even the binding expressions shouldn't be too much of a
>>>>>>>>>>> problem, again depending on how this will be handled by the JS
>>>>>>>>>>> framework.
>>>>>>>>>>>
>>>>>>>>>>> EdB
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>>>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>>>>>>>>>>> whole
>>>>>>>>>>>> other ball of work.
>>>>>>>>>>>>
>>>>>>>>>>>> I think in FalconJX you might have to modify the node tree in several
>>>>>>>>>>>> places
>>>>>>>>>>>> when you hit a [Bindable] node.
>>>>>>>>>>>>
>>>>>>>>>>>> It isn't working correctly in FalconJS either, but my "customer" needs
>>>>>>>>>>>> it
>>>>>>>>>>>> so
>>>>>>>>>>>> I'm hacking a fix.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>>>>>>>>>>>>> Metadata
>>>>>>>>>>>>> and
>>>>>>>>>>>>> Databinding information, so I guess it depends on the requirements
>>>>>>>>>>>>> for
>>>>>>>>>>>>> the
>>>>>>>>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>>>>>>>>
>>>>>>>>>>>>> EdB
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Another one popped into my head just now: I have a gut feeling
>>>>>>>>>>>>>>> there
>>>>>>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>>>>>>>> constructors for the various classes. But I can't wrap around it
>>>>>>>>>>>>>>> well
>>>>>>>>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>>>>>>>>>>>>>>> done
>>>>>>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>>>>>>>>>>>>>>> somehow
>>>>>>>>>>>>>>> isn't "elegant". And that's in no way a comment on the
>>>>>>>>>>>>>>> effectiveness
>>>>>>>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>>>>>>>> what you think.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Actually I think it works fine. The problem you are facing is with
>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>>>>>>>>>>>>>>> to
>>>>>>>>>>>>>>> accomplish and it is circular from the perspective of using AS
>>>>>>>>>>>>>>> within
>>>>>>>>>>>>>>> MXML.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>>>>>>>>> emitter.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>>>>>>>>> child that knows about its parent I am blind. Like I said, the
>>>>>>>>>>>>>>> block
>>>>>>>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>>>>>>>>> the fact there is recursion.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under
>>>>>>>>>>>>>>> me
>>>>>>>>>>>>>>> and lighting in the sky, there may be parts that could be
>>>>>>>>>>>>>>> logicalized.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I
>>>>>>>>>>>>>>> wrote.
>>>>>>>>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>>>>>>>>> alone for the time being.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> EdB
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>> Mike,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>>>>>>> additional work in your other projects? I did my best to leave all
>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>>> APIs alone.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>>>>>>> suggest some kind of code review or something (I'm not used to
>>>>>>>>>>>>>>> working
>>>>>>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>>>>>>>>>>>>>>> for
>>>>>>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>>>>>>>>>>>>>>> right
>>>>>>>>>>>>>>> thing there. And finally (not really, but this is all I can think
>>>>>>>>>>>>>>> of
>>>>>>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>>>>>>> "programming to interfaces, not implementations" part that we
>>>>>>>>>>>>>>> nearly
>>>>>>>>>>>>>>> adhere to, but not quite, we might have another look at that as
>>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> EdB
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>>>>>>>>> touch the
>>>>>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>>>>>>>>>>>>>>> code.
>>>>>>>>>>>>>> And
>>>>>>>>>>>>>>> application code now.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>>>>>>>>> spaces. :)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>>>>>> having to chase
>>>>>>>>>>>>>>> them right now.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>> Alex Harui
>>>>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Alex Harui
>>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Ix Multimedia Software
>>>>>>>>>>>
>>>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>>>
>>>>>>>>>>> T. 06-51952295
>>>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Ix Multimedia Software
>>>>>>>>>>
>>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>>
>>>>>>>>>> T. 06-51952295
>>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Alex Harui
>>>>>>>> Flex SDK Team
>>>>>>>> Adobe Systems, Inc.
>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Ix Multimedia Software
>>>>>>>
>>>>>>> Jan Luykenstraat 27
>>>>>>> 3521 VB Utrecht
>>>>>>>
>>>>>>> T. 06-51952295
>>>>>>> I. www.ixsoftware.nl
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Alex Harui
>>>>> Flex SDK Team
>>>>> Adobe Systems, Inc.
>>>>> http://blogs.adobe.com/aharui
>>>>>
>>>>
>>>>
>>>
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui
>>>
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Nope, Safari works well for me, and there doesn't need to be the extra
method in the main HTML anymore, I remember. Weird.

EdB



On Sat, Mar 30, 2013 at 4:13 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> Maybe I'm doing something wrong... the example on my p.a.o works for you?
>
> http://people.apache.org/~erikdebruin/flexjs/
>
> Maybe try Chrome?
>
> EdB
>
>
>
> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com> wrote:
>> I'm not seeing anything like that in the HTML wrapper.  Safari is definitely
>> throwing on exception on "new Event".  Any idea what I'm doing wrong?
>>
>>
>> On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>
>>> I left out FlexGlobals on purpose, I plan to bring the Google Closure
>>> way of dealing with events to FlexJS. The GC way is not dependent on
>>> DOM based events and fits very snugly with the way Flex handles
>>> events.
>>>
>>> In the mean time I've a method in the "main" HTML that is called Event
>>> and that passes the event through to FlexGlobals for now.
>>>
>>> EdB
>>>
>>>
>>>
>>> On Sat, Mar 30, 2013 at 3:47 PM, Alex Harui <ah...@adobe.com> wrote:
>>>> Hi Erik,
>>>>
>>>> I finally got time to try to switch over to FalconJX.  It produces js files
>>>> and the app shows up, but the console shows an exception and the
>>>> interactivity of the application is mostly broken because the generated js
>>>> code has snippets like this:
>>>>
>>>> models.MyModel.prototype.set_labelText = function(value) {
>>>>     var self = this;
>>>>     if (value != self._labelText) {
>>>>         self._labelText = value;
>>>>         self.dispatchEvent(new Event("labelTextChanged"));
>>>>     }
>>>> };
>>>>
>>>> In the FalconJS output, we are calling FlexGlobals.newObject because Event
>>>> is a special class in the browser that can't be instantiated via "new" and
>>>> FlexJS is using these DOM Events.
>>>>
>>>> Did I miss a flag, or can I go about trying to intercept these calls and
>>>> have them call FlexGlobals.newObject instead?
>>>>
>>>> -Alex
>>>>
>>>>
>>>> On 3/29/13 11:58 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>
>>>>> Ok, we're back in business! I think this time I have been working with
>>>>> the right version of FlexJS (the one with the timer and the drop down
>>>>> list?) and it looks to work as advertised:
>>>>>
>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>
>>>>> Time to get packing for the long flight ;-)
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Mar 29, 2013 at 3:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>>> Ah, and there's plenty left for you to "learn" from :-)
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>> No worries.  Might be a good way for me to learn how it works by getting
>>>>>>> it
>>>>>>> to work.
>>>>>>>
>>>>>>>
>>>>>>> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>
>>>>>>>> Uh oh... Turns out I was testing against an outdated ASJS lib
>>>>>>>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>>>>>>>> iteration of FlexJS. Sorry about that. I will work on that today, but
>>>>>>>> I don't have a lot of time, so it might be a while before I can catch
>>>>>>>> up, due to next week's travel to the land of golden opportunity.
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>> wrote:
>>>>>>>>> And another update (things are going much better than I expected):
>>>>>>>>> FalconJx can now emit a fully functional version of the
>>>>>>>>> FlexJSTest_again demo application. You can see it in action here
>>>>>>>>> (provided you use Chrome or Firefox, I just noticed):
>>>>>>>>>
>>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>>>
>>>>>>>>> Onwards and upwards ;-)
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>> wrote:
>>>>>>>>>> I'd have to look into it for specifics, but of the top of my head it
>>>>>>>>>> seems that this most depends on the implementation in the FlexJS JS
>>>>>>>>>> framework. Emitting the strings required by that framework should
>>>>>>>>>> really be easy enough. If needed we can "look forward" into AST to
>>>>>>>>>> look for binding information. I do this in several other places
>>>>>>>>>> already. Even the binding expressions shouldn't be too much of a
>>>>>>>>>> problem, again depending on how this will be handled by the JS
>>>>>>>>>> framework.
>>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>>>>>>>>>> whole
>>>>>>>>>>> other ball of work.
>>>>>>>>>>>
>>>>>>>>>>> I think in FalconJX you might have to modify the node tree in several
>>>>>>>>>>> places
>>>>>>>>>>> when you hit a [Bindable] node.
>>>>>>>>>>>
>>>>>>>>>>> It isn't working correctly in FalconJS either, but my "customer" needs
>>>>>>>>>>> it
>>>>>>>>>>> so
>>>>>>>>>>> I'm hacking a fix.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>>>>>>>>>>>> Metadata
>>>>>>>>>>>> and
>>>>>>>>>>>> Databinding information, so I guess it depends on the requirements
>>>>>>>>>>>> for
>>>>>>>>>>>> the
>>>>>>>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Another one popped into my head just now: I have a gut feeling
>>>>>>>>>>>>>> there
>>>>>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>>>>>>> constructors for the various classes. But I can't wrap around it
>>>>>>>>>>>>>> well
>>>>>>>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>>>>>>>>>>>>>> done
>>>>>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>>>>>>>>>>>>>> somehow
>>>>>>>>>>>>>> isn't "elegant". And that's in no way a comment on the
>>>>>>>>>>>>>> effectiveness
>>>>>>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>>>>>>> what you think.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Actually I think it works fine. The problem you are facing is with
>>>>>>>>>>>>>> the
>>>>>>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>>>>>>>>>>>>>> to
>>>>>>>>>>>>>> accomplish and it is circular from the perspective of using AS
>>>>>>>>>>>>>> within
>>>>>>>>>>>>>> MXML.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>>>>>>>> emitter.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>>>>>>>> child that knows about its parent I am blind. Like I said, the
>>>>>>>>>>>>>> block
>>>>>>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>>>>>>>> the fact there is recursion.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under
>>>>>>>>>>>>>> me
>>>>>>>>>>>>>> and lighting in the sky, there may be parts that could be
>>>>>>>>>>>>>> logicalized.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I
>>>>>>>>>>>>>> wrote.
>>>>>>>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>>>>>>>> alone for the time being.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> EdB
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>> Mike,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>>>>>> additional work in your other projects? I did my best to leave all
>>>>>>>>>>>>>> the
>>>>>>>>>>>>>> APIs alone.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>>>>>> suggest some kind of code review or something (I'm not used to
>>>>>>>>>>>>>> working
>>>>>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>>>>>>>>>>>>>> for
>>>>>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>>>>>>>>>>>>>> right
>>>>>>>>>>>>>> thing there. And finally (not really, but this is all I can think
>>>>>>>>>>>>>> of
>>>>>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>>>>>> "programming to interfaces, not implementations" part that we
>>>>>>>>>>>>>> nearly
>>>>>>>>>>>>>> adhere to, but not quite, we might have another look at that as
>>>>>>>>>>>>>> well.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> EdB
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>>>>>>>> touch the
>>>>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>>>>>>>>>>>>>> code.
>>>>>>>>>>>>> And
>>>>>>>>>>>>>> application code now.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>>>>>>>> spaces. :)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>>>>> having to chase
>>>>>>>>>>>>>> them right now.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>> Alex Harui
>>>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Alex Harui
>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Ix Multimedia Software
>>>>>>>>>>
>>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>>
>>>>>>>>>> T. 06-51952295
>>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Ix Multimedia Software
>>>>>>>>>
>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>
>>>>>>>>> T. 06-51952295
>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Alex Harui
>>>>>>> Flex SDK Team
>>>>>>> Adobe Systems, Inc.
>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Ix Multimedia Software
>>>>>>
>>>>>> Jan Luykenstraat 27
>>>>>> 3521 VB Utrecht
>>>>>>
>>>>>> T. 06-51952295
>>>>>> I. www.ixsoftware.nl
>>>>>
>>>>>
>>>>
>>>> --
>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui
>>>>
>>>
>>>
>>
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
I put your app in the debugger and get the same exception.

And selecting from the dropdownlist doesn't change anything.


On 3/30/13 8:13 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Maybe I'm doing something wrong... the example on my p.a.o works for you?
> 
> http://people.apache.org/~erikdebruin/flexjs/
> 
> Maybe try Chrome?
> 
> EdB
> 
> 
> 
> On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com> wrote:
>> I'm not seeing anything like that in the HTML wrapper.  Safari is definitely
>> throwing on exception on "new Event".  Any idea what I'm doing wrong?
>> 
>> 
>> On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>> 
>>> I left out FlexGlobals on purpose, I plan to bring the Google Closure
>>> way of dealing with events to FlexJS. The GC way is not dependent on
>>> DOM based events and fits very snugly with the way Flex handles
>>> events.
>>> 
>>> In the mean time I've a method in the "main" HTML that is called Event
>>> and that passes the event through to FlexGlobals for now.
>>> 
>>> EdB
>>> 
>>> 
>>> 
>>> On Sat, Mar 30, 2013 at 3:47 PM, Alex Harui <ah...@adobe.com> wrote:
>>>> Hi Erik,
>>>> 
>>>> I finally got time to try to switch over to FalconJX.  It produces js files
>>>> and the app shows up, but the console shows an exception and the
>>>> interactivity of the application is mostly broken because the generated js
>>>> code has snippets like this:
>>>> 
>>>> models.MyModel.prototype.set_labelText = function(value) {
>>>>     var self = this;
>>>>     if (value != self._labelText) {
>>>>         self._labelText = value;
>>>>         self.dispatchEvent(new Event("labelTextChanged"));
>>>>     }
>>>> };
>>>> 
>>>> In the FalconJS output, we are calling FlexGlobals.newObject because Event
>>>> is a special class in the browser that can't be instantiated via "new" and
>>>> FlexJS is using these DOM Events.
>>>> 
>>>> Did I miss a flag, or can I go about trying to intercept these calls and
>>>> have them call FlexGlobals.newObject instead?
>>>> 
>>>> -Alex
>>>> 
>>>> 
>>>> On 3/29/13 11:58 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>> 
>>>>> Ok, we're back in business! I think this time I have been working with
>>>>> the right version of FlexJS (the one with the timer and the drop down
>>>>> list?) and it looks to work as advertised:
>>>>> 
>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>> 
>>>>> Time to get packing for the long flight ;-)
>>>>> 
>>>>> EdB
>>>>> 
>>>>> 
>>>>> 
>>>>> On Fri, Mar 29, 2013 at 3:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>>> Ah, and there's plenty left for you to "learn" from :-)
>>>>>> 
>>>>>> EdB
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>> No worries.  Might be a good way for me to learn how it works by getting
>>>>>>> it
>>>>>>> to work.
>>>>>>> 
>>>>>>> 
>>>>>>> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>> 
>>>>>>>> Uh oh... Turns out I was testing against an outdated ASJS lib
>>>>>>>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>>>>>>>> iteration of FlexJS. Sorry about that. I will work on that today, but
>>>>>>>> I don't have a lot of time, so it might be a while before I can catch
>>>>>>>> up, due to next week's travel to the land of golden opportunity.
>>>>>>>> 
>>>>>>>> EdB
>>>>>>>> 
>>>>>>>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>> wrote:
>>>>>>>>> And another update (things are going much better than I expected):
>>>>>>>>> FalconJx can now emit a fully functional version of the
>>>>>>>>> FlexJSTest_again demo application. You can see it in action here
>>>>>>>>> (provided you use Chrome or Firefox, I just noticed):
>>>>>>>>> 
>>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>>> 
>>>>>>>>> Onwards and upwards ;-)
>>>>>>>>> 
>>>>>>>>> EdB
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>> wrote:
>>>>>>>>>> I'd have to look into it for specifics, but of the top of my head it
>>>>>>>>>> seems that this most depends on the implementation in the FlexJS JS
>>>>>>>>>> framework. Emitting the strings required by that framework should
>>>>>>>>>> really be easy enough. If needed we can "look forward" into AST to
>>>>>>>>>> look for binding information. I do this in several other places
>>>>>>>>>> already. Even the binding expressions shouldn't be too much of a
>>>>>>>>>> problem, again depending on how this will be handled by the JS
>>>>>>>>>> framework.
>>>>>>>>>> 
>>>>>>>>>> EdB
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is
>>>>>>>>>>> a
>>>>>>>>>>> whole
>>>>>>>>>>> other ball of work.
>>>>>>>>>>> 
>>>>>>>>>>> I think in FalconJX you might have to modify the node tree in
>>>>>>>>>>> several
>>>>>>>>>>> places
>>>>>>>>>>> when you hit a [Bindable] node.
>>>>>>>>>>> 
>>>>>>>>>>> It isn't working correctly in FalconJS either, but my "customer"
>>>>>>>>>>> needs
>>>>>>>>>>> it
>>>>>>>>>>> so
>>>>>>>>>>> I'm hacking a fix.
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>>>>>>>>>>>> Metadata
>>>>>>>>>>>> and
>>>>>>>>>>>> Databinding information, so I guess it depends on the requirements
>>>>>>>>>>>> for
>>>>>>>>>>>> the
>>>>>>>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>>>>>>> 
>>>>>>>>>>>> EdB
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>>>> 
>>>>>>>>>>>> Another one popped into my head just now: I have a gut feeling
>>>>>>>>>>>> there
>>>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>>>>> constructors for the various classes. But I can't wrap around it
>>>>>>>>>>>> well
>>>>>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>>>>>>>>>>>> done
>>>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>>>>>>>>>>>> somehow
>>>>>>>>>>>> isn't "elegant". And that's in no way a comment on the
>>>>>>>>>>>> effectiveness
>>>>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>>>>> what you think.
>>>>>>>>>>>> 
>>>>>>>>>>>> Actually I think it works fine. The problem you are facing is with
>>>>>>>>>>>> the
>>>>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>>>>>>>>>>>> to
>>>>>>>>>>>> accomplish and it is circular from the perspective of using AS
>>>>>>>>>>>> within
>>>>>>>>>>>> MXML.
>>>>>>>>>>>> 
>>>>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>>>>>> emitter.
>>>>>>>>>>>> 
>>>>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>>>>>> child that knows about its parent I am blind. Like I said, the
>>>>>>>>>>>> block
>>>>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>>>>>> the fact there is recursion.
>>>>>>>>>>>> 
>>>>>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under
>>>>>>>>>>>> me
>>>>>>>>>>>> and lighting in the sky, there may be parts that could be
>>>>>>>>>>>> logicalized.
>>>>>>>>>>>> 
>>>>>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I
>>>>>>>>>>>> wrote.
>>>>>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>>>>>> alone for the time being.
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> EdB
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>> Mike,
>>>>>>>>>>>> 
>>>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>>> 
>>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>>>> additional work in your other projects? I did my best to leave all
>>>>>>>>>>>> the
>>>>>>>>>>>> APIs alone.
>>>>>>>>>>>> 
>>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>>>> suggest some kind of code review or something (I'm not used to
>>>>>>>>>>>> working
>>>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>>>>>>>>>>>> for
>>>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>>>>>>>>>>>> right
>>>>>>>>>>>> thing there. And finally (not really, but this is all I can think
>>>>>>>>>>>> of
>>>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>>>> "programming to interfaces, not implementations" part that we
>>>>>>>>>>>> nearly
>>>>>>>>>>>> adhere to, but not quite, we might have another look at that as
>>>>>>>>>>>> well.
>>>>>>>>>>>> 
>>>>>>>>>>>> EdB
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>> 
>>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>>>>>>> touch the
>>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>>>>>>>>>>>> code.
>>>>>>>>>>>> And
>>>>>>>>>>>> application code now.
>>>>>>>>>>>> 
>>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>>>>>>> spaces. :)
>>>>>>>>>>>> 
>>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>>> having to chase
>>>>>>>>>>>> them right now.
>>>>>>>>>>>> 
>>>>>>>>>>>> Mike
>>>>>>>>>>>> Alex Harui
>>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> --
>>>>>>>>>>> Alex Harui
>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> --
>>>>>>>>>> Ix Multimedia Software
>>>>>>>>>> 
>>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>> 
>>>>>>>>>> T. 06-51952295
>>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> --
>>>>>>>>> Ix Multimedia Software
>>>>>>>>> 
>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>> 3521 VB Utrecht
>>>>>>>>> 
>>>>>>>>> T. 06-51952295
>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> --
>>>>>>> Alex Harui
>>>>>>> Flex SDK Team
>>>>>>> Adobe Systems, Inc.
>>>>>>> http://blogs.adobe.com/aharui
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Ix Multimedia Software
>>>>>> 
>>>>>> Jan Luykenstraat 27
>>>>>> 3521 VB Utrecht
>>>>>> 
>>>>>> T. 06-51952295
>>>>>> I. www.ixsoftware.nl
>>>>> 
>>>>> 
>>>> 
>>>> --
>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui
>>>> 
>>> 
>>> 
>> 
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
> 
> 
> 
> --
> Ix Multimedia Software
> 
> Jan Luykenstraat 27
> 3521 VB Utrecht
> 
> T. 06-51952295
> I. www.ixsoftware.nl

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Maybe I'm doing something wrong... the example on my p.a.o works for you?

http://people.apache.org/~erikdebruin/flexjs/

Maybe try Chrome?

EdB



On Sat, Mar 30, 2013 at 4:01 PM, Alex Harui <ah...@adobe.com> wrote:
> I'm not seeing anything like that in the HTML wrapper.  Safari is definitely
> throwing on exception on "new Event".  Any idea what I'm doing wrong?
>
>
> On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> I left out FlexGlobals on purpose, I plan to bring the Google Closure
>> way of dealing with events to FlexJS. The GC way is not dependent on
>> DOM based events and fits very snugly with the way Flex handles
>> events.
>>
>> In the mean time I've a method in the "main" HTML that is called Event
>> and that passes the event through to FlexGlobals for now.
>>
>> EdB
>>
>>
>>
>> On Sat, Mar 30, 2013 at 3:47 PM, Alex Harui <ah...@adobe.com> wrote:
>>> Hi Erik,
>>>
>>> I finally got time to try to switch over to FalconJX.  It produces js files
>>> and the app shows up, but the console shows an exception and the
>>> interactivity of the application is mostly broken because the generated js
>>> code has snippets like this:
>>>
>>> models.MyModel.prototype.set_labelText = function(value) {
>>>     var self = this;
>>>     if (value != self._labelText) {
>>>         self._labelText = value;
>>>         self.dispatchEvent(new Event("labelTextChanged"));
>>>     }
>>> };
>>>
>>> In the FalconJS output, we are calling FlexGlobals.newObject because Event
>>> is a special class in the browser that can't be instantiated via "new" and
>>> FlexJS is using these DOM Events.
>>>
>>> Did I miss a flag, or can I go about trying to intercept these calls and
>>> have them call FlexGlobals.newObject instead?
>>>
>>> -Alex
>>>
>>>
>>> On 3/29/13 11:58 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>
>>>> Ok, we're back in business! I think this time I have been working with
>>>> the right version of FlexJS (the one with the timer and the drop down
>>>> list?) and it looks to work as advertised:
>>>>
>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>
>>>> Time to get packing for the long flight ;-)
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Fri, Mar 29, 2013 at 3:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>> Ah, and there's plenty left for you to "learn" from :-)
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>> No worries.  Might be a good way for me to learn how it works by getting
>>>>>> it
>>>>>> to work.
>>>>>>
>>>>>>
>>>>>> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>
>>>>>>> Uh oh... Turns out I was testing against an outdated ASJS lib
>>>>>>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>>>>>>> iteration of FlexJS. Sorry about that. I will work on that today, but
>>>>>>> I don't have a lot of time, so it might be a while before I can catch
>>>>>>> up, due to next week's travel to the land of golden opportunity.
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>> wrote:
>>>>>>>> And another update (things are going much better than I expected):
>>>>>>>> FalconJx can now emit a fully functional version of the
>>>>>>>> FlexJSTest_again demo application. You can see it in action here
>>>>>>>> (provided you use Chrome or Firefox, I just noticed):
>>>>>>>>
>>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>>>
>>>>>>>> Onwards and upwards ;-)
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>> wrote:
>>>>>>>>> I'd have to look into it for specifics, but of the top of my head it
>>>>>>>>> seems that this most depends on the implementation in the FlexJS JS
>>>>>>>>> framework. Emitting the strings required by that framework should
>>>>>>>>> really be easy enough. If needed we can "look forward" into AST to
>>>>>>>>> look for binding information. I do this in several other places
>>>>>>>>> already. Even the binding expressions shouldn't be too much of a
>>>>>>>>> problem, again depending on how this will be handled by the JS
>>>>>>>>> framework.
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>>>>>>>>> whole
>>>>>>>>>> other ball of work.
>>>>>>>>>>
>>>>>>>>>> I think in FalconJX you might have to modify the node tree in several
>>>>>>>>>> places
>>>>>>>>>> when you hit a [Bindable] node.
>>>>>>>>>>
>>>>>>>>>> It isn't working correctly in FalconJS either, but my "customer" needs
>>>>>>>>>> it
>>>>>>>>>> so
>>>>>>>>>> I'm hacking a fix.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>>
>>>>>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>>>>>>>>>>> Metadata
>>>>>>>>>>> and
>>>>>>>>>>> Databinding information, so I guess it depends on the requirements
>>>>>>>>>>> for
>>>>>>>>>>> the
>>>>>>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>>>>>>
>>>>>>>>>>> EdB
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Another one popped into my head just now: I have a gut feeling
>>>>>>>>>>>>> there
>>>>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>>>>>> constructors for the various classes. But I can't wrap around it
>>>>>>>>>>>>> well
>>>>>>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>>>>>>>>>>>>> done
>>>>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>>>>>>>>>>>>> somehow
>>>>>>>>>>>>> isn't "elegant". And that's in no way a comment on the
>>>>>>>>>>>>> effectiveness
>>>>>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>>>>>> what you think.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Actually I think it works fine. The problem you are facing is with
>>>>>>>>>>>>> the
>>>>>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>>>>>>>>>>>>> to
>>>>>>>>>>>>> accomplish and it is circular from the perspective of using AS
>>>>>>>>>>>>> within
>>>>>>>>>>>>> MXML.
>>>>>>>>>>>>>
>>>>>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>>>>>>> emitter.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>>>>>>> child that knows about its parent I am blind. Like I said, the
>>>>>>>>>>>>> block
>>>>>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>>>>>>> the fact there is recursion.
>>>>>>>>>>>>>
>>>>>>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under
>>>>>>>>>>>>> me
>>>>>>>>>>>>> and lighting in the sky, there may be parts that could be
>>>>>>>>>>>>> logicalized.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I
>>>>>>>>>>>>> wrote.
>>>>>>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>>>>>>> alone for the time being.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> EdB
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>> Mike,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>>>>
>>>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>>>>> additional work in your other projects? I did my best to leave all
>>>>>>>>>>>>> the
>>>>>>>>>>>>> APIs alone.
>>>>>>>>>>>>>
>>>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>>>>> suggest some kind of code review or something (I'm not used to
>>>>>>>>>>>>> working
>>>>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>>>>>>>>>>>>> for
>>>>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>>>>>>>>>>>>> right
>>>>>>>>>>>>> thing there. And finally (not really, but this is all I can think
>>>>>>>>>>>>> of
>>>>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>>>>> "programming to interfaces, not implementations" part that we
>>>>>>>>>>>>> nearly
>>>>>>>>>>>>> adhere to, but not quite, we might have another look at that as
>>>>>>>>>>>>> well.
>>>>>>>>>>>>>
>>>>>>>>>>>>> EdB
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>>>>>>> touch the
>>>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>>>>>>>>>>>>> code.
>>>>>>>>>>>> And
>>>>>>>>>>>>> application code now.
>>>>>>>>>>>>>
>>>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>>>>>>> spaces. :)
>>>>>>>>>>>>>
>>>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>>>> having to chase
>>>>>>>>>>>>> them right now.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Mike
>>>>>>>>>>>> Alex Harui
>>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Alex Harui
>>>>>>>>>> Flex SDK Team
>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Ix Multimedia Software
>>>>>>>>>
>>>>>>>>> Jan Luykenstraat 27
>>>>>>>>> 3521 VB Utrecht
>>>>>>>>>
>>>>>>>>> T. 06-51952295
>>>>>>>>> I. www.ixsoftware.nl
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Ix Multimedia Software
>>>>>>>>
>>>>>>>> Jan Luykenstraat 27
>>>>>>>> 3521 VB Utrecht
>>>>>>>>
>>>>>>>> T. 06-51952295
>>>>>>>> I. www.ixsoftware.nl
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Alex Harui
>>>>>> Flex SDK Team
>>>>>> Adobe Systems, Inc.
>>>>>> http://blogs.adobe.com/aharui
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Ix Multimedia Software
>>>>>
>>>>> Jan Luykenstraat 27
>>>>> 3521 VB Utrecht
>>>>>
>>>>> T. 06-51952295
>>>>> I. www.ixsoftware.nl
>>>>
>>>>
>>>
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui
>>>
>>
>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
I'm not seeing anything like that in the HTML wrapper.  Safari is definitely
throwing on exception on "new Event".  Any idea what I'm doing wrong?


On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> I left out FlexGlobals on purpose, I plan to bring the Google Closure
> way of dealing with events to FlexJS. The GC way is not dependent on
> DOM based events and fits very snugly with the way Flex handles
> events.
> 
> In the mean time I've a method in the "main" HTML that is called Event
> and that passes the event through to FlexGlobals for now.
> 
> EdB
> 
> 
> 
> On Sat, Mar 30, 2013 at 3:47 PM, Alex Harui <ah...@adobe.com> wrote:
>> Hi Erik,
>> 
>> I finally got time to try to switch over to FalconJX.  It produces js files
>> and the app shows up, but the console shows an exception and the
>> interactivity of the application is mostly broken because the generated js
>> code has snippets like this:
>> 
>> models.MyModel.prototype.set_labelText = function(value) {
>>     var self = this;
>>     if (value != self._labelText) {
>>         self._labelText = value;
>>         self.dispatchEvent(new Event("labelTextChanged"));
>>     }
>> };
>> 
>> In the FalconJS output, we are calling FlexGlobals.newObject because Event
>> is a special class in the browser that can't be instantiated via "new" and
>> FlexJS is using these DOM Events.
>> 
>> Did I miss a flag, or can I go about trying to intercept these calls and
>> have them call FlexGlobals.newObject instead?
>> 
>> -Alex
>> 
>> 
>> On 3/29/13 11:58 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>> 
>>> Ok, we're back in business! I think this time I have been working with
>>> the right version of FlexJS (the one with the timer and the drop down
>>> list?) and it looks to work as advertised:
>>> 
>>> http://people.apache.org/~erikdebruin/flexjs/
>>> 
>>> Time to get packing for the long flight ;-)
>>> 
>>> EdB
>>> 
>>> 
>>> 
>>> On Fri, Mar 29, 2013 at 3:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>> Ah, and there's plenty left for you to "learn" from :-)
>>>> 
>>>> EdB
>>>> 
>>>> 
>>>> 
>>>> On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>> No worries.  Might be a good way for me to learn how it works by getting
>>>>> it
>>>>> to work.
>>>>> 
>>>>> 
>>>>> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>> 
>>>>>> Uh oh... Turns out I was testing against an outdated ASJS lib
>>>>>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>>>>>> iteration of FlexJS. Sorry about that. I will work on that today, but
>>>>>> I don't have a lot of time, so it might be a while before I can catch
>>>>>> up, due to next week's travel to the land of golden opportunity.
>>>>>> 
>>>>>> EdB
>>>>>> 
>>>>>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>> And another update (things are going much better than I expected):
>>>>>>> FalconJx can now emit a fully functional version of the
>>>>>>> FlexJSTest_again demo application. You can see it in action here
>>>>>>> (provided you use Chrome or Firefox, I just noticed):
>>>>>>> 
>>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>> 
>>>>>>> Onwards and upwards ;-)
>>>>>>> 
>>>>>>> EdB
>>>>>>> 
>>>>>>> 
>>>>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>> wrote:
>>>>>>>> I'd have to look into it for specifics, but of the top of my head it
>>>>>>>> seems that this most depends on the implementation in the FlexJS JS
>>>>>>>> framework. Emitting the strings required by that framework should
>>>>>>>> really be easy enough. If needed we can "look forward" into AST to
>>>>>>>> look for binding information. I do this in several other places
>>>>>>>> already. Even the binding expressions shouldn't be too much of a
>>>>>>>> problem, again depending on how this will be handled by the JS
>>>>>>>> framework.
>>>>>>>> 
>>>>>>>> EdB
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>>>>>>>> whole
>>>>>>>>> other ball of work.
>>>>>>>>> 
>>>>>>>>> I think in FalconJX you might have to modify the node tree in several
>>>>>>>>> places
>>>>>>>>> when you hit a [Bindable] node.
>>>>>>>>> 
>>>>>>>>> It isn't working correctly in FalconJS either, but my "customer" needs
>>>>>>>>> it
>>>>>>>>> so
>>>>>>>>> I'm hacking a fix.
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>> 
>>>>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read
>>>>>>>>>> Metadata
>>>>>>>>>> and
>>>>>>>>>> Databinding information, so I guess it depends on the requirements
>>>>>>>>>> for
>>>>>>>>>> the
>>>>>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>>>>> 
>>>>>>>>>> EdB
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>>>>> 
>>>>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>>>> 
>>>>>>>>>>>> Another one popped into my head just now: I have a gut feeling
>>>>>>>>>>>> there
>>>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>>>>> constructors for the various classes. But I can't wrap around it
>>>>>>>>>>>> well
>>>>>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>>>>>>>>>>>> done
>>>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>>>>>>>>>>>> somehow
>>>>>>>>>>>> isn't "elegant". And that's in no way a comment on the
>>>>>>>>>>>> effectiveness
>>>>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>>>>> what you think.
>>>>>>>>>>>> 
>>>>>>>>>>>> Actually I think it works fine. The problem you are facing is with
>>>>>>>>>>>> the
>>>>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>>>>>>>>>>>> to
>>>>>>>>>>>> accomplish and it is circular from the perspective of using AS
>>>>>>>>>>>> within
>>>>>>>>>>>> MXML.
>>>>>>>>>>>> 
>>>>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>>>>>> emitter.
>>>>>>>>>>>> 
>>>>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>>>>>> child that knows about its parent I am blind. Like I said, the
>>>>>>>>>>>> block
>>>>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>>>>>> the fact there is recursion.
>>>>>>>>>>>> 
>>>>>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under
>>>>>>>>>>>> me
>>>>>>>>>>>> and lighting in the sky, there may be parts that could be
>>>>>>>>>>>> logicalized.
>>>>>>>>>>>> 
>>>>>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I
>>>>>>>>>>>> wrote.
>>>>>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>>>>>> alone for the time being.
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> EdB
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>>> wrote:
>>>>>>>>>>>> Mike,
>>>>>>>>>>>> 
>>>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>>> 
>>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>>>> additional work in your other projects? I did my best to leave all
>>>>>>>>>>>> the
>>>>>>>>>>>> APIs alone.
>>>>>>>>>>>> 
>>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>>>> suggest some kind of code review or something (I'm not used to
>>>>>>>>>>>> working
>>>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>>>>>>>>>>>> for
>>>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>>>>>>>>>>>> right
>>>>>>>>>>>> thing there. And finally (not really, but this is all I can think
>>>>>>>>>>>> of
>>>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>>>> "programming to interfaces, not implementations" part that we
>>>>>>>>>>>> nearly
>>>>>>>>>>>> adhere to, but not quite, we might have another look at that as
>>>>>>>>>>>> well.
>>>>>>>>>>>> 
>>>>>>>>>>>> EdB
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>> 
>>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>>>>>> touch the
>>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>>>>>>>>>>>> code.
>>>>>>>>>>> And
>>>>>>>>>>>> application code now.
>>>>>>>>>>>> 
>>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>>>>>> spaces. :)
>>>>>>>>>>>> 
>>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>>> having to chase
>>>>>>>>>>>> them right now.
>>>>>>>>>>>> 
>>>>>>>>>>>> Mike
>>>>>>>>>>> Alex Harui
>>>>>>>>>>> Flex SDK Team
>>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> --
>>>>>>>>> Alex Harui
>>>>>>>>> Flex SDK Team
>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> --
>>>>>>>> Ix Multimedia Software
>>>>>>>> 
>>>>>>>> Jan Luykenstraat 27
>>>>>>>> 3521 VB Utrecht
>>>>>>>> 
>>>>>>>> T. 06-51952295
>>>>>>>> I. www.ixsoftware.nl
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> --
>>>>>>> Ix Multimedia Software
>>>>>>> 
>>>>>>> Jan Luykenstraat 27
>>>>>>> 3521 VB Utrecht
>>>>>>> 
>>>>>>> T. 06-51952295
>>>>>>> I. www.ixsoftware.nl
>>>>>> 
>>>>>> 
>>>>> 
>>>>> --
>>>>> Alex Harui
>>>>> Flex SDK Team
>>>>> Adobe Systems, Inc.
>>>>> http://blogs.adobe.com/aharui
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Ix Multimedia Software
>>>> 
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>> 
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>> 
>>> 
>> 
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
> 
> 

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


Re: [FalconJx] progress update

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


On 3/30/13 7:54 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> I left out FlexGlobals on purpose, I plan to bring the Google Closure
> way of dealing with events to FlexJS. The GC way is not dependent on
> DOM based events and fits very snugly with the way Flex handles
> events.
BTW, do we need a DOM event for MouseEvents?

Also, I was going to work on IE8 compatibility soon.  Does Google Closure
events work well on ie8?  How much overhead is there for using it?

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
I left out FlexGlobals on purpose, I plan to bring the Google Closure
way of dealing with events to FlexJS. The GC way is not dependent on
DOM based events and fits very snugly with the way Flex handles
events.

In the mean time I've a method in the "main" HTML that is called Event
and that passes the event through to FlexGlobals for now.

EdB



On Sat, Mar 30, 2013 at 3:47 PM, Alex Harui <ah...@adobe.com> wrote:
> Hi Erik,
>
> I finally got time to try to switch over to FalconJX.  It produces js files
> and the app shows up, but the console shows an exception and the
> interactivity of the application is mostly broken because the generated js
> code has snippets like this:
>
> models.MyModel.prototype.set_labelText = function(value) {
>     var self = this;
>     if (value != self._labelText) {
>         self._labelText = value;
>         self.dispatchEvent(new Event("labelTextChanged"));
>     }
> };
>
> In the FalconJS output, we are calling FlexGlobals.newObject because Event
> is a special class in the browser that can't be instantiated via "new" and
> FlexJS is using these DOM Events.
>
> Did I miss a flag, or can I go about trying to intercept these calls and
> have them call FlexGlobals.newObject instead?
>
> -Alex
>
>
> On 3/29/13 11:58 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> Ok, we're back in business! I think this time I have been working with
>> the right version of FlexJS (the one with the timer and the drop down
>> list?) and it looks to work as advertised:
>>
>> http://people.apache.org/~erikdebruin/flexjs/
>>
>> Time to get packing for the long flight ;-)
>>
>> EdB
>>
>>
>>
>> On Fri, Mar 29, 2013 at 3:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>> Ah, and there's plenty left for you to "learn" from :-)
>>>
>>> EdB
>>>
>>>
>>>
>>> On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
>>>> No worries.  Might be a good way for me to learn how it works by getting it
>>>> to work.
>>>>
>>>>
>>>> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>
>>>>> Uh oh... Turns out I was testing against an outdated ASJS lib
>>>>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>>>>> iteration of FlexJS. Sorry about that. I will work on that today, but
>>>>> I don't have a lot of time, so it might be a while before I can catch
>>>>> up, due to next week's travel to the land of golden opportunity.
>>>>>
>>>>> EdB
>>>>>
>>>>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>>> And another update (things are going much better than I expected):
>>>>>> FalconJx can now emit a fully functional version of the
>>>>>> FlexJSTest_again demo application. You can see it in action here
>>>>>> (provided you use Chrome or Firefox, I just noticed):
>>>>>>
>>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>>>
>>>>>> Onwards and upwards ;-)
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>>>> I'd have to look into it for specifics, but of the top of my head it
>>>>>>> seems that this most depends on the implementation in the FlexJS JS
>>>>>>> framework. Emitting the strings required by that framework should
>>>>>>> really be easy enough. If needed we can "look forward" into AST to
>>>>>>> look for binding information. I do this in several other places
>>>>>>> already. Even the binding expressions shouldn't be too much of a
>>>>>>> problem, again depending on how this will be handled by the JS
>>>>>>> framework.
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>>>>>>> whole
>>>>>>>> other ball of work.
>>>>>>>>
>>>>>>>> I think in FalconJX you might have to modify the node tree in several
>>>>>>>> places
>>>>>>>> when you hit a [Bindable] node.
>>>>>>>>
>>>>>>>> It isn't working correctly in FalconJS either, but my "customer" needs
>>>>>>>> it
>>>>>>>> so
>>>>>>>> I'm hacking a fix.
>>>>>>>>
>>>>>>>>
>>>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>
>>>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read Metadata
>>>>>>>>> and
>>>>>>>>> Databinding information, so I guess it depends on the requirements for
>>>>>>>>> the
>>>>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>>>>
>>>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>>>
>>>>>>>>>>>> Another one popped into my head just now: I have a gut feeling there
>>>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>>>>> constructors for the various classes. But I can't wrap around it
>>>>>>>>>>>> well
>>>>>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>>>>>>>>>>>> done
>>>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>>>>>>>>>>>> somehow
>>>>>>>>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>>>>> what you think.
>>>>>>>>>>>
>>>>>>>>>>> Actually I think it works fine. The problem you are facing is with
>>>>>>>>>>> the
>>>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>>>>>>>>>>> to
>>>>>>>>>>> accomplish and it is circular from the perspective of using AS within
>>>>>>>>>>> MXML.
>>>>>>>>>>>
>>>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>>>>> emitter.
>>>>>>>>>>>
>>>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>>>>> child that knows about its parent I am blind. Like I said, the block
>>>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>>>>> the fact there is recursion.
>>>>>>>>>>>
>>>>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>>>>>>>>>> and lighting in the sky, there may be parts that could be
>>>>>>>>>>> logicalized.
>>>>>>>>>>>
>>>>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>>>>> alone for the time being.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> EdB
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>>> wrote:
>>>>>>>>>>>>> Mike,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>>>>
>>>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>>>>> additional work in your other projects? I did my best to leave all
>>>>>>>>>>>>> the
>>>>>>>>>>>>> APIs alone.
>>>>>>>>>>>>>
>>>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>>>>> suggest some kind of code review or something (I'm not used to
>>>>>>>>>>>>> working
>>>>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>>>>>>>>>>>>> for
>>>>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>>>>>>>>>>>>> right
>>>>>>>>>>>>> thing there. And finally (not really, but this is all I can think
>>>>>>>>>>>>> of
>>>>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>>>>> "programming to interfaces, not implementations" part that we
>>>>>>>>>>>>> nearly
>>>>>>>>>>>>> adhere to, but not quite, we might have another look at that as
>>>>>>>>>>>>> well.
>>>>>>>>>>>>>
>>>>>>>>>>>>> EdB
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>>>>> touch the
>>>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>>>>>>>>>>>>> code.
>>>>>>>>>> And
>>>>>>>>>>>>> application code now.
>>>>>>>>>>>>>
>>>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>>>>> spaces. :)
>>>>>>>>>>>>>
>>>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>>>> having to chase
>>>>>>>>>>>>> them right now.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Mike
>>>>>>>>>> Alex Harui
>>>>>>>>>> Flex SDK Team
>>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Alex Harui
>>>>>>>> Flex SDK Team
>>>>>>>> Adobe Systems, Inc.
>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Ix Multimedia Software
>>>>>>>
>>>>>>> Jan Luykenstraat 27
>>>>>>> 3521 VB Utrecht
>>>>>>>
>>>>>>> T. 06-51952295
>>>>>>> I. www.ixsoftware.nl
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Ix Multimedia Software
>>>>>>
>>>>>> Jan Luykenstraat 27
>>>>>> 3521 VB Utrecht
>>>>>>
>>>>>> T. 06-51952295
>>>>>> I. www.ixsoftware.nl
>>>>>
>>>>>
>>>>
>>>> --
>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui
>>>>
>>>
>>>
>>>
>>> --
>>> Ix Multimedia Software
>>>
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>>
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>>
>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
Hi Erik,

I finally got time to try to switch over to FalconJX.  It produces js files
and the app shows up, but the console shows an exception and the
interactivity of the application is mostly broken because the generated js
code has snippets like this:

models.MyModel.prototype.set_labelText = function(value) {
    var self = this;
    if (value != self._labelText) {
        self._labelText = value;
        self.dispatchEvent(new Event("labelTextChanged"));
    }
};

In the FalconJS output, we are calling FlexGlobals.newObject because Event
is a special class in the browser that can't be instantiated via "new" and
FlexJS is using these DOM Events.

Did I miss a flag, or can I go about trying to intercept these calls and
have them call FlexGlobals.newObject instead?

-Alex


On 3/29/13 11:58 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Ok, we're back in business! I think this time I have been working with
> the right version of FlexJS (the one with the timer and the drop down
> list?) and it looks to work as advertised:
> 
> http://people.apache.org/~erikdebruin/flexjs/
> 
> Time to get packing for the long flight ;-)
> 
> EdB
> 
> 
> 
> On Fri, Mar 29, 2013 at 3:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> Ah, and there's plenty left for you to "learn" from :-)
>> 
>> EdB
>> 
>> 
>> 
>> On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
>>> No worries.  Might be a good way for me to learn how it works by getting it
>>> to work.
>>> 
>>> 
>>> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>> 
>>>> Uh oh... Turns out I was testing against an outdated ASJS lib
>>>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>>>> iteration of FlexJS. Sorry about that. I will work on that today, but
>>>> I don't have a lot of time, so it might be a while before I can catch
>>>> up, due to next week's travel to the land of golden opportunity.
>>>> 
>>>> EdB
>>>> 
>>>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>> And another update (things are going much better than I expected):
>>>>> FalconJx can now emit a fully functional version of the
>>>>> FlexJSTest_again demo application. You can see it in action here
>>>>> (provided you use Chrome or Firefox, I just noticed):
>>>>> 
>>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>> 
>>>>> Onwards and upwards ;-)
>>>>> 
>>>>> EdB
>>>>> 
>>>>> 
>>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>>> I'd have to look into it for specifics, but of the top of my head it
>>>>>> seems that this most depends on the implementation in the FlexJS JS
>>>>>> framework. Emitting the strings required by that framework should
>>>>>> really be easy enough. If needed we can "look forward" into AST to
>>>>>> look for binding information. I do this in several other places
>>>>>> already. Even the binding expressions shouldn't be too much of a
>>>>>> problem, again depending on how this will be handled by the JS
>>>>>> framework.
>>>>>> 
>>>>>> EdB
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>>>>>> whole
>>>>>>> other ball of work.
>>>>>>> 
>>>>>>> I think in FalconJX you might have to modify the node tree in several
>>>>>>> places
>>>>>>> when you hit a [Bindable] node.
>>>>>>> 
>>>>>>> It isn't working correctly in FalconJS either, but my "customer" needs
>>>>>>> it
>>>>>>> so
>>>>>>> I'm hacking a fix.
>>>>>>> 
>>>>>>> 
>>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>> 
>>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read Metadata
>>>>>>>> and
>>>>>>>> Databinding information, so I guess it depends on the requirements for
>>>>>>>> the
>>>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>>> 
>>>>>>>> EdB
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>>> 
>>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com>
>>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>> 
>>>>>>>>>>> Another one popped into my head just now: I have a gut feeling there
>>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>>>> constructors for the various classes. But I can't wrap around it
>>>>>>>>>>> well
>>>>>>>>>>> enough to figure out whether it's wrong and if so, what might be
>>>>>>>>>>> done
>>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it
>>>>>>>>>>> somehow
>>>>>>>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>>>> what you think.
>>>>>>>>>> 
>>>>>>>>>> Actually I think it works fine. The problem you are facing is with
>>>>>>>>>> the
>>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying
>>>>>>>>>> to
>>>>>>>>>> accomplish and it is circular from the perspective of using AS within
>>>>>>>>>> MXML.
>>>>>>>>>> 
>>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>>>> emitter.
>>>>>>>>>> 
>>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>>>> child that knows about its parent I am blind. Like I said, the block
>>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>>>> the fact there is recursion.
>>>>>>>>>> 
>>>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>>>>>>>>> and lighting in the sky, there may be parts that could be
>>>>>>>>>> logicalized.
>>>>>>>>>> 
>>>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>>>> alone for the time being.
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>>> EdB
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>>> wrote:
>>>>>>>>>>>> Mike,
>>>>>>>>>>>> 
>>>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>>> 
>>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>>>> additional work in your other projects? I did my best to leave all
>>>>>>>>>>>> the
>>>>>>>>>>>> APIs alone.
>>>>>>>>>>>> 
>>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>>>> suggest some kind of code review or something (I'm not used to
>>>>>>>>>>>> working
>>>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room
>>>>>>>>>>>> for
>>>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the
>>>>>>>>>>>> right
>>>>>>>>>>>> thing there. And finally (not really, but this is all I can think
>>>>>>>>>>>> of
>>>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>>>> "programming to interfaces, not implementations" part that we
>>>>>>>>>>>> nearly
>>>>>>>>>>>> adhere to, but not quite, we might have another look at that as
>>>>>>>>>>>> well.
>>>>>>>>>>>> 
>>>>>>>>>>>> EdB
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>> 
>>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>>>> touch the
>>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of
>>>>>>>>>>>> code.
>>>>>>>>> And
>>>>>>>>>>>> application code now.
>>>>>>>>>>>> 
>>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>>>> spaces. :)
>>>>>>>>>>>> 
>>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>>> having to chase
>>>>>>>>>>>> them right now.
>>>>>>>>>>>> 
>>>>>>>>>>>> Mike
>>>>>>>>> Alex Harui
>>>>>>>>> Flex SDK Team
>>>>>>>>> Adobe Systems, Inc.
>>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>> 
>>>>>>>>> 
>>>>>>> 
>>>>>>> --
>>>>>>> Alex Harui
>>>>>>> Flex SDK Team
>>>>>>> Adobe Systems, Inc.
>>>>>>> http://blogs.adobe.com/aharui
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Ix Multimedia Software
>>>>>> 
>>>>>> Jan Luykenstraat 27
>>>>>> 3521 VB Utrecht
>>>>>> 
>>>>>> T. 06-51952295
>>>>>> I. www.ixsoftware.nl
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> Ix Multimedia Software
>>>>> 
>>>>> Jan Luykenstraat 27
>>>>> 3521 VB Utrecht
>>>>> 
>>>>> T. 06-51952295
>>>>> I. www.ixsoftware.nl
>>>> 
>>>> 
>>> 
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui
>>> 
>> 
>> 
>> 
>> --
>> Ix Multimedia Software
>> 
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>> 
>> T. 06-51952295
>> I. www.ixsoftware.nl
> 
> 

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Ok, we're back in business! I think this time I have been working with
the right version of FlexJS (the one with the timer and the drop down
list?) and it looks to work as advertised:

http://people.apache.org/~erikdebruin/flexjs/

Time to get packing for the long flight ;-)

EdB



On Fri, Mar 29, 2013 at 3:15 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> Ah, and there's plenty left for you to "learn" from :-)
>
> EdB
>
>
>
> On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
>> No worries.  Might be a good way for me to learn how it works by getting it
>> to work.
>>
>>
>> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>
>>> Uh oh... Turns out I was testing against an outdated ASJS lib
>>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>>> iteration of FlexJS. Sorry about that. I will work on that today, but
>>> I don't have a lot of time, so it might be a while before I can catch
>>> up, due to next week's travel to the land of golden opportunity.
>>>
>>> EdB
>>>
>>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>> And another update (things are going much better than I expected):
>>>> FalconJx can now emit a fully functional version of the
>>>> FlexJSTest_again demo application. You can see it in action here
>>>> (provided you use Chrome or Firefox, I just noticed):
>>>>
>>>> http://people.apache.org/~erikdebruin/flexjs/
>>>>
>>>> Onwards and upwards ;-)
>>>>
>>>> EdB
>>>>
>>>>
>>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>>> I'd have to look into it for specifics, but of the top of my head it
>>>>> seems that this most depends on the implementation in the FlexJS JS
>>>>> framework. Emitting the strings required by that framework should
>>>>> really be easy enough. If needed we can "look forward" into AST to
>>>>> look for binding information. I do this in several other places
>>>>> already. Even the binding expressions shouldn't be too much of a
>>>>> problem, again depending on how this will be handled by the JS
>>>>> framework.
>>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>>>>> whole
>>>>>> other ball of work.
>>>>>>
>>>>>> I think in FalconJX you might have to modify the node tree in several
>>>>>> places
>>>>>> when you hit a [Bindable] node.
>>>>>>
>>>>>> It isn't working correctly in FalconJS either, but my "customer" needs it
>>>>>> so
>>>>>> I'm hacking a fix.
>>>>>>
>>>>>>
>>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>
>>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read Metadata
>>>>>>> and
>>>>>>> Databinding information, so I guess it depends on the requirements for the
>>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>>
>>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>>
>>>>>>>>
>>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>>
>>>>>>>>>> Another one popped into my head just now: I have a gut feeling there
>>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>>> constructors for the various classes. But I can't wrap around it well
>>>>>>>>>> enough to figure out whether it's wrong and if so, what might be done
>>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it somehow
>>>>>>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>>> what you think.
>>>>>>>>>
>>>>>>>>> Actually I think it works fine. The problem you are facing is with the
>>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying to
>>>>>>>>> accomplish and it is circular from the perspective of using AS within
>>>>>>>>> MXML.
>>>>>>>>>
>>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>>> emitter.
>>>>>>>>>
>>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>>> child that knows about its parent I am blind. Like I said, the block
>>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>>> the fact there is recursion.
>>>>>>>>>
>>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>>>>>>>> and lighting in the sky, there may be parts that could be logicalized.
>>>>>>>>>
>>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>>> alone for the time being.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>>> wrote:
>>>>>>>>>>> Mike,
>>>>>>>>>>>
>>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>>
>>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>>> additional work in your other projects? I did my best to leave all the
>>>>>>>>>>> APIs alone.
>>>>>>>>>>>
>>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>>> suggest some kind of code review or something (I'm not used to working
>>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room for
>>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the right
>>>>>>>>>>> thing there. And finally (not really, but this is all I can think of
>>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>>> "programming to interfaces, not implementations" part that we nearly
>>>>>>>>>>> adhere to, but not quite, we might have another look at that as well.
>>>>>>>>>>>
>>>>>>>>>>> EdB
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>>
>>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>>> touch the
>>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of code.
>>>>>>>> And
>>>>>>>>>>>> application code now.
>>>>>>>>>>>>
>>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>>> spaces. :)
>>>>>>>>>>>>
>>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>>> having to chase
>>>>>>>>>>>> them right now.
>>>>>>>>>>>>
>>>>>>>>>>>> Mike
>>>>>>>> Alex Harui
>>>>>>>> Flex SDK Team
>>>>>>>> Adobe Systems, Inc.
>>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Alex Harui
>>>>>> Flex SDK Team
>>>>>> Adobe Systems, Inc.
>>>>>> http://blogs.adobe.com/aharui
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Ix Multimedia Software
>>>>>
>>>>> Jan Luykenstraat 27
>>>>> 3521 VB Utrecht
>>>>>
>>>>> T. 06-51952295
>>>>> I. www.ixsoftware.nl
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>
>>>
>>
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Ah, and there's plenty left for you to "learn" from :-)

EdB



On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
> No worries.  Might be a good way for me to learn how it works by getting it
> to work.
>
>
> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> Uh oh... Turns out I was testing against an outdated ASJS lib
>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>> iteration of FlexJS. Sorry about that. I will work on that today, but
>> I don't have a lot of time, so it might be a while before I can catch
>> up, due to next week's travel to the land of golden opportunity.
>>
>> EdB
>>
>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>> And another update (things are going much better than I expected):
>>> FalconJx can now emit a fully functional version of the
>>> FlexJSTest_again demo application. You can see it in action here
>>> (provided you use Chrome or Firefox, I just noticed):
>>>
>>> http://people.apache.org/~erikdebruin/flexjs/
>>>
>>> Onwards and upwards ;-)
>>>
>>> EdB
>>>
>>>
>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>> I'd have to look into it for specifics, but of the top of my head it
>>>> seems that this most depends on the implementation in the FlexJS JS
>>>> framework. Emitting the strings required by that framework should
>>>> really be easy enough. If needed we can "look forward" into AST to
>>>> look for binding information. I do this in several other places
>>>> already. Even the binding expressions shouldn't be too much of a
>>>> problem, again depending on how this will be handled by the JS
>>>> framework.
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>>>> whole
>>>>> other ball of work.
>>>>>
>>>>> I think in FalconJX you might have to modify the node tree in several
>>>>> places
>>>>> when you hit a [Bindable] node.
>>>>>
>>>>> It isn't working correctly in FalconJS either, but my "customer" needs it
>>>>> so
>>>>> I'm hacking a fix.
>>>>>
>>>>>
>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>
>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read Metadata
>>>>>> and
>>>>>> Databinding information, so I guess it depends on the requirements for the
>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>
>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>
>>>>>>>
>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>
>>>>>>>>> Another one popped into my head just now: I have a gut feeling there
>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>> constructors for the various classes. But I can't wrap around it well
>>>>>>>>> enough to figure out whether it's wrong and if so, what might be done
>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it somehow
>>>>>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>> what you think.
>>>>>>>>
>>>>>>>> Actually I think it works fine. The problem you are facing is with the
>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying to
>>>>>>>> accomplish and it is circular from the perspective of using AS within
>>>>>>>> MXML.
>>>>>>>>
>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>> emitter.
>>>>>>>>
>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>> child that knows about its parent I am blind. Like I said, the block
>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>> the fact there is recursion.
>>>>>>>>
>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>>>>>>> and lighting in the sky, there may be parts that could be logicalized.
>>>>>>>>
>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>> alone for the time being.
>>>>>>>>
>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>> wrote:
>>>>>>>>>> Mike,
>>>>>>>>>>
>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>
>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>> additional work in your other projects? I did my best to leave all the
>>>>>>>>>> APIs alone.
>>>>>>>>>>
>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>> suggest some kind of code review or something (I'm not used to working
>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room for
>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the right
>>>>>>>>>> thing there. And finally (not really, but this is all I can think of
>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>> "programming to interfaces, not implementations" part that we nearly
>>>>>>>>>> adhere to, but not quite, we might have another look at that as well.
>>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>
>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>> touch the
>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of code.
>>>>>>> And
>>>>>>>>>>> application code now.
>>>>>>>>>>>
>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>> spaces. :)
>>>>>>>>>>>
>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>> having to chase
>>>>>>>>>>> them right now.
>>>>>>>>>>>
>>>>>>>>>>> Mike
>>>>>>> Alex Harui
>>>>>>> Flex SDK Team
>>>>>>> Adobe Systems, Inc.
>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>
>>>>>>>
>>>>>
>>>>> --
>>>>> Alex Harui
>>>>> Flex SDK Team
>>>>> Adobe Systems, Inc.
>>>>> http://blogs.adobe.com/aharui
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>
>>>
>>>
>>> --
>>> Ix Multimedia Software
>>>
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>>
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>>
>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Nearly there...

EdB



On Fri, Mar 29, 2013 at 2:30 PM, Alex Harui <ah...@adobe.com> wrote:
> No worries.  Might be a good way for me to learn how it works by getting it
> to work.
>
>
> On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> Uh oh... Turns out I was testing against an outdated ASJS lib
>> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
>> iteration of FlexJS. Sorry about that. I will work on that today, but
>> I don't have a lot of time, so it might be a while before I can catch
>> up, due to next week's travel to the land of golden opportunity.
>>
>> EdB
>>
>> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>> And another update (things are going much better than I expected):
>>> FalconJx can now emit a fully functional version of the
>>> FlexJSTest_again demo application. You can see it in action here
>>> (provided you use Chrome or Firefox, I just noticed):
>>>
>>> http://people.apache.org/~erikdebruin/flexjs/
>>>
>>> Onwards and upwards ;-)
>>>
>>> EdB
>>>
>>>
>>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>>> I'd have to look into it for specifics, but of the top of my head it
>>>> seems that this most depends on the implementation in the FlexJS JS
>>>> framework. Emitting the strings required by that framework should
>>>> really be easy enough. If needed we can "look forward" into AST to
>>>> look for binding information. I do this in several other places
>>>> already. Even the binding expressions shouldn't be too much of a
>>>> problem, again depending on how this will be handled by the JS
>>>> framework.
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>>>> whole
>>>>> other ball of work.
>>>>>
>>>>> I think in FalconJX you might have to modify the node tree in several
>>>>> places
>>>>> when you hit a [Bindable] node.
>>>>>
>>>>> It isn't working correctly in FalconJS either, but my "customer" needs it
>>>>> so
>>>>> I'm hacking a fix.
>>>>>
>>>>>
>>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>
>>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read Metadata
>>>>>> and
>>>>>> Databinding information, so I guess it depends on the requirements for the
>>>>>> emitted JS if I can easily implement this ;-)
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>>>
>>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>>>
>>>>>>>
>>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>>>
>>>>>>>>> Another one popped into my head just now: I have a gut feeling there
>>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>>> constructors for the various classes. But I can't wrap around it well
>>>>>>>>> enough to figure out whether it's wrong and if so, what might be done
>>>>>>>>> about it. Don't get me wrong, it works well, it's just that it somehow
>>>>>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>>> what you think.
>>>>>>>>
>>>>>>>> Actually I think it works fine. The problem you are facing is with the
>>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying to
>>>>>>>> accomplish and it is circular from the perspective of using AS within
>>>>>>>> MXML.
>>>>>>>>
>>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>>> emitter.
>>>>>>>>
>>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>>> child that knows about its parent I am blind. Like I said, the block
>>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>>> the fact there is recursion.
>>>>>>>>
>>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>>>>>>> and lighting in the sky, there may be parts that could be logicalized.
>>>>>>>>
>>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>>> alone for the time being.
>>>>>>>>
>>>>>>>>
>>>>>>>>> EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>>> wrote:
>>>>>>>>>> Mike,
>>>>>>>>>>
>>>>>>>>>> Just kidding ;-)
>>>>>>>>>>
>>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>>> additional work in your other projects? I did my best to leave all the
>>>>>>>>>> APIs alone.
>>>>>>>>>>
>>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>>> suggest some kind of code review or something (I'm not used to working
>>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>>> copied between the DOC and JS emitters, seems there might be room for
>>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>>> emitting within the MXML emitter, not really sure if I did the right
>>>>>>>>>> thing there. And finally (not really, but this is all I can think of
>>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>>> "programming to interfaces, not implementations" part that we nearly
>>>>>>>>>> adhere to, but not quite, we might have another look at that as well.
>>>>>>>>>>
>>>>>>>>>> EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>>> No thats not what I meant.
>>>>>>>>>>>
>>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>>> touch the
>>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of code.
>>>>>>> And
>>>>>>>>>>> application code now.
>>>>>>>>>>>
>>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>>> spaces. :)
>>>>>>>>>>>
>>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>>> having to chase
>>>>>>>>>>> them right now.
>>>>>>>>>>>
>>>>>>>>>>> Mike
>>>>>>> Alex Harui
>>>>>>> Flex SDK Team
>>>>>>> Adobe Systems, Inc.
>>>>>>> http://blogs.adobe.com/aharui
>>>>>>>
>>>>>>>
>>>>>
>>>>> --
>>>>> Alex Harui
>>>>> Flex SDK Team
>>>>> Adobe Systems, Inc.
>>>>> http://blogs.adobe.com/aharui
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>
>>>
>>>
>>> --
>>> Ix Multimedia Software
>>>
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>>
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>>
>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
No worries.  Might be a good way for me to learn how it works by getting it
to work.


On 3/29/13 12:31 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Uh oh... Turns out I was testing against an outdated ASJS lib
> (pre-fb614905ac), so FalconJx DOESN'T WORK against the current
> iteration of FlexJS. Sorry about that. I will work on that today, but
> I don't have a lot of time, so it might be a while before I can catch
> up, due to next week's travel to the land of golden opportunity.
> 
> EdB
> 
> On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> And another update (things are going much better than I expected):
>> FalconJx can now emit a fully functional version of the
>> FlexJSTest_again demo application. You can see it in action here
>> (provided you use Chrome or Firefox, I just noticed):
>> 
>> http://people.apache.org/~erikdebruin/flexjs/
>> 
>> Onwards and upwards ;-)
>> 
>> EdB
>> 
>> 
>> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>> I'd have to look into it for specifics, but of the top of my head it
>>> seems that this most depends on the implementation in the FlexJS JS
>>> framework. Emitting the strings required by that framework should
>>> really be easy enough. If needed we can "look forward" into AST to
>>> look for binding information. I do this in several other places
>>> already. Even the binding expressions shouldn't be too much of a
>>> problem, again depending on how this will be handled by the JS
>>> framework.
>>> 
>>> EdB
>>> 
>>> 
>>> 
>>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>>> [Bindable] results in extra codegen.  Binding expressions with {} is a
>>>> whole
>>>> other ball of work.
>>>> 
>>>> I think in FalconJX you might have to modify the node tree in several
>>>> places
>>>> when you hit a [Bindable] node.
>>>> 
>>>> It isn't working correctly in FalconJS either, but my "customer" needs it
>>>> so
>>>> I'm hacking a fix.
>>>> 
>>>> 
>>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>> 
>>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read Metadata
>>>>> and
>>>>> Databinding information, so I guess it depends on the requirements for the
>>>>> emitted JS if I can easily implement this ;-)
>>>>> 
>>>>> EdB
>>>>> 
>>>>> 
>>>>> 
>>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>> 
>>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>> 
>>>>>> 
>>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:
>>>>>> 
>>>>>>> 
>>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>> 
>>>>>>>> Another one popped into my head just now: I have a gut feeling there
>>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>>> the references to them are passed around as arguments in the
>>>>>>>> constructors for the various classes. But I can't wrap around it well
>>>>>>>> enough to figure out whether it's wrong and if so, what might be done
>>>>>>>> about it. Don't get me wrong, it works well, it's just that it somehow
>>>>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>>> what you think.
>>>>>>> 
>>>>>>> Actually I think it works fine. The problem you are facing is with the
>>>>>>> MXML emitter I am sure. This adds complexity to what you are trying to
>>>>>>> accomplish and it is circular from the perspective of using AS within
>>>>>>> MXML.
>>>>>>> 
>>>>>>> There is a buffer writer(output stream), a writer, a visitor and
>>>>>>> emitter.
>>>>>>> 
>>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>>> child that knows about its parent I am blind. Like I said, the block
>>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>>> the fact there is recursion.
>>>>>>> 
>>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>>>>>> and lighting in the sky, there may be parts that could be logicalized.
>>>>>>> 
>>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>>> alone for the time being.
>>>>>>> 
>>>>>>> 
>>>>>>>> EdB
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>>>> Mike,
>>>>>>>>> 
>>>>>>>>> Just kidding ;-)
>>>>>>>>> 
>>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>>> additional work in your other projects? I did my best to leave all the
>>>>>>>>> APIs alone.
>>>>>>>>> 
>>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>>> suggest some kind of code review or something (I'm not used to working
>>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>>> copied between the DOC and JS emitters, seems there might be room for
>>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>>> emitting within the MXML emitter, not really sure if I did the right
>>>>>>>>> thing there. And finally (not really, but this is all I can think of
>>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>>> "programming to interfaces, not implementations" part that we nearly
>>>>>>>>> adhere to, but not quite, we might have another look at that as well.
>>>>>>>>> 
>>>>>>>>> EdB
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>>> No thats not what I meant.
>>>>>>>>>> 
>>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>>> touch the
>>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of code.
>>>>>> And
>>>>>>>>>> application code now.
>>>>>>>>>> 
>>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>>> spaces. :)
>>>>>>>>>> 
>>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>>> having to chase
>>>>>>>>>> them right now.
>>>>>>>>>> 
>>>>>>>>>> Mike
>>>>>> Alex Harui
>>>>>> Flex SDK Team
>>>>>> Adobe Systems, Inc.
>>>>>> http://blogs.adobe.com/aharui
>>>>>> 
>>>>>> 
>>>> 
>>>> --
>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Ix Multimedia Software
>>> 
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>> 
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>> 
>> 
>> 
>> --
>> Ix Multimedia Software
>> 
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>> 
>> T. 06-51952295
>> I. www.ixsoftware.nl
> 
> 

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Uh oh... Turns out I was testing against an outdated ASJS lib
(pre-fb614905ac), so FalconJx DOESN'T WORK against the current
iteration of FlexJS. Sorry about that. I will work on that today, but
I don't have a lot of time, so it might be a while before I can catch
up, due to next week's travel to the land of golden opportunity.

EdB

On Thu, Mar 28, 2013 at 5:24 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> And another update (things are going much better than I expected):
> FalconJx can now emit a fully functional version of the
> FlexJSTest_again demo application. You can see it in action here
> (provided you use Chrome or Firefox, I just noticed):
>
> http://people.apache.org/~erikdebruin/flexjs/
>
> Onwards and upwards ;-)
>
> EdB
>
>
> On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> I'd have to look into it for specifics, but of the top of my head it
>> seems that this most depends on the implementation in the FlexJS JS
>> framework. Emitting the strings required by that framework should
>> really be easy enough. If needed we can "look forward" into AST to
>> look for binding information. I do this in several other places
>> already. Even the binding expressions shouldn't be too much of a
>> problem, again depending on how this will be handled by the JS
>> framework.
>>
>> EdB
>>
>>
>>
>> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>>> [Bindable] results in extra codegen.  Binding expressions with {} is a whole
>>> other ball of work.
>>>
>>> I think in FalconJX you might have to modify the node tree in several places
>>> when you hit a [Bindable] node.
>>>
>>> It isn't working correctly in FalconJS either, but my "customer" needs it so
>>> I'm hacking a fix.
>>>
>>>
>>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>
>>>> No, not yet. How is this set up in FlexJS? I'm sure I can read Metadata and
>>>> Databinding information, so I guess it depends on the requirements for the
>>>> emitted JS if I can easily implement this ;-)
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>>
>>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>>
>>>>>
>>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:
>>>>>
>>>>>>
>>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>>
>>>>>>> Another one popped into my head just now: I have a gut feeling there
>>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>>> the references to them are passed around as arguments in the
>>>>>>> constructors for the various classes. But I can't wrap around it well
>>>>>>> enough to figure out whether it's wrong and if so, what might be done
>>>>>>> about it. Don't get me wrong, it works well, it's just that it somehow
>>>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>>> what you think.
>>>>>>
>>>>>> Actually I think it works fine. The problem you are facing is with the
>>>>>> MXML emitter I am sure. This adds complexity to what you are trying to
>>>>>> accomplish and it is circular from the perspective of using AS within
>>>>>> MXML.
>>>>>>
>>>>>> There is a buffer writer(output stream), a writer, a visitor and emitter.
>>>>>>
>>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>>> child that knows about its parent I am blind. Like I said, the block
>>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>>> the fact there is recursion.
>>>>>>
>>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>>>>> and lighting in the sky, there may be parts that could be logicalized.
>>>>>>
>>>>>> I have another full compiler in Randori that I am going to use as a
>>>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>>> alone for the time being.
>>>>>>
>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>>> wrote:
>>>>>>>> Mike,
>>>>>>>>
>>>>>>>> Just kidding ;-)
>>>>>>>>
>>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>>> additional work in your other projects? I did my best to leave all the
>>>>>>>> APIs alone.
>>>>>>>>
>>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>>> suggest some kind of code review or something (I'm not used to working
>>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>>> copied between the DOC and JS emitters, seems there might be room for
>>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>>> emitting within the MXML emitter, not really sure if I did the right
>>>>>>>> thing there. And finally (not really, but this is all I can think of
>>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>>> "programming to interfaces, not implementations" part that we nearly
>>>>>>>> adhere to, but not quite, we might have another look at that as well.
>>>>>>>>
>>>>>>>> EdB
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>>> No thats not what I meant.
>>>>>>>>>
>>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>>> touch the
>>>>>>>>> core framework for weeks and it is compiling 1000's of lines of code.
>>>>> And
>>>>>>>>> application code now.
>>>>>>>>>
>>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>>> spaces. :)
>>>>>>>>>
>>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>>> having to chase
>>>>>>>>> them right now.
>>>>>>>>>
>>>>>>>>> Mike
>>>>> Alex Harui
>>>>> Flex SDK Team
>>>>> Adobe Systems, Inc.
>>>>> http://blogs.adobe.com/aharui
>>>>>
>>>>>
>>>
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui
>>>
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
And another update (things are going much better than I expected):
FalconJx can now emit a fully functional version of the
FlexJSTest_again demo application. You can see it in action here
(provided you use Chrome or Firefox, I just noticed):

http://people.apache.org/~erikdebruin/flexjs/

Onwards and upwards ;-)

EdB


On Wed, Mar 27, 2013 at 9:58 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> I'd have to look into it for specifics, but of the top of my head it
> seems that this most depends on the implementation in the FlexJS JS
> framework. Emitting the strings required by that framework should
> really be easy enough. If needed we can "look forward" into AST to
> look for binding information. I do this in several other places
> already. Even the binding expressions shouldn't be too much of a
> problem, again depending on how this will be handled by the JS
> framework.
>
> EdB
>
>
>
> On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
>> [Bindable] results in extra codegen.  Binding expressions with {} is a whole
>> other ball of work.
>>
>> I think in FalconJX you might have to modify the node tree in several places
>> when you hit a [Bindable] node.
>>
>> It isn't working correctly in FalconJS either, but my "customer" needs it so
>> I'm hacking a fix.
>>
>>
>> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>
>>> No, not yet. How is this set up in FlexJS? I'm sure I can read Metadata and
>>> Databinding information, so I guess it depends on the requirements for the
>>> emitted JS if I can easily implement this ;-)
>>>
>>> EdB
>>>
>>>
>>>
>>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>>
>>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>>
>>>>
>>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:
>>>>
>>>>>
>>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>>
>>>>>> Another one popped into my head just now: I have a gut feeling there
>>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>>> the references to them are passed around as arguments in the
>>>>>> constructors for the various classes. But I can't wrap around it well
>>>>>> enough to figure out whether it's wrong and if so, what might be done
>>>>>> about it. Don't get me wrong, it works well, it's just that it somehow
>>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>>>> or quality of your code, just something I thought I'd share and see
>>>>>> what you think.
>>>>>
>>>>> Actually I think it works fine. The problem you are facing is with the
>>>>> MXML emitter I am sure. This adds complexity to what you are trying to
>>>>> accomplish and it is circular from the perspective of using AS within
>>>>> MXML.
>>>>>
>>>>> There is a buffer writer(output stream), a writer, a visitor and emitter.
>>>>>
>>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>>> child that knows about its parent I am blind. Like I said, the block
>>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>>> the fact there is recursion.
>>>>>
>>>>> If you can think of a more elegant way to set it up, by  all means
>>>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>>>> and lighting in the sky, there may be parts that could be logicalized.
>>>>>
>>>>> I have another full compiler in Randori that I am going to use as a
>>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>>> So I guess we both can experiment, we can agree to leave the core
>>>>> alone for the time being.
>>>>>
>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>>> wrote:
>>>>>>> Mike,
>>>>>>>
>>>>>>> Just kidding ;-)
>>>>>>>
>>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>>> additional work in your other projects? I did my best to leave all the
>>>>>>> APIs alone.
>>>>>>>
>>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>>> suggest some kind of code review or something (I'm not used to working
>>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>>> copied between the DOC and JS emitters, seems there might be room for
>>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>>> emitting within the MXML emitter, not really sure if I did the right
>>>>>>> thing there. And finally (not really, but this is all I can think of
>>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>>> "programming to interfaces, not implementations" part that we nearly
>>>>>>> adhere to, but not quite, we might have another look at that as well.
>>>>>>>
>>>>>>> EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>>> No thats not what I meant.
>>>>>>>>
>>>>>>>> I am saying with the Randori project compiler, I have not had to
>>>> touch the
>>>>>>>> core framework for weeks and it is compiling 1000's of lines of code.
>>>> And
>>>>>>>> application code now.
>>>>>>>>
>>>>>>>> What I meant to say was, the design keeps people in the correct
>>>> spaces. :)
>>>>>>>>
>>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>>> having to chase
>>>>>>>> them right now.
>>>>>>>>
>>>>>>>> Mike
>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui
>>>>
>>>>
>>
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
I'd have to look into it for specifics, but of the top of my head it
seems that this most depends on the implementation in the FlexJS JS
framework. Emitting the strings required by that framework should
really be easy enough. If needed we can "look forward" into AST to
look for binding information. I do this in several other places
already. Even the binding expressions shouldn't be too much of a
problem, again depending on how this will be handled by the JS
framework.

EdB



On Wed, Mar 27, 2013 at 9:36 PM, Alex Harui <ah...@adobe.com> wrote:
> [Bindable] results in extra codegen.  Binding expressions with {} is a whole
> other ball of work.
>
> I think in FalconJX you might have to modify the node tree in several places
> when you hit a [Bindable] node.
>
> It isn't working correctly in FalconJS either, but my "customer" needs it so
> I'm hacking a fix.
>
>
> On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> No, not yet. How is this set up in FlexJS? I'm sure I can read Metadata and
>> Databinding information, so I guess it depends on the requirements for the
>> emitted JS if I can easily implement this ;-)
>>
>> EdB
>>
>>
>>
>> On Wednesday, March 27, 2013, Alex Harui wrote:
>>
>>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>>>
>>>
>>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:
>>>
>>>>
>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>>
>>>>> Another one popped into my head just now: I have a gut feeling there
>>>>> is a bit of circular logic going on in the whole 'backend',
>>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>>> the references to them are passed around as arguments in the
>>>>> constructors for the various classes. But I can't wrap around it well
>>>>> enough to figure out whether it's wrong and if so, what might be done
>>>>> about it. Don't get me wrong, it works well, it's just that it somehow
>>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>>> or quality of your code, just something I thought I'd share and see
>>>>> what you think.
>>>>
>>>> Actually I think it works fine. The problem you are facing is with the
>>>> MXML emitter I am sure. This adds complexity to what you are trying to
>>>> accomplish and it is circular from the perspective of using AS within
>>>> MXML.
>>>>
>>>> There is a buffer writer(output stream), a writer, a visitor and emitter.
>>>>
>>>> Each one takes a dependency of its parent. Trust me, if there is a
>>>> child that knows about its parent I am blind. Like I said, the block
>>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>>> the fact there is recursion.
>>>>
>>>> If you can think of a more elegant way to set it up, by  all means
>>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>>> and lighting in the sky, there may be parts that could be logicalized.
>>>>
>>>> I have another full compiler in Randori that I am going to use as a
>>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>>> So I guess we both can experiment, we can agree to leave the core
>>>> alone for the time being.
>>>>
>>>>
>>>>> EdB
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>>> wrote:
>>>>>> Mike,
>>>>>>
>>>>>> Just kidding ;-)
>>>>>>
>>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>>> additional work in your other projects? I did my best to leave all the
>>>>>> APIs alone.
>>>>>>
>>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>>> suggest some kind of code review or something (I'm not used to working
>>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>>> with the spirit of the rest of the code, but there are some areas
>>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>>> copied between the DOC and JS emitters, seems there might be room for
>>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>>> emitting within the MXML emitter, not really sure if I did the right
>>>>>> thing there. And finally (not really, but this is all I can think of
>>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>>> "programming to interfaces, not implementations" part that we nearly
>>>>>> adhere to, but not quite, we might have another look at that as well.
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>>> <ap...@teotigraphix.com> wrote:
>>>>>>> No thats not what I meant.
>>>>>>>
>>>>>>> I am saying with the Randori project compiler, I have not had to
>>> touch the
>>>>>>> core framework for weeks and it is compiling 1000's of lines of code.
>>> And
>>>>>>> application code now.
>>>>>>>
>>>>>>> What I meant to say was, the design keeps people in the correct
>>> spaces. :)
>>>>>>>
>>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>>> having to chase
>>>>>>> them right now.
>>>>>>>
>>>>>>> Mike
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui
>>>
>>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
[Bindable] results in extra codegen.  Binding expressions with {} is a whole
other ball of work.

I think in FalconJX you might have to modify the node tree in several places
when you hit a [Bindable] node.

It isn't working correctly in FalconJS either, but my "customer" needs it so
I'm hacking a fix.


On 3/27/13 1:28 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> No, not yet. How is this set up in FlexJS? I'm sure I can read Metadata and
> Databinding information, so I guess it depends on the requirements for the
> emitted JS if I can easily implement this ;-)
> 
> EdB
> 
> 
> 
> On Wednesday, March 27, 2013, Alex Harui wrote:
> 
>> Does FalconJX handle [Bindable]?  My "customer" is using it.
>> 
>> 
>> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:
>> 
>>> 
>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>> 
>>>> Another one popped into my head just now: I have a gut feeling there
>>>> is a bit of circular logic going on in the whole 'backend',
>>>> 'blockwalker' and 'emitter' construct. More specifically in the way
>>>> the references to them are passed around as arguments in the
>>>> constructors for the various classes. But I can't wrap around it well
>>>> enough to figure out whether it's wrong and if so, what might be done
>>>> about it. Don't get me wrong, it works well, it's just that it somehow
>>>> isn't "elegant". And that's in no way a comment on the effectiveness
>>>> or quality of your code, just something I thought I'd share and see
>>>> what you think.
>>> 
>>> Actually I think it works fine. The problem you are facing is with the
>>> MXML emitter I am sure. This adds complexity to what you are trying to
>>> accomplish and it is circular from the perspective of using AS within
>>> MXML.
>>> 
>>> There is a buffer writer(output stream), a writer, a visitor and emitter.
>>> 
>>> Each one takes a dependency of its parent. Trust me, if there is a
>>> child that knows about its parent I am blind. Like I said, the block
>>> walker is a visitor and the emitter is a visitor. You cannot escape
>>> the fact there is recursion.
>>> 
>>> If you can think of a more elegant way to set it up, by  all means
>>> write a prototype. Remember, I wrote this with an atom bomb under me
>>> and lighting in the sky, there may be parts that could be logicalized.
>>> 
>>> I have another full compiler in Randori that I am going to use as a
>>> proof of concept with compiler plugins and my ASDoc compiler I wrote.
>>> So I guess we both can experiment, we can agree to leave the core
>>> alone for the time being.
>>> 
>>> 
>>>> EdB
>>>> 
>>>> 
>>>> 
>>>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
>> wrote:
>>>>> Mike,
>>>>> 
>>>>> Just kidding ;-)
>>>>> 
>>>>> I'm really happy with FalconJx, once you get to know it it's a
>>>>> pleasure to work with. I hope my last commits didn't give you any
>>>>> additional work in your other projects? I did my best to leave all the
>>>>> APIs alone.
>>>>> 
>>>>> There are plenty of TODOs in the code, and I would also like to
>>>>> suggest some kind of code review or something (I'm not used to working
>>>>> in groups, but that seems like a nice thing to do), since I've been
>>>>> piling on stuff. I did my best to keep everything clean and in line
>>>>> with the spirit of the rest of the code, but there are some areas
>>>>> where I'd like to have a second opinion. Like with the code that is
>>>>> copied between the DOC and JS emitters, seems there might be room for
>>>>> improvement there. Also of note is the way I've implemented the AS
>>>>> emitting within the MXML emitter, not really sure if I did the right
>>>>> thing there. And finally (not really, but this is all I can think of
>>>>> for now, after the marathon hacking I did today) there is the whole
>>>>> "programming to interfaces, not implementations" part that we nearly
>>>>> adhere to, but not quite, we might have another look at that as well.
>>>>> 
>>>>> EdB
>>>>> 
>>>>> 
>>>>> 
>>>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>>>> <ap...@teotigraphix.com> wrote:
>>>>>> No thats not what I meant.
>>>>>> 
>>>>>> I am saying with the Randori project compiler, I have not had to
>> touch the
>>>>>> core framework for weeks and it is compiling 1000's of lines of code.
>> And
>>>>>> application code now.
>>>>>> 
>>>>>> What I meant to say was, the design keeps people in the correct
>> spaces. :)
>>>>>> 
>>>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>>>> having to chase
>>>>>> them right now.
>>>>>> 
>>>>>> Mike
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
>> 

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
No, not yet. How is this set up in FlexJS? I'm sure I can read Metadata and
Databinding information, so I guess it depends on the requirements for the
emitted JS if I can easily implement this ;-)

EdB



On Wednesday, March 27, 2013, Alex Harui wrote:

> Does FalconJX handle [Bindable]?  My "customer" is using it.
>
>
> On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:
>
> >
> > Quoting Erik de Bruin <er...@ixsoftware.nl>:
> >
> >> Another one popped into my head just now: I have a gut feeling there
> >> is a bit of circular logic going on in the whole 'backend',
> >> 'blockwalker' and 'emitter' construct. More specifically in the way
> >> the references to them are passed around as arguments in the
> >> constructors for the various classes. But I can't wrap around it well
> >> enough to figure out whether it's wrong and if so, what might be done
> >> about it. Don't get me wrong, it works well, it's just that it somehow
> >> isn't "elegant". And that's in no way a comment on the effectiveness
> >> or quality of your code, just something I thought I'd share and see
> >> what you think.
> >
> > Actually I think it works fine. The problem you are facing is with the
> > MXML emitter I am sure. This adds complexity to what you are trying to
> > accomplish and it is circular from the perspective of using AS within
> > MXML.
> >
> > There is a buffer writer(output stream), a writer, a visitor and emitter.
> >
> > Each one takes a dependency of its parent. Trust me, if there is a
> > child that knows about its parent I am blind. Like I said, the block
> > walker is a visitor and the emitter is a visitor. You cannot escape
> > the fact there is recursion.
> >
> > If you can think of a more elegant way to set it up, by  all means
> > write a prototype. Remember, I wrote this with an atom bomb under me
> > and lighting in the sky, there may be parts that could be logicalized.
> >
> > I have another full compiler in Randori that I am going to use as a
> > proof of concept with compiler plugins and my ASDoc compiler I wrote.
> > So I guess we both can experiment, we can agree to leave the core
> > alone for the time being.
> >
> >
> >> EdB
> >>
> >>
> >>
> >> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl>
> wrote:
> >>> Mike,
> >>>
> >>> Just kidding ;-)
> >>>
> >>> I'm really happy with FalconJx, once you get to know it it's a
> >>> pleasure to work with. I hope my last commits didn't give you any
> >>> additional work in your other projects? I did my best to leave all the
> >>> APIs alone.
> >>>
> >>> There are plenty of TODOs in the code, and I would also like to
> >>> suggest some kind of code review or something (I'm not used to working
> >>> in groups, but that seems like a nice thing to do), since I've been
> >>> piling on stuff. I did my best to keep everything clean and in line
> >>> with the spirit of the rest of the code, but there are some areas
> >>> where I'd like to have a second opinion. Like with the code that is
> >>> copied between the DOC and JS emitters, seems there might be room for
> >>> improvement there. Also of note is the way I've implemented the AS
> >>> emitting within the MXML emitter, not really sure if I did the right
> >>> thing there. And finally (not really, but this is all I can think of
> >>> for now, after the marathon hacking I did today) there is the whole
> >>> "programming to interfaces, not implementations" part that we nearly
> >>> adhere to, but not quite, we might have another look at that as well.
> >>>
> >>> EdB
> >>>
> >>>
> >>>
> >>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
> >>> <ap...@teotigraphix.com> wrote:
> >>>> No thats not what I meant.
> >>>>
> >>>> I am saying with the Randori project compiler, I have not had to
> touch the
> >>>> core framework for weeks and it is compiling 1000's of lines of code.
> And
> >>>> application code now.
> >>>>
> >>>> What I meant to say was, the design keeps people in the correct
> spaces. :)
> >>>>
> >>>> Note; I AM SURE there are as3 bugs coming, its just nice not
> >>>> having to chase
> >>>> them right now.
> >>>>
> >>>> Mike
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
Does FalconJX handle [Bindable]?  My "customer" is using it.


On 3/27/13 11:56 AM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:

> 
> Quoting Erik de Bruin <er...@ixsoftware.nl>:
> 
>> Another one popped into my head just now: I have a gut feeling there
>> is a bit of circular logic going on in the whole 'backend',
>> 'blockwalker' and 'emitter' construct. More specifically in the way
>> the references to them are passed around as arguments in the
>> constructors for the various classes. But I can't wrap around it well
>> enough to figure out whether it's wrong and if so, what might be done
>> about it. Don't get me wrong, it works well, it's just that it somehow
>> isn't "elegant". And that's in no way a comment on the effectiveness
>> or quality of your code, just something I thought I'd share and see
>> what you think.
> 
> Actually I think it works fine. The problem you are facing is with the
> MXML emitter I am sure. This adds complexity to what you are trying to
> accomplish and it is circular from the perspective of using AS within
> MXML.
> 
> There is a buffer writer(output stream), a writer, a visitor and emitter.
> 
> Each one takes a dependency of its parent. Trust me, if there is a
> child that knows about its parent I am blind. Like I said, the block
> walker is a visitor and the emitter is a visitor. You cannot escape
> the fact there is recursion.
> 
> If you can think of a more elegant way to set it up, by  all means
> write a prototype. Remember, I wrote this with an atom bomb under me
> and lighting in the sky, there may be parts that could be logicalized.
> 
> I have another full compiler in Randori that I am going to use as a
> proof of concept with compiler plugins and my ASDoc compiler I wrote.
> So I guess we both can experiment, we can agree to leave the core
> alone for the time being.
> 
> 
>> EdB
>> 
>> 
>> 
>> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>>> Mike,
>>> 
>>> Just kidding ;-)
>>> 
>>> I'm really happy with FalconJx, once you get to know it it's a
>>> pleasure to work with. I hope my last commits didn't give you any
>>> additional work in your other projects? I did my best to leave all the
>>> APIs alone.
>>> 
>>> There are plenty of TODOs in the code, and I would also like to
>>> suggest some kind of code review or something (I'm not used to working
>>> in groups, but that seems like a nice thing to do), since I've been
>>> piling on stuff. I did my best to keep everything clean and in line
>>> with the spirit of the rest of the code, but there are some areas
>>> where I'd like to have a second opinion. Like with the code that is
>>> copied between the DOC and JS emitters, seems there might be room for
>>> improvement there. Also of note is the way I've implemented the AS
>>> emitting within the MXML emitter, not really sure if I did the right
>>> thing there. And finally (not really, but this is all I can think of
>>> for now, after the marathon hacking I did today) there is the whole
>>> "programming to interfaces, not implementations" part that we nearly
>>> adhere to, but not quite, we might have another look at that as well.
>>> 
>>> EdB
>>> 
>>> 
>>> 
>>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>>> <ap...@teotigraphix.com> wrote:
>>>> No thats not what I meant.
>>>> 
>>>> I am saying with the Randori project compiler, I have not had to touch the
>>>> core framework for weeks and it is compiling 1000's of lines of code. And
>>>> application code now.
>>>> 
>>>> What I meant to say was, the design keeps people in the correct spaces. :)
>>>> 
>>>> Note; I AM SURE there are as3 bugs coming, its just nice not
>>>> having to chase
>>>> them right now.
>>>> 
>>>> Mike
>>>> 
>>>> 
>>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>> 
>>>>>> All I can say is its easy to fix things in the emitters. :)
>>>>> 
>>>>> 
>>>>> Thanks, I feel SO special now...
>>>>> 
>>>>> :-P
>>>>> 
>>>>> EdB
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> Ix Multimedia Software
>>>>> 
>>>>> Jan Luykenstraat 27
>>>>> 3521 VB Utrecht
>>>>> 
>>>>> T. 06-51952295
>>>>> I. www.ixsoftware.nl
>>>>> 
>>>> 
>>>> --
>>>> Michael Schmalle - Teoti Graphix, LLC
>>>> http://www.teotigraphix.com
>>>> http://blog.teotigraphix.com
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Ix Multimedia Software
>>> 
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>> 
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>> 
>> 
>> 
>> --
>> Ix Multimedia Software
>> 
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>> 
>> T. 06-51952295
>> I. www.ixsoftware.nl
>> 

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


Re: [FalconJx] progress update

Posted by Michael Schmalle <ap...@teotigraphix.com>.
Quoting Erik de Bruin <er...@ixsoftware.nl>:

> Another one popped into my head just now: I have a gut feeling there
> is a bit of circular logic going on in the whole 'backend',
> 'blockwalker' and 'emitter' construct. More specifically in the way
> the references to them are passed around as arguments in the
> constructors for the various classes. But I can't wrap around it well
> enough to figure out whether it's wrong and if so, what might be done
> about it. Don't get me wrong, it works well, it's just that it somehow
> isn't "elegant". And that's in no way a comment on the effectiveness
> or quality of your code, just something I thought I'd share and see
> what you think.

Actually I think it works fine. The problem you are facing is with the  
MXML emitter I am sure. This adds complexity to what you are trying to  
accomplish and it is circular from the perspective of using AS within  
MXML.

There is a buffer writer(output stream), a writer, a visitor and emitter.

Each one takes a dependency of its parent. Trust me, if there is a  
child that knows about its parent I am blind. Like I said, the block  
walker is a visitor and the emitter is a visitor. You cannot escape  
the fact there is recursion.

If you can think of a more elegant way to set it up, by  all means  
write a prototype. Remember, I wrote this with an atom bomb under me  
and lighting in the sky, there may be parts that could be logicalized.

I have another full compiler in Randori that I am going to use as a  
proof of concept with compiler plugins and my ASDoc compiler I wrote.  
So I guess we both can experiment, we can agree to leave the core  
alone for the time being.


> EdB
>
>
>
> On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> Mike,
>>
>> Just kidding ;-)
>>
>> I'm really happy with FalconJx, once you get to know it it's a
>> pleasure to work with. I hope my last commits didn't give you any
>> additional work in your other projects? I did my best to leave all the
>> APIs alone.
>>
>> There are plenty of TODOs in the code, and I would also like to
>> suggest some kind of code review or something (I'm not used to working
>> in groups, but that seems like a nice thing to do), since I've been
>> piling on stuff. I did my best to keep everything clean and in line
>> with the spirit of the rest of the code, but there are some areas
>> where I'd like to have a second opinion. Like with the code that is
>> copied between the DOC and JS emitters, seems there might be room for
>> improvement there. Also of note is the way I've implemented the AS
>> emitting within the MXML emitter, not really sure if I did the right
>> thing there. And finally (not really, but this is all I can think of
>> for now, after the marathon hacking I did today) there is the whole
>> "programming to interfaces, not implementations" part that we nearly
>> adhere to, but not quite, we might have another look at that as well.
>>
>> EdB
>>
>>
>>
>> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
>> <ap...@teotigraphix.com> wrote:
>>> No thats not what I meant.
>>>
>>> I am saying with the Randori project compiler, I have not had to touch the
>>> core framework for weeks and it is compiling 1000's of lines of code. And
>>> application code now.
>>>
>>> What I meant to say was, the design keeps people in the correct spaces. :)
>>>
>>> Note; I AM SURE there are as3 bugs coming, its just nice not  
>>> having to chase
>>> them right now.
>>>
>>> Mike
>>>
>>>
>>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>>
>>>>> All I can say is its easy to fix things in the emitters. :)
>>>>
>>>>
>>>> Thanks, I feel SO special now...
>>>>
>>>> :-P
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>>
>>>
>>> --
>>> Michael Schmalle - Teoti Graphix, LLC
>>> http://www.teotigraphix.com
>>> http://blog.teotigraphix.com
>>>
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl
>

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Another one popped into my head just now: I have a gut feeling there
is a bit of circular logic going on in the whole 'backend',
'blockwalker' and 'emitter' construct. More specifically in the way
the references to them are passed around as arguments in the
constructors for the various classes. But I can't wrap around it well
enough to figure out whether it's wrong and if so, what might be done
about it. Don't get me wrong, it works well, it's just that it somehow
isn't "elegant". And that's in no way a comment on the effectiveness
or quality of your code, just something I thought I'd share and see
what you think.

EdB



On Wed, Mar 27, 2013 at 7:41 PM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> Mike,
>
> Just kidding ;-)
>
> I'm really happy with FalconJx, once you get to know it it's a
> pleasure to work with. I hope my last commits didn't give you any
> additional work in your other projects? I did my best to leave all the
> APIs alone.
>
> There are plenty of TODOs in the code, and I would also like to
> suggest some kind of code review or something (I'm not used to working
> in groups, but that seems like a nice thing to do), since I've been
> piling on stuff. I did my best to keep everything clean and in line
> with the spirit of the rest of the code, but there are some areas
> where I'd like to have a second opinion. Like with the code that is
> copied between the DOC and JS emitters, seems there might be room for
> improvement there. Also of note is the way I've implemented the AS
> emitting within the MXML emitter, not really sure if I did the right
> thing there. And finally (not really, but this is all I can think of
> for now, after the marathon hacking I did today) there is the whole
> "programming to interfaces, not implementations" part that we nearly
> adhere to, but not quite, we might have another look at that as well.
>
> EdB
>
>
>
> On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
> <ap...@teotigraphix.com> wrote:
>> No thats not what I meant.
>>
>> I am saying with the Randori project compiler, I have not had to touch the
>> core framework for weeks and it is compiling 1000's of lines of code. And
>> application code now.
>>
>> What I meant to say was, the design keeps people in the correct spaces. :)
>>
>> Note; I AM SURE there are as3 bugs coming, its just nice not having to chase
>> them right now.
>>
>> Mike
>>
>>
>> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>>
>>>> All I can say is its easy to fix things in the emitters. :)
>>>
>>>
>>> Thanks, I feel SO special now...
>>>
>>> :-P
>>>
>>> EdB
>>>
>>>
>>>
>>> --
>>> Ix Multimedia Software
>>>
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>>
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>>>
>>
>> --
>> Michael Schmalle - Teoti Graphix, LLC
>> http://www.teotigraphix.com
>> http://blog.teotigraphix.com
>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Mike,

Just kidding ;-)

I'm really happy with FalconJx, once you get to know it it's a
pleasure to work with. I hope my last commits didn't give you any
additional work in your other projects? I did my best to leave all the
APIs alone.

There are plenty of TODOs in the code, and I would also like to
suggest some kind of code review or something (I'm not used to working
in groups, but that seems like a nice thing to do), since I've been
piling on stuff. I did my best to keep everything clean and in line
with the spirit of the rest of the code, but there are some areas
where I'd like to have a second opinion. Like with the code that is
copied between the DOC and JS emitters, seems there might be room for
improvement there. Also of note is the way I've implemented the AS
emitting within the MXML emitter, not really sure if I did the right
thing there. And finally (not really, but this is all I can think of
for now, after the marathon hacking I did today) there is the whole
"programming to interfaces, not implementations" part that we nearly
adhere to, but not quite, we might have another look at that as well.

EdB



On Wed, Mar 27, 2013 at 7:33 PM, Michael Schmalle
<ap...@teotigraphix.com> wrote:
> No thats not what I meant.
>
> I am saying with the Randori project compiler, I have not had to touch the
> core framework for weeks and it is compiling 1000's of lines of code. And
> application code now.
>
> What I meant to say was, the design keeps people in the correct spaces. :)
>
> Note; I AM SURE there are as3 bugs coming, its just nice not having to chase
> them right now.
>
> Mike
>
>
> Quoting Erik de Bruin <er...@ixsoftware.nl>:
>
>>> All I can say is its easy to fix things in the emitters. :)
>>
>>
>> Thanks, I feel SO special now...
>>
>> :-P
>>
>> EdB
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>>
>
> --
> Michael Schmalle - Teoti Graphix, LLC
> http://www.teotigraphix.com
> http://blog.teotigraphix.com
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Michael Schmalle <ap...@teotigraphix.com>.
No thats not what I meant.

I am saying with the Randori project compiler, I have not had to touch  
the core framework for weeks and it is compiling 1000's of lines of  
code. And application code now.

What I meant to say was, the design keeps people in the correct spaces. :)

Note; I AM SURE there are as3 bugs coming, its just nice not having to  
chase them right now.

Mike

Quoting Erik de Bruin <er...@ixsoftware.nl>:

>> All I can say is its easy to fix things in the emitters. :)
>
> Thanks, I feel SO special now...
>
> :-P
>
> EdB
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl
>

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
> All I can say is its easy to fix things in the emitters. :)

Thanks, I feel SO special now...

:-P

EdB



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Michael Schmalle <ap...@teotigraphix.com>.
Ah ok, this has to do with the emitter, I thought you were talking  
about language specific errors.

All I can say is its easy to fix things in the emitters. :)

Mike

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

> Static initializers were not being output correctly.
> Some goog.requires were not being listed.
>
>
> On 3/27/13 10:55 AM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:
>
>>
>> Quoting Alex Harui <ah...@adobe.com>:
>>
>>> Excellent.  I will try it out later today.  I have to quickly fix some
>>> FalconJS stuff for my potential "customer", but once I get past that I will
>>> see if FalconJX can generate the same code.
>>>
>>> I am hopeful that if I run into more of the kinds of errors I am fixing in
>>> FalconJS, that they will be easier to find and fix in FalconJX.
>>
>> You have been taling about these errors, can you list some of them. I
>> can give you an exact answer to whether you are going to hit them or
>> not.
>>
>>
>> Mike
>>
>>
>>>
>>> On 3/27/13 10:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>
>>>> Another update (have taken/will take some time to get this right  
>>>> this week):
>>>>
>>>> FalconJx can now parse both FlexJS MXML and AS reasonably correctly.
>>>> If run from the command line, it will now create the correct output
>>>> directories (bin/js-debug and bin/js-release) and emit all JS and HTML
>>>> files, both plain text (debug) and optimised using the GCC (release).
>>>> Please use these command line arguments:
>>>>
>>>> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerG
>>>> lo
>>>> bal/player
>>>> +playerglobal.version=11.1
>>>> -load-config="/Applications/Adobe Flash Builder
>>>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
>>>> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/
>>>> li
>>>> bs/FlexJSUI.swc
>>>> -js-output-type=FLEXJS
>>>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
>>>> -closure-lib=/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/lib
>>>> ra
>>>> ry
>>>> -sdk-js-lib=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/js/Fle
>>>> xJ
>>>> S/src
>>>> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src
>>>> /F
>>>> lexJSTest.mxml
>>>>
>>>> NOTE: please use the -sdk-js-lib argument to point to the library you
>>>> want to use, instead of the previous 'vanilla' themed one.
>>>>
>>>> Also worth mentioning: as of now, the application doesn't do anything
>>>> in the browser, due to some unfinished business in the emitted JS
>>>> (mainly places where 'goog' is still used, instead of FlexJS). This is
>>>> my todo for tomorrow...
>>>>
>>>> Have fun,
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Tue, Mar 26, 2013 at 11:33 PM, Om <bi...@gmail.com> wrote:
>>>>>>> So, I need to research more about how skinning works in HTML5,  
>>>>>>> but I have
>>>>>
>>>>>>>> this vague recollection that skins in HTML5 are entirely graphics.
>>>>>>>
>>>>>>>
>>>>>>> I dont think so.  SVG is part of the HTML5 spec now, so what  
>>>>>>> we are doing
>>>>>>> is completely legitimate.
>>>>>> That's sort of what I meant.  I think a skin in HTML5 doesn't have
>>>>>> sub-components, and is a bitmap or SVG.
>>>>>>
>>>>>
>>>>> Ah, got it.  I dint read your sentence that way earlier.
>>>>>
>>>>>
>>>>>>>> I also need to understand how an HTML5 button skin changes its visuals
>>>>>> with
>>>>>>>> hover/down/selected/focused/emphasized.  That would also  
>>>>>>>> educate how we
>>>>>> set
>>>>>>>> up a skinning model for FlexJS.
>>>>>>>>
>>>>>>>
>>>>>>> Here is an example: http://demos.madeinthenorth.com/slicker-buttons/#
>>>>>>> Notice how they use SVG in IE9 and CSS3 for Firefox and Webkit.  This
>>>>>> also
>>>>>>> shows how to use CSS to control the various states.
>>>>>> I took a look at this post. It uses the "hover" pseudo selector as
>>>>>> expected.
>>>>>> But the button did not have support for things like focused and
>>>>>> emphasized.
>>>>>>>
>>>>>>
>>>>>
>>>>> If you can share some examples you like, that would be useful for me.
>>>>>
>>>>>
>>>>>>>
>>>>>>
>>>>>>>
>>>>>>> A restriction on skins to not have sub-components would be  
>>>>>>> great IMHO.  A
>>>>>>> new suffix would be great as well.  One more modification from our
>>>>>> current
>>>>>>> spark skins would be to perhaps have a HostInterface instead of a
>>>>>>> HostComponent in skins.
>>>>>>>
>>>>>> Actually, I don't envision any sort of HostInterface or HostComponent
>>>>>> contract for skins.  The actual skins shouldn't really know  
>>>>>> anything about
>>>>>> the host.  The view bead, which sets up the sub-componentry for
>>>>>> the visuals
>>>>>> may bind to the component's model.
>>>>>
>>>>>
>>>>> In that case, it should bind to an interface of the component's model and
>>>>> not any specific implementation.
>>>>>
>>>>> Thanks,
>>>>> Om
>>>>
>>>>
>>>
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui
>>>
>>>
>
> --
> 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: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
Static initializers were not being output correctly.
Some goog.requires were not being listed.


On 3/27/13 10:55 AM, "Michael Schmalle" <ap...@teotigraphix.com> wrote:

> 
> Quoting Alex Harui <ah...@adobe.com>:
> 
>> Excellent.  I will try it out later today.  I have to quickly fix some
>> FalconJS stuff for my potential "customer", but once I get past that I will
>> see if FalconJX can generate the same code.
>> 
>> I am hopeful that if I run into more of the kinds of errors I am fixing in
>> FalconJS, that they will be easier to find and fix in FalconJX.
> 
> You have been taling about these errors, can you list some of them. I
> can give you an exact answer to whether you are going to hit them or
> not.
> 
> 
> Mike
> 
> 
>> 
>> On 3/27/13 10:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>> 
>>> Another update (have taken/will take some time to get this right this week):
>>> 
>>> FalconJx can now parse both FlexJS MXML and AS reasonably correctly.
>>> If run from the command line, it will now create the correct output
>>> directories (bin/js-debug and bin/js-release) and emit all JS and HTML
>>> files, both plain text (debug) and optimised using the GCC (release).
>>> Please use these command line arguments:
>>> 
>>> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerG
>>> lo
>>> bal/player
>>> +playerglobal.version=11.1
>>> -load-config="/Applications/Adobe Flash Builder
>>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
>>> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/
>>> li
>>> bs/FlexJSUI.swc
>>> -js-output-type=FLEXJS
>>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
>>> -closure-lib=/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/lib
>>> ra
>>> ry
>>> -sdk-js-lib=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/js/Fle
>>> xJ
>>> S/src
>>> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src
>>> /F
>>> lexJSTest.mxml
>>> 
>>> NOTE: please use the -sdk-js-lib argument to point to the library you
>>> want to use, instead of the previous 'vanilla' themed one.
>>> 
>>> Also worth mentioning: as of now, the application doesn't do anything
>>> in the browser, due to some unfinished business in the emitted JS
>>> (mainly places where 'goog' is still used, instead of FlexJS). This is
>>> my todo for tomorrow...
>>> 
>>> Have fun,
>>> 
>>> EdB
>>> 
>>> 
>>> 
>>> On Tue, Mar 26, 2013 at 11:33 PM, Om <bi...@gmail.com> wrote:
>>>>>> So, I need to research more about how skinning works in HTML5, but I have
>>>> 
>>>>>>> this vague recollection that skins in HTML5 are entirely graphics.
>>>>>> 
>>>>>> 
>>>>>> I dont think so.  SVG is part of the HTML5 spec now, so what we are doing
>>>>>> is completely legitimate.
>>>>> That's sort of what I meant.  I think a skin in HTML5 doesn't have
>>>>> sub-components, and is a bitmap or SVG.
>>>>> 
>>>> 
>>>> Ah, got it.  I dint read your sentence that way earlier.
>>>> 
>>>> 
>>>>>>> I also need to understand how an HTML5 button skin changes its visuals
>>>>> with
>>>>>>> hover/down/selected/focused/emphasized.  That would also educate how we
>>>>> set
>>>>>>> up a skinning model for FlexJS.
>>>>>>> 
>>>>>> 
>>>>>> Here is an example: http://demos.madeinthenorth.com/slicker-buttons/#
>>>>>> Notice how they use SVG in IE9 and CSS3 for Firefox and Webkit.  This
>>>>> also
>>>>>> shows how to use CSS to control the various states.
>>>>> I took a look at this post. It uses the "hover" pseudo selector as
>>>>> expected.
>>>>> But the button did not have support for things like focused and
>>>>> emphasized.
>>>>>> 
>>>>> 
>>>> 
>>>> If you can share some examples you like, that would be useful for me.
>>>> 
>>>> 
>>>>>> 
>>>>> 
>>>>>> 
>>>>>> A restriction on skins to not have sub-components would be great IMHO.  A
>>>>>> new suffix would be great as well.  One more modification from our
>>>>> current
>>>>>> spark skins would be to perhaps have a HostInterface instead of a
>>>>>> HostComponent in skins.
>>>>>> 
>>>>> Actually, I don't envision any sort of HostInterface or HostComponent
>>>>> contract for skins.  The actual skins shouldn't really know anything about
>>>>> the host.  The view bead, which sets up the sub-componentry for
>>>>> the visuals
>>>>> may bind to the component's model.
>>>> 
>>>> 
>>>> In that case, it should bind to an interface of the component's model and
>>>> not any specific implementation.
>>>> 
>>>> Thanks,
>>>> Om
>>> 
>>> 
>> 
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
>> 

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


Re: [FalconJx] progress update

Posted by Michael Schmalle <ap...@teotigraphix.com>.
Quoting Alex Harui <ah...@adobe.com>:

> Excellent.  I will try it out later today.  I have to quickly fix some
> FalconJS stuff for my potential "customer", but once I get past that I will
> see if FalconJX can generate the same code.
>
> I am hopeful that if I run into more of the kinds of errors I am fixing in
> FalconJS, that they will be easier to find and fix in FalconJX.

You have been taling about these errors, can you list some of them. I  
can give you an exact answer to whether you are going to hit them or  
not.


Mike


>
> On 3/27/13 10:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>> Another update (have taken/will take some time to get this right this week):
>>
>> FalconJx can now parse both FlexJS MXML and AS reasonably correctly.
>> If run from the command line, it will now create the correct output
>> directories (bin/js-debug and bin/js-release) and emit all JS and HTML
>> files, both plain text (debug) and optimised using the GCC (release).
>> Please use these command line arguments:
>>
>> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGlo
>> bal/player
>> +playerglobal.version=11.1
>> -load-config="/Applications/Adobe Flash Builder
>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
>> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/li
>> bs/FlexJSUI.swc
>> -js-output-type=FLEXJS
>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
>> -closure-lib=/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/libra
>> ry
>> -sdk-js-lib=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/js/FlexJ
>> S/src
>> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/F
>> lexJSTest.mxml
>>
>> NOTE: please use the -sdk-js-lib argument to point to the library you
>> want to use, instead of the previous 'vanilla' themed one.
>>
>> Also worth mentioning: as of now, the application doesn't do anything
>> in the browser, due to some unfinished business in the emitted JS
>> (mainly places where 'goog' is still used, instead of FlexJS). This is
>> my todo for tomorrow...
>>
>> Have fun,
>>
>> EdB
>>
>>
>>
>> On Tue, Mar 26, 2013 at 11:33 PM, Om <bi...@gmail.com> wrote:
>>>>> So, I need to research more about how skinning works in HTML5, but I have
>>>
>>>>>> this vague recollection that skins in HTML5 are entirely graphics.
>>>>>
>>>>>
>>>>> I dont think so.  SVG is part of the HTML5 spec now, so what we are doing
>>>>> is completely legitimate.
>>>> That's sort of what I meant.  I think a skin in HTML5 doesn't have
>>>> sub-components, and is a bitmap or SVG.
>>>>
>>>
>>> Ah, got it.  I dint read your sentence that way earlier.
>>>
>>>
>>>>>> I also need to understand how an HTML5 button skin changes its visuals
>>>> with
>>>>>> hover/down/selected/focused/emphasized.  That would also educate how we
>>>> set
>>>>>> up a skinning model for FlexJS.
>>>>>>
>>>>>
>>>>> Here is an example: http://demos.madeinthenorth.com/slicker-buttons/#
>>>>> Notice how they use SVG in IE9 and CSS3 for Firefox and Webkit.  This
>>>> also
>>>>> shows how to use CSS to control the various states.
>>>> I took a look at this post. It uses the "hover" pseudo selector as
>>>> expected.
>>>> But the button did not have support for things like focused and  
>>>> emphasized.
>>>>>
>>>>
>>>
>>> If you can share some examples you like, that would be useful for me.
>>>
>>>
>>>>>
>>>>
>>>>>
>>>>> A restriction on skins to not have sub-components would be great IMHO.  A
>>>>> new suffix would be great as well.  One more modification from our
>>>> current
>>>>> spark skins would be to perhaps have a HostInterface instead of a
>>>>> HostComponent in skins.
>>>>>
>>>> Actually, I don't envision any sort of HostInterface or HostComponent
>>>> contract for skins.  The actual skins shouldn't really know anything about
>>>> the host.  The view bead, which sets up the sub-componentry for  
>>>> the visuals
>>>> may bind to the component's model.
>>>
>>>
>>> In that case, it should bind to an interface of the component's model and
>>> not any specific implementation.
>>>
>>> Thanks,
>>> Om
>>
>>
>
> --
> 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: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
Excellent.  I will try it out later today.  I have to quickly fix some
FalconJS stuff for my potential "customer", but once I get past that I will
see if FalconJX can generate the same code.

I am hopeful that if I run into more of the kinds of errors I am fixing in
FalconJS, that they will be easier to find and fix in FalconJX.


On 3/27/13 10:34 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Another update (have taken/will take some time to get this right this week):
> 
> FalconJx can now parse both FlexJS MXML and AS reasonably correctly.
> If run from the command line, it will now create the correct output
> directories (bin/js-debug and bin/js-release) and emit all JS and HTML
> files, both plain text (debug) and optimised using the GCC (release).
> Please use these command line arguments:
> 
> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGlo
> bal/player
> +playerglobal.version=11.1
> -load-config="/Applications/Adobe Flash Builder
> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/li
> bs/FlexJSUI.swc
> -js-output-type=FLEXJS
> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
> -closure-lib=/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/libra
> ry
> -sdk-js-lib=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/js/FlexJ
> S/src
> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/F
> lexJSTest.mxml
> 
> NOTE: please use the -sdk-js-lib argument to point to the library you
> want to use, instead of the previous 'vanilla' themed one.
> 
> Also worth mentioning: as of now, the application doesn't do anything
> in the browser, due to some unfinished business in the emitted JS
> (mainly places where 'goog' is still used, instead of FlexJS). This is
> my todo for tomorrow...
> 
> Have fun,
> 
> EdB
> 
> 
> 
> On Tue, Mar 26, 2013 at 11:33 PM, Om <bi...@gmail.com> wrote:
>>>> So, I need to research more about how skinning works in HTML5, but I have
>> 
>>>>> this vague recollection that skins in HTML5 are entirely graphics.
>>>> 
>>>> 
>>>> I dont think so.  SVG is part of the HTML5 spec now, so what we are doing
>>>> is completely legitimate.
>>> That's sort of what I meant.  I think a skin in HTML5 doesn't have
>>> sub-components, and is a bitmap or SVG.
>>> 
>> 
>> Ah, got it.  I dint read your sentence that way earlier.
>> 
>> 
>>>>> I also need to understand how an HTML5 button skin changes its visuals
>>> with
>>>>> hover/down/selected/focused/emphasized.  That would also educate how we
>>> set
>>>>> up a skinning model for FlexJS.
>>>>> 
>>>> 
>>>> Here is an example: http://demos.madeinthenorth.com/slicker-buttons/#
>>>> Notice how they use SVG in IE9 and CSS3 for Firefox and Webkit.  This
>>> also
>>>> shows how to use CSS to control the various states.
>>> I took a look at this post. It uses the "hover" pseudo selector as
>>> expected.
>>> But the button did not have support for things like focused and emphasized.
>>>> 
>>> 
>> 
>> If you can share some examples you like, that would be useful for me.
>> 
>> 
>>>> 
>>> 
>>>> 
>>>> A restriction on skins to not have sub-components would be great IMHO.  A
>>>> new suffix would be great as well.  One more modification from our
>>> current
>>>> spark skins would be to perhaps have a HostInterface instead of a
>>>> HostComponent in skins.
>>>> 
>>> Actually, I don't envision any sort of HostInterface or HostComponent
>>> contract for skins.  The actual skins shouldn't really know anything about
>>> the host.  The view bead, which sets up the sub-componentry for the visuals
>>> may bind to the component's model.
>> 
>> 
>> In that case, it should bind to an interface of the component's model and
>> not any specific implementation.
>> 
>> Thanks,
>> Om
> 
> 

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Another update (have taken/will take some time to get this right this week):

FalconJx can now parse both FlexJS MXML and AS reasonably correctly.
If run from the command line, it will now create the correct output
directories (bin/js-debug and bin/js-release) and emit all JS and HTML
files, both plain text (debug) and optimised using the GCC (release).
Please use these command line arguments:

+env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGlobal/player
+playerglobal.version=11.1
-load-config="/Applications/Adobe Flash Builder
4.7/sdks/4.9.1/frameworks/flex-config.xml"
-library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/libs/FlexJSUI.swc
-js-output-type=FLEXJS
-output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
-closure-lib=/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/library
-sdk-js-lib=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/js/FlexJS/src
/Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/FlexJSTest.mxml

NOTE: please use the -sdk-js-lib argument to point to the library you
want to use, instead of the previous 'vanilla' themed one.

Also worth mentioning: as of now, the application doesn't do anything
in the browser, due to some unfinished business in the emitted JS
(mainly places where 'goog' is still used, instead of FlexJS). This is
my todo for tomorrow...

Have fun,

EdB



On Tue, Mar 26, 2013 at 11:33 PM, Om <bi...@gmail.com> wrote:
>>> So, I need to research more about how skinning works in HTML5, but I have
>
>> >> this vague recollection that skins in HTML5 are entirely graphics.
>> >
>> >
>> > I dont think so.  SVG is part of the HTML5 spec now, so what we are doing
>> > is completely legitimate.
>> That's sort of what I meant.  I think a skin in HTML5 doesn't have
>> sub-components, and is a bitmap or SVG.
>>
>
> Ah, got it.  I dint read your sentence that way earlier.
>
>
>>  >> I also need to understand how an HTML5 button skin changes its visuals
>> with
>> >> hover/down/selected/focused/emphasized.  That would also educate how we
>> set
>> >> up a skinning model for FlexJS.
>> >>
>> >
>> > Here is an example: http://demos.madeinthenorth.com/slicker-buttons/#
>> > Notice how they use SVG in IE9 and CSS3 for Firefox and Webkit.  This
>> also
>> > shows how to use CSS to control the various states.
>> I took a look at this post. It uses the "hover" pseudo selector as
>> expected.
>> But the button did not have support for things like focused and emphasized.
>> >
>>
>
> If you can share some examples you like, that would be useful for me.
>
>
>>  >
>>
>> >
>> > A restriction on skins to not have sub-components would be great IMHO.  A
>> > new suffix would be great as well.  One more modification from our
>> current
>> > spark skins would be to perhaps have a HostInterface instead of a
>> > HostComponent in skins.
>> >
>> Actually, I don't envision any sort of HostInterface or HostComponent
>> contract for skins.  The actual skins shouldn't really know anything about
>> the host.  The view bead, which sets up the sub-componentry for the visuals
>> may bind to the component's model.
>
>
> In that case, it should bind to an interface of the component's model and
> not any specific implementation.
>
> Thanks,
> Om



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Om <bi...@gmail.com>.
>> So, I need to research more about how skinning works in HTML5, but I have

> >> this vague recollection that skins in HTML5 are entirely graphics.
> >
> >
> > I dont think so.  SVG is part of the HTML5 spec now, so what we are doing
> > is completely legitimate.
> That's sort of what I meant.  I think a skin in HTML5 doesn't have
> sub-components, and is a bitmap or SVG.
>

Ah, got it.  I dint read your sentence that way earlier.


>  >> I also need to understand how an HTML5 button skin changes its visuals
> with
> >> hover/down/selected/focused/emphasized.  That would also educate how we
> set
> >> up a skinning model for FlexJS.
> >>
> >
> > Here is an example: http://demos.madeinthenorth.com/slicker-buttons/#
> > Notice how they use SVG in IE9 and CSS3 for Firefox and Webkit.  This
> also
> > shows how to use CSS to control the various states.
> I took a look at this post. It uses the "hover" pseudo selector as
> expected.
> But the button did not have support for things like focused and emphasized.
> >
>

If you can share some examples you like, that would be useful for me.


>  >
>
> >
> > A restriction on skins to not have sub-components would be great IMHO.  A
> > new suffix would be great as well.  One more modification from our
> current
> > spark skins would be to perhaps have a HostInterface instead of a
> > HostComponent in skins.
> >
> Actually, I don't envision any sort of HostInterface or HostComponent
> contract for skins.  The actual skins shouldn't really know anything about
> the host.  The view bead, which sets up the sub-componentry for the visuals
> may bind to the component's model.


In that case, it should bind to an interface of the component's model and
not any specific implementation.

Thanks,
Om

Re: [FalconJx] progress update

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


On 3/26/13 12:04 AM, "Om" <bi...@gmail.com> wrote:


>> But in thinking more about it, your transform of MXMLG or FXG to SVG is
>> essentially an optimization.
> 
> 
> I would characterize it more as laziness.  An XSLT transform is the easiest
> way to get to our end goal, which is rendering fidelity between the two
> platforms.
The reason I say it is an optimization is that right now, we reduce MXML
down to a set of components that wrap DOM and probably someday, SVG
elements.  That means that you have to run that wrapping code (which is
relatively thin, but it does exist).  However, if you can reduce it further
to a set of unwrapped JS, CSS and SVG, then it will perform much faster.
> 
> 
> 
>> The reason I say that is because, if you start
>> from SparkSkin, you have the problem that in more complex components, the
>> skin is not pure MXMLG/FXG, it is comprised of other top-level components.
>> It is only in cases where you have an uninterrupted stream of graphics that
>> you can apply this transform.  I guess we could make the compiler that
>> smart, but that sounds like advanced work.
>> 
> 
> I dont think it needs to be an uninterrupted stream.  As I showed in my
> latest prototype, the XSLT can skip over certain parts of the MXML file
> which does not interest it.
See above.  By having it be uninterrupted, you can make it much smaller and
faster.
> 
> 
> 
>> 
>> One way I think about developing FlexJS is that we are trying to identify
>> the smallest, most self-contained, best practice for doing things in HTML
>> (whether it is skinning, drag-drop, effects) and then designing an
>> ActionScript equivalent for it, and then tweaking both sides to make it
>> more
>> Flex-like.  At least for now, that is the most efficient way to get more
>> components up and running faster because there is less mucking around in JS
>> trying to get it to do something that was easy in Flash.
>> 
>> So, I need to research more about how skinning works in HTML5, but I have
>> this vague recollection that skins in HTML5 are entirely graphics.
> 
> 
> I dont think so.  SVG is part of the HTML5 spec now, so what we are doing
> is completely legitimate.
That's sort of what I meant.  I think a skin in HTML5 doesn't have
sub-components, and is a bitmap or SVG.
> 
> 
> 
>> 
>> I also need to understand how an HTML5 button skin changes its visuals with
>> hover/down/selected/focused/emphasized.  That would also educate how we set
>> up a skinning model for FlexJS.
>> 
> 
> Here is an example: http://demos.madeinthenorth.com/slicker-buttons/#
> Notice how they use SVG in IE9 and CSS3 for Firefox and Webkit.  This also
> shows how to use CSS to control the various states.
I took a look at this post. It uses the "hover" pseudo selector as expected.
But the button did not have support for things like focused and emphasized.
> 
> 

> 
> A restriction on skins to not have sub-components would be great IMHO.  A
> new suffix would be great as well.  One more modification from our current
> spark skins would be to perhaps have a HostInterface instead of a
> HostComponent in skins.
> 
Actually, I don't envision any sort of HostInterface or HostComponent
contract for skins.  The actual skins shouldn't really know anything about
the host.  The view bead, which sets up the sub-componentry for the visuals
may bind to the component's model.

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


Re: [FalconJx] progress update

Posted by Om <bi...@gmail.com>.
On Mon, Mar 25, 2013 at 8:27 PM, Alex Harui <ah...@adobe.com> wrote:

>
>
>
> Well, first off, thanks for motivating me to spend more time thinking about
> skinning.  Honestly, I don't have a formal plan and your input is quite
> welcome.  I spent a fair amount of time mulling over how to re-use as much
> of existing spark skins as possible and how to leverage your FXG->SVG work.
>

Sure.  Glad to help wherever I can.


>
> On 3/25/13 6:28 PM, "Om" <bi...@gmail.com> wrote:
>
> >>>
> >> Well, if you want to re-use Spark skins, then FlexJS is not for you.
> >
> > I don't want to reuse spark skins.  I just want to use the spark paradigm
> > for skinning.  I am using the current spark skins as examples for the
> POC.
> I'm not sure what it means if you don't want to reuse spark skins but want
> to use the spark paradigm.  What are the key pieces?
>

I am comparing that with Halo skinning.  That workflow was quite tedious.
 The key pieces from my point of view would be skins as xml (mxmlg or fxg)
 instead of drawing skins in actionscript.

There are three ways to skin Flex apps with vector graphics -

1.  Use FXG/MXMLG,
2.  Use SWFs created from Flash Pro
3.  Use ActionScript to draw the skins

Of the three (1) is great because it lets us use other tools outside the
Flash world, i.e. Illustrator, Fireworks, Photoshop (dare I say Catalyst?).
 This led to a pretty good workflow between the designers and developers.
This led to high fidelity because we could always tweak the finer details
of a particular graphic even after being passed over to the developers
world.  This has become our preferred way of skinning.

(2) Halo skinning used this approach.  While a good option, this meant that
designers had to learn a new tool which was not already in their skillset.
 Moreover, Flash Pro has a bad rap of being pretty bad for vector graphic
creation (not my words, I love Flash Pro!)

(3) This great for advanced skinning and gives us total control, but it
pretty much removes the designer out of the loop.

Given a choice, I would choose (1) and then (3) but I dont care much for (2)



>
> >
> >  FlexJS
> >> is a rewrite of Flex and the skinning model will likely be different
> > because
> >> I want to try to fix the problems of Spark skins like the skin part
> >> contract, the extra display object, and the fact that most default skins
> > had
> >> code in them.  Over time, we can add enough alternative beads to fully
> > mimic
> >> Spark Skins, but I really don't want to make that the default pattern
> for
> >> FlexJS.
> >
> > As long as we use MXMLG for the skins I would be happy.   Do you still
> plan
> > to use MXMLG in FlexJS?
> I hadn't given it much thought.  At minimum, we could create components
> like
> Rect, Line, Path like we have for Button, CheckBox and Label.  They would
> inject SVG into the DOM as appropriate.
>
>
Now that I am looking at the skins more closely, pretty much everything we
draw seems to be a rectangle with rounded corners :-)

But yes, I agree -  a few primitives will go a long way in supporting the
current  (spark) skinning paradigm.



> But in thinking more about it, your transform of MXMLG or FXG to SVG is
> essentially an optimization.


I would characterize it more as laziness.  An XSLT transform is the easiest
way to get to our end goal, which is rendering fidelity between the two
platforms.



> The reason I say that is because, if you start
> from SparkSkin, you have the problem that in more complex components, the
> skin is not pure MXMLG/FXG, it is comprised of other top-level components.
> It is only in cases where you have an uninterrupted stream of graphics that
> you can apply this transform.  I guess we could make the compiler that
> smart, but that sounds like advanced work.
>

I dont think it needs to be an uninterrupted stream.  As I showed in my
latest prototype, the XSLT can skip over certain parts of the MXML file
which does not interest it.



>
> One way I think about developing FlexJS is that we are trying to identify
> the smallest, most self-contained, best practice for doing things in HTML
> (whether it is skinning, drag-drop, effects) and then designing an
> ActionScript equivalent for it, and then tweaking both sides to make it
> more
> Flex-like.  At least for now, that is the most efficient way to get more
> components up and running faster because there is less mucking around in JS
> trying to get it to do something that was easy in Flash.
>
> So, I need to research more about how skinning works in HTML5, but I have
> this vague recollection that skins in HTML5 are entirely graphics.


I dont think so.  SVG is part of the HTML5 spec now, so what we are doing
is completely legitimate.


> IOW, a
> complex component comprised of subcomponents doesn't have a skin that
> describes those sub-components like Spark does.  Instead, the set of
> sub-components is fixed and you can alter the visuals of those
> sub-components via CSS.  For example, you use advanced CSS selectors to set
> the visuals for a Button in a ComboBox.
>

This is one thing I wish Flex had better support for.  In my FXG -> SVG
approach, we should be able to do this (example coming soon).  We just need
to figure out the stuff on the Flash/AS side.


>
> I also need to understand how an HTML5 button skin changes its visuals with
> hover/down/selected/focused/emphasized.  That would also educate how we set
> up a skinning model for FlexJS.
>

Here is an example: http://demos.madeinthenorth.com/slicker-buttons/#
Notice how they use SVG in IE9 and CSS3 for Firefox and Webkit.  This also
shows how to use CSS to control the various states.


>
> And something like that is more in tune with FlexJS.  Today, the AS
> components have a view bead that determines the subcomponents.  Those
> subcomponents have their own view beads.  The leaves of that tree of view
> beads is entirely graphics (today in AS, next stop for me was bitmaps, you
> are welcome to take on MXML or FXG or some vector description).


I havent followed your new SDK in a while.  Once I am done with the
prototypes I am working on, I will get into it.


> Someday,
> I'll get enough CSS working so that you can set the view beads at the
> leaves
> of the tree, and then we can say that you can define those view beads
> entirely in graphics with certain restrictions, like no sub-components.
> Maybe we'll give that a separate file suffix, then the compiler can know to
> run your transform on it.
>

A restriction on skins to not have sub-components would be great IMHO.  A
new suffix would be great as well.  One more modification from our current
spark skins would be to perhaps have a HostInterface instead of a
HostComponent in skins.

Thanks,
Om


>
> Thoughts on that?
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>

Re: [FalconJx] progress update

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


Well, first off, thanks for motivating me to spend more time thinking about
skinning.  Honestly, I don't have a formal plan and your input is quite
welcome.  I spent a fair amount of time mulling over how to re-use as much
of existing spark skins as possible and how to leverage your FXG->SVG work.

On 3/25/13 6:28 PM, "Om" <bi...@gmail.com> wrote:

>>> 
>> Well, if you want to re-use Spark skins, then FlexJS is not for you.
> 
> I don't want to reuse spark skins.  I just want to use the spark paradigm
> for skinning.  I am using the current spark skins as examples for the POC.
I'm not sure what it means if you don't want to reuse spark skins but want
to use the spark paradigm.  What are the key pieces?

> 
>  FlexJS
>> is a rewrite of Flex and the skinning model will likely be different
> because
>> I want to try to fix the problems of Spark skins like the skin part
>> contract, the extra display object, and the fact that most default skins
> had
>> code in them.  Over time, we can add enough alternative beads to fully
> mimic
>> Spark Skins, but I really don't want to make that the default pattern for
>> FlexJS.
> 
> As long as we use MXMLG for the skins I would be happy.   Do you still plan
> to use MXMLG in FlexJS?
I hadn't given it much thought.  At minimum, we could create components like
Rect, Line, Path like we have for Button, CheckBox and Label.  They would
inject SVG into the DOM as appropriate.

But in thinking more about it, your transform of MXMLG or FXG to SVG is
essentially an optimization.  The reason I say that is because, if you start
from SparkSkin, you have the problem that in more complex components, the
skin is not pure MXMLG/FXG, it is comprised of other top-level components.
It is only in cases where you have an uninterrupted stream of graphics that
you can apply this transform.  I guess we could make the compiler that
smart, but that sounds like advanced work.

One way I think about developing FlexJS is that we are trying to identify
the smallest, most self-contained, best practice for doing things in HTML
(whether it is skinning, drag-drop, effects) and then designing an
ActionScript equivalent for it, and then tweaking both sides to make it more
Flex-like.  At least for now, that is the most efficient way to get more
components up and running faster because there is less mucking around in JS
trying to get it to do something that was easy in Flash.

So, I need to research more about how skinning works in HTML5, but I have
this vague recollection that skins in HTML5 are entirely graphics.  IOW, a
complex component comprised of subcomponents doesn't have a skin that
describes those sub-components like Spark does.  Instead, the set of
sub-components is fixed and you can alter the visuals of those
sub-components via CSS.  For example, you use advanced CSS selectors to set
the visuals for a Button in a ComboBox.

I also need to understand how an HTML5 button skin changes its visuals with
hover/down/selected/focused/emphasized.  That would also educate how we set
up a skinning model for FlexJS.

And something like that is more in tune with FlexJS.  Today, the AS
components have a view bead that determines the subcomponents.  Those
subcomponents have their own view beads.  The leaves of that tree of view
beads is entirely graphics (today in AS, next stop for me was bitmaps, you
are welcome to take on MXML or FXG or some vector description).  Someday,
I'll get enough CSS working so that you can set the view beads at the leaves
of the tree, and then we can say that you can define those view beads
entirely in graphics with certain restrictions, like no sub-components.
Maybe we'll give that a separate file suffix, then the compiler can know to
run your transform on it.

Thoughts on that?

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


Re: [FalconJx] progress update

Posted by Om <bi...@gmail.com>.
On Mar 25, 2013 5:04 PM, "Alex Harui" <ah...@adobe.com> wrote:
>
>
>
>
> On 3/25/13 3:41 PM, "Om" <bi...@gmail.com> wrote:
>
> > On Mon, Mar 25, 2013 at 3:25 PM, Alex Harui <ah...@adobe.com> wrote:
> >
> >> Hmm.  But at the top-level is a non-FXG element like Skin or something
like
> >> that, right?
> >
> >
> > I plan to use the <div> or <svg> elements for this.
> Well, in FlexJS, we aren't translating MXML tags into HTML tags.  The
> component API surface is the contract.  You need to have wrapping code
> around the DOM elements in order to handle the abstraction.

Agreed.

> >
> >
> >> And, you don't know if script is going to change any of these
> >> entities at run-time.  How are you going to make that happen when
> >> converted to SVG?
> >
> >
> > You can manipulate <div> and <svg> using Javascript or CSS.
> See my note above.  Again, you will need JS wrapping to abstract the
> differences.

I think we can still handle that.

> >
> > I am working on an example of doing just this.  Give me a couple of
days to
> > put out some sample code.
> >
> >
> >>   Finally, nobody "drew" this skin in a design tool.  It was
> >> hand-coded so it could have script code change things at runtime.
> >>
> >
> > Which is exactly why I want to transform the MXML/FXG code instead of
> > relying on Illustrator spit out SVG for me.  This way, we preserve all
the
> > custom skins that users might create for themselves directly in MXML.
 I am
> > just relying on the fact that it resembles FXG which can be transformed
> > into SVG relatively easily.
> >
> Well, if you want to re-use Spark skins, then FlexJS is not for you.

I don't want to reuse spark skins.  I just want to use the spark paradigm
for skinning.  I am using the current spark skins as examples for the POC.

 FlexJS
> is a rewrite of Flex and the skinning model will likely be different
because
> I want to try to fix the problems of Spark skins like the skin part
> contract, the extra display object, and the fact that most default skins
had
> code in them.  Over time, we can add enough alternative beads to fully
mimic
> Spark Skins, but I really don't want to make that the default pattern for
> FlexJS.

As long as we use MXMLG for the skins I would be happy.   Do you still plan
to use MXMLG in FlexJS?

>
> Erik thinks he can do all of this in VanillaJS.  I still think it will
take
> him too long to get to a minimal viable product and VanillaJS will have a
> huge minimal download and worry that folks are waiting for him instead of
> jumping in on FlexJS hoping he can provide the magic bullet.

I would be happy to help out with FlexJS if I knew more about how you plan
to implement skinning if components.

Thanks,
Om

> >
> >>
> >> IMO, a vector skinning model would leverage FXG as it is spec'd.
 Maybe we
> >> need to allow FXG in "sub-documents" in a skin (like we do for in-line
item
> >> renderers with fx:Component), but I think you can also simply declare
an
> >> FXG
> >> class as a tag in a skin.  But from an MXML skin perspective, every tag
> >> maps
> >> to a class.
> >>
> >
> > Got it.  I dont think it would take too much to support just pure FXG.
 In
> > fact, that is what I started with.  Now I am adding more Flex
constructs on
> > top of it.  But the XSLT right now only supports the "s:" namespace.  It
> > shouldnt be hard to support the fxg namespace as well.
> >
> > Thanks,
> > Om
> >
> >
> >>
> >>
> >> On 3/25/13 3:18 PM, "Om" <bi...@gmail.com> wrote:
> >>
> >>> On Mon, Mar 25, 2013 at 12:26 PM, Alex Harui <ah...@adobe.com> wrote:
> >>>
> >>>> Om, can you give an example?
> >>>>
> >>>> IMO, there is a difference between MXML Graphics and FXG.  To me,
FXG is
> >>>> stuff in an FXG file exported from several Adobe design tools.  The
> >>>> internal
> >>>> pieces are not manipulated at run time.  Today, FXG assets are
compiled
> >>>> into
> >>>> Sprites and other SWF primitives.
> >>>>
> >>>
> >>> You are right, I am mixing my terms FXG and MXMLG when I speak.  My
> >>> workflow when working with FXG is more like this [1]  Which really is
> >> just
> >>> changing the namespace from FXG namespace to Spark namespace.  Which
is
> >> why
> >>> the confusion, I guess.  But to make it clear, I am less worried about
> >>> about bringing FXG documents as graphic primitives into the HTML5/JS
> >> space.
> >>>  That would be nice, but not worth much.
> >>>
> >>> Here is a concrete example
> >>> from \frameworks\projects\spark\src\spark\skins\spark\ButtonSkin.mxml
> >>>
> >>> <snip>
> >>>     <!-- layer 1: shadow -->
> >>>     <!--- @private -->
> >>>     <s:Rect id="shadow" left="-1" right="-1" top="-1" bottom="-1"
> >>> radiusX="2">
> >>>         <s:fill>
> >>>             <s:LinearGradient rotation="90">
> >>>                 <s:GradientEntry color="0x000000"
> >>>                                  color.down="0xFFFFFF"
> >>>                                  alpha="0.01"
> >>>                                  alpha.down="0" />
> >>>                 <s:GradientEntry color="0x000000"
> >>>                                  color.down="0xFFFFFF"
> >>>                                  alpha="0.07"
> >>>                                  alpha.down="0.5" />
> >>>             </s:LinearGradient>
> >>>         </s:fill>
> >>>     </s:Rect>
> >>> </snip>
> >>>
> >>> This specifies an FXG Rect element with the attribute radiusX.  So
far so
> >>> good.  But the left, right, bottom and top are not part of the FXG
spec
> >> [2]
> >>>  They are implemented as part of the ILayoutElement that one of the
> >>> ancestors of s:Rect i.e. GraphicElement class.
> >>>
> >>> The way I am approaching is to make it a combination of SVG and CSS.
> >>  This
> >>> means that I can translate FXG's @radiusX into SVG's @rx.  And I can
> >>> translate MXMLG's @top into style="position:relative; top=-1"
> >>>
> >>> Is this the kind of example you wanted?  I can go into more detail on
my
> >>> approach if you want.  Let me know.
> >>>
> >>> Thanks,
> >>> Om
> >>>
> >>> [1]
> >>>
> >>
>
http://help.adobe.com/en_US/flex/using/WSda78ed3a750d6b8f26c150d412357de3591-
>>
> 8
> >>> 000.html#WSDAD87261-09E9-4091-8169-F2758607F125
> >>> [2]
http://sourceforge.net/adobe/flexsdk/wiki/FXG%202.0%20Specification/
> >>>
> >>>
> >>>>
> >>>> MXML Graphics in a skin are generally there for manipulation.  The
> >>>> top-level
> >>>> tag is some component class.  I think in FlexJS, I would suggest just
> >>>> writing components for Rect, Path, etc, so they can also be
manipulated
> >> at
> >>>> runtime.
> >>>>
> >>>>
> >>>> On 3/25/13 12:15 PM, "Om" <bi...@gmail.com> wrote:
> >>>>
> >>>>> On Mon, Mar 25, 2013 at 11:55 AM, Erik de Bruin <er...@ixsoftware.nl>
> >>>> wrote:
> >>>>>
> >>>>>> Om,
> >>>>>>
> >>>>>> 1) the wiki is mostly current, but as a work in progress: if it
> >>>>>> doesn't work, ask and we will fix ;-)
> >>>>>>
> >>>>>> 2) CSS resulting from...? I'm not familiar with FXG etc., so my
> >>>>>> questions are bound to be naive as well, as you'll notice.
Basically
> >>>>>> we have access to whatever the compiler (Falcon-main, if you will)
has
> >>>>>> access to, but some thing might be easier than others. Mike S. is
our
> >>>>>> wizard, he'll know what to do if we can't figure it out.
> >>>>>>
> >>>>>
> >>>>> Just to be clear, for all practical purposes, when I say FXG, I
really
> >>>> mean
> >>>>> MXML.  This is because, the Flex implementation of FXG ensures that
FXG
> >>>>> elements can be pluggable inline into any MXML component.  So, if we
> >> are
> >>>> to
> >>>>> support MXML, then we must support FXG.
> >>>>>
> >>>>> In what I am doing currently, I am actually processing an MXML file,
> >>>> ignore
> >>>>> things that I dont care about (like fx:Script, fx:Metadata, and any
> >>>>> non-visual component)
> >>>>>
> >>>>> It just happens that for Spark components, the FXG elements appear
only
> >>>> in
> >>>>> their Spark skins.  This makes my job easier because if I target
only
> >> the
> >>>>> spark skins, I wont have to deal with a lot of other MXML functional
> >>>> (i.e.
> >>>>> non view) elements.
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> 3) Ah, there is the CSS, I guess (fxg -> svg + css). The AS code
will
> >>>>>> be cross-compiled to AS (weird, I know) or any form of JS we chose,
> >>>>>> most likely 'goog' JS, as it will have to be compatible with FlexJS
> >>>>>> and the VanillaSDK. Due to the way FalconJx is set up, it will be
easy
> >>>>>> to add FXG specific JS parsing, if needed.
> >>>>>>
> >>>>>
> >>>>> What if I want to handcode some javascript?  For example, if I want
to
> >>>>> support the current 'states' paradigm used in spark skins, I need to
> >>>> write
> >>>>> some javascript to make it a reusable component.  I am not sure if
this
> >>>> is
> >>>>> the right approach, though.  What do you guys think?
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> 4) Sounds like and excellent starting point... however, you'll
> >>>>>> probably have to tweak your local SDK 'a bit' to get both the Flex
and
> >>>>>> JS side working.  Or should be start one of those much rumored
> >>>>>> 'shared' feature branches of the SDK?
> >>>>>>
> >>>>>
> >>>>> What kind of tweaking do you mean?  Actually, I dont understand
> >> anything
> >>>>> you just said.  Please explain like I am 5 years old :-)
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> I love how everything seems to be converging and it really feels
like
> >>>>>> Flex -> HTML5/JS is doable!
> >>>>>>
> >>>>>
> >>>>> Cautious optimism abounds!
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> EdB
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On Mon, Mar 25, 2013 at 7:21 PM, Om <bi...@gmail.com> wrote:
> >>>>>>> Erik,
> >>>>>>>
> >>>>>>> I am planning to get FalconJX working on my machine soon.  Before
I
> >>>> start
> >>>>>>> digging into it,
> >>>>>>>
> >>>>>>> 1. Are these wiki pages current?
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>
> >>>>
> >>
https://cwiki.apache.org/confluence/display/FLEX/AS+to+JS+-+the+%27goog%27+Wa
> >>>>>>
> >>>> y
> >>>>>>>
> >>>>>>>
https://cwiki.apache.org/confluence/display/FLEX/FalconJx+Prototype
> >>>>>>>
> >>>>>>> 2.  Do you have any thoughts on how we want to handle the
resulting
> >>>> CSS?
> >>>>>>>  Inlining everything or have it as separate files?
> >>>>>>>
> >>>>>>> 3.  My approach would take in a spark skin file and convert the
fxg
> >>>>>>> elements into svg+css.  There is going to some AS code that needs
to
> >> be
> >>>>>>> converted JS.  I believe your approach already handles this right?
> >>>>>>>
> >>>>>>> 4.  I see that the VanillaSDK supports the Button component in
HTML5.
> >>>>>>>  Maybe that is where I should start and get my code working there?
> >>>>>>>
> >>>>>>> Sorry if I am asking naive questions, but I am looking for some
> >>>> guidance
> >>>>>> on
> >>>>>>> how to get my work integrated into FalconJx (or FalconJS)
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>> Om
> >>>>>>>
> >>>>>>> On Mon, Mar 25, 2013 at 8:45 AM, Erik de Bruin <erik@ixsoftware.nl
>
> >>>>>> wrote:
> >>>>>>>
> >>>>>>>> Hi,
> >>>>>>>>
> >>>>>>>> Just 'checking in': FalconJx can now compile the FlexJSTest_again
> >>>>>>>> example from the command line, using these arguments:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>
> >>
+env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGl
> >>>>>> obal/player
> >>>>>>>> +playerglobal.version=11.1
> >>>>>>>> -load-config="/Applications/Adobe Flash Builder
> >>>>>>>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
> >>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>
> >>
-library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/l
> >>>>>> ibs/FlexJSUI.swc
> >>>>>>>> -js-output-type=FLEXJS
> >>>>>>>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
> >>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>
> >>
/Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/
> >>>>>> FlexJSTest.mxml
> >>>>>>>>
> >>>>>>>> Well, not exactly those, please change the paths to fit your
local
> >>>>>>>> environment ;-)
> >>>>>>>>
> >>>>>>>> Next up:
> >>>>>>>> - support for publishing with the GCC and associated tricks
> >> (SourceMap
> >>>>>>>> etc.)
> >>>>>>>> - full FlexJS type AS -> JS support (the current implementation
is
> >>>>>>>> custom tailored to the FlexJSTest_Again example code)
> >>>>>>>>
> >>>>>>>> Have fun!
> >>>>>>>>
> >>>>>>>> EdB
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> Ix Multimedia Software
> >>>>>>>>
> >>>>>>>> Jan Luykenstraat 27
> >>>>>>>> 3521 VB Utrecht
> >>>>>>>>
> >>>>>>>> T. 06-51952295
> >>>>>>>> I. www.ixsoftware.nl
> >>>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Ix Multimedia Software
> >>>>>>
> >>>>>> Jan Luykenstraat 27
> >>>>>> 3521 VB Utrecht
> >>>>>>
> >>>>>> T. 06-51952295
> >>>>>> I. www.ixsoftware.nl
> >>>>>>
> >>>>
> >>>> --
> >>>> Alex Harui
> >>>> Flex SDK Team
> >>>> Adobe Systems, Inc.
> >>>> http://blogs.adobe.com/aharui
> >>>>
> >>>>
> >>
> >> --
> >> Alex Harui
> >> Flex SDK Team
> >> Adobe Systems, Inc.
> >> http://blogs.adobe.com/aharui
> >>
> >>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>

Re: [FalconJx] progress update

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


On 3/25/13 3:41 PM, "Om" <bi...@gmail.com> wrote:

> On Mon, Mar 25, 2013 at 3:25 PM, Alex Harui <ah...@adobe.com> wrote:
> 
>> Hmm.  But at the top-level is a non-FXG element like Skin or something like
>> that, right?
> 
> 
> I plan to use the <div> or <svg> elements for this.
Well, in FlexJS, we aren't translating MXML tags into HTML tags.  The
component API surface is the contract.  You need to have wrapping code
around the DOM elements in order to handle the abstraction.
> 
> 
>> And, you don't know if script is going to change any of these
>> entities at run-time.  How are you going to make that happen when
>> converted to SVG?
> 
> 
> You can manipulate <div> and <svg> using Javascript or CSS.
See my note above.  Again, you will need JS wrapping to abstract the
differences.
> 
> I am working on an example of doing just this.  Give me a couple of days to
> put out some sample code.
> 
> 
>>   Finally, nobody "drew" this skin in a design tool.  It was
>> hand-coded so it could have script code change things at runtime.
>> 
> 
> Which is exactly why I want to transform the MXML/FXG code instead of
> relying on Illustrator spit out SVG for me.  This way, we preserve all the
> custom skins that users might create for themselves directly in MXML.  I am
> just relying on the fact that it resembles FXG which can be transformed
> into SVG relatively easily.
> 
Well, if you want to re-use Spark skins, then FlexJS is not for you.  FlexJS
is a rewrite of Flex and the skinning model will likely be different because
I want to try to fix the problems of Spark skins like the skin part
contract, the extra display object, and the fact that most default skins had
code in them.  Over time, we can add enough alternative beads to fully mimic
Spark Skins, but I really don't want to make that the default pattern for
FlexJS.  

Erik thinks he can do all of this in VanillaJS.  I still think it will take
him too long to get to a minimal viable product and VanillaJS will have a
huge minimal download and worry that folks are waiting for him instead of
jumping in on FlexJS hoping he can provide the magic bullet.
> 
>> 
>> IMO, a vector skinning model would leverage FXG as it is spec'd.  Maybe we
>> need to allow FXG in "sub-documents" in a skin (like we do for in-line item
>> renderers with fx:Component), but I think you can also simply declare an
>> FXG
>> class as a tag in a skin.  But from an MXML skin perspective, every tag
>> maps
>> to a class.
>> 
> 
> Got it.  I dont think it would take too much to support just pure FXG.  In
> fact, that is what I started with.  Now I am adding more Flex constructs on
> top of it.  But the XSLT right now only supports the "s:" namespace.  It
> shouldnt be hard to support the fxg namespace as well.
> 
> Thanks,
> Om
> 
> 
>> 
>> 
>> On 3/25/13 3:18 PM, "Om" <bi...@gmail.com> wrote:
>> 
>>> On Mon, Mar 25, 2013 at 12:26 PM, Alex Harui <ah...@adobe.com> wrote:
>>> 
>>>> Om, can you give an example?
>>>> 
>>>> IMO, there is a difference between MXML Graphics and FXG.  To me, FXG is
>>>> stuff in an FXG file exported from several Adobe design tools.  The
>>>> internal
>>>> pieces are not manipulated at run time.  Today, FXG assets are compiled
>>>> into
>>>> Sprites and other SWF primitives.
>>>> 
>>> 
>>> You are right, I am mixing my terms FXG and MXMLG when I speak.  My
>>> workflow when working with FXG is more like this [1]  Which really is
>> just
>>> changing the namespace from FXG namespace to Spark namespace.  Which is
>> why
>>> the confusion, I guess.  But to make it clear, I am less worried about
>>> about bringing FXG documents as graphic primitives into the HTML5/JS
>> space.
>>>  That would be nice, but not worth much.
>>> 
>>> Here is a concrete example
>>> from \frameworks\projects\spark\src\spark\skins\spark\ButtonSkin.mxml
>>> 
>>> <snip>
>>>     <!-- layer 1: shadow -->
>>>     <!--- @private -->
>>>     <s:Rect id="shadow" left="-1" right="-1" top="-1" bottom="-1"
>>> radiusX="2">
>>>         <s:fill>
>>>             <s:LinearGradient rotation="90">
>>>                 <s:GradientEntry color="0x000000"
>>>                                  color.down="0xFFFFFF"
>>>                                  alpha="0.01"
>>>                                  alpha.down="0" />
>>>                 <s:GradientEntry color="0x000000"
>>>                                  color.down="0xFFFFFF"
>>>                                  alpha="0.07"
>>>                                  alpha.down="0.5" />
>>>             </s:LinearGradient>
>>>         </s:fill>
>>>     </s:Rect>
>>> </snip>
>>> 
>>> This specifies an FXG Rect element with the attribute radiusX.  So far so
>>> good.  But the left, right, bottom and top are not part of the FXG spec
>> [2]
>>>  They are implemented as part of the ILayoutElement that one of the
>>> ancestors of s:Rect i.e. GraphicElement class.
>>> 
>>> The way I am approaching is to make it a combination of SVG and CSS.
>>  This
>>> means that I can translate FXG's @radiusX into SVG's @rx.  And I can
>>> translate MXMLG's @top into style="position:relative; top=-1"
>>> 
>>> Is this the kind of example you wanted?  I can go into more detail on my
>>> approach if you want.  Let me know.
>>> 
>>> Thanks,
>>> Om
>>> 
>>> [1]
>>> 
>> 
http://help.adobe.com/en_US/flex/using/WSda78ed3a750d6b8f26c150d412357de3591->>
8
>>> 000.html#WSDAD87261-09E9-4091-8169-F2758607F125
>>> [2] http://sourceforge.net/adobe/flexsdk/wiki/FXG%202.0%20Specification/
>>> 
>>> 
>>>> 
>>>> MXML Graphics in a skin are generally there for manipulation.  The
>>>> top-level
>>>> tag is some component class.  I think in FlexJS, I would suggest just
>>>> writing components for Rect, Path, etc, so they can also be manipulated
>> at
>>>> runtime.
>>>> 
>>>> 
>>>> On 3/25/13 12:15 PM, "Om" <bi...@gmail.com> wrote:
>>>> 
>>>>> On Mon, Mar 25, 2013 at 11:55 AM, Erik de Bruin <er...@ixsoftware.nl>
>>>> wrote:
>>>>> 
>>>>>> Om,
>>>>>> 
>>>>>> 1) the wiki is mostly current, but as a work in progress: if it
>>>>>> doesn't work, ask and we will fix ;-)
>>>>>> 
>>>>>> 2) CSS resulting from...? I'm not familiar with FXG etc., so my
>>>>>> questions are bound to be naive as well, as you'll notice. Basically
>>>>>> we have access to whatever the compiler (Falcon-main, if you will) has
>>>>>> access to, but some thing might be easier than others. Mike S. is our
>>>>>> wizard, he'll know what to do if we can't figure it out.
>>>>>> 
>>>>> 
>>>>> Just to be clear, for all practical purposes, when I say FXG, I really
>>>> mean
>>>>> MXML.  This is because, the Flex implementation of FXG ensures that FXG
>>>>> elements can be pluggable inline into any MXML component.  So, if we
>> are
>>>> to
>>>>> support MXML, then we must support FXG.
>>>>> 
>>>>> In what I am doing currently, I am actually processing an MXML file,
>>>> ignore
>>>>> things that I dont care about (like fx:Script, fx:Metadata, and any
>>>>> non-visual component)
>>>>> 
>>>>> It just happens that for Spark components, the FXG elements appear only
>>>> in
>>>>> their Spark skins.  This makes my job easier because if I target only
>> the
>>>>> spark skins, I wont have to deal with a lot of other MXML functional
>>>> (i.e.
>>>>> non view) elements.
>>>>> 
>>>>> 
>>>>>> 
>>>>>> 3) Ah, there is the CSS, I guess (fxg -> svg + css). The AS code will
>>>>>> be cross-compiled to AS (weird, I know) or any form of JS we chose,
>>>>>> most likely 'goog' JS, as it will have to be compatible with FlexJS
>>>>>> and the VanillaSDK. Due to the way FalconJx is set up, it will be easy
>>>>>> to add FXG specific JS parsing, if needed.
>>>>>> 
>>>>> 
>>>>> What if I want to handcode some javascript?  For example, if I want to
>>>>> support the current 'states' paradigm used in spark skins, I need to
>>>> write
>>>>> some javascript to make it a reusable component.  I am not sure if this
>>>> is
>>>>> the right approach, though.  What do you guys think?
>>>>> 
>>>>> 
>>>>>> 
>>>>>> 4) Sounds like and excellent starting point... however, you'll
>>>>>> probably have to tweak your local SDK 'a bit' to get both the Flex and
>>>>>> JS side working.  Or should be start one of those much rumored
>>>>>> 'shared' feature branches of the SDK?
>>>>>> 
>>>>> 
>>>>> What kind of tweaking do you mean?  Actually, I dont understand
>> anything
>>>>> you just said.  Please explain like I am 5 years old :-)
>>>>> 
>>>>> 
>>>>>> 
>>>>>> I love how everything seems to be converging and it really feels like
>>>>>> Flex -> HTML5/JS is doable!
>>>>>> 
>>>>> 
>>>>> Cautious optimism abounds!
>>>>> 
>>>>> 
>>>>>> 
>>>>>> EdB
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Mon, Mar 25, 2013 at 7:21 PM, Om <bi...@gmail.com> wrote:
>>>>>>> Erik,
>>>>>>> 
>>>>>>> I am planning to get FalconJX working on my machine soon.  Before I
>>>> start
>>>>>>> digging into it,
>>>>>>> 
>>>>>>> 1. Are these wiki pages current?
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>> 
>>>> 
>> https://cwiki.apache.org/confluence/display/FLEX/AS+to+JS+-+the+%27goog%27+Wa
>>>>>> 
>>>> y
>>>>>>> 
>>>>>>> https://cwiki.apache.org/confluence/display/FLEX/FalconJx+Prototype
>>>>>>> 
>>>>>>> 2.  Do you have any thoughts on how we want to handle the resulting
>>>> CSS?
>>>>>>>  Inlining everything or have it as separate files?
>>>>>>> 
>>>>>>> 3.  My approach would take in a spark skin file and convert the fxg
>>>>>>> elements into svg+css.  There is going to some AS code that needs to
>> be
>>>>>>> converted JS.  I believe your approach already handles this right?
>>>>>>> 
>>>>>>> 4.  I see that the VanillaSDK supports the Button component in HTML5.
>>>>>>>  Maybe that is where I should start and get my code working there?
>>>>>>> 
>>>>>>> Sorry if I am asking naive questions, but I am looking for some
>>>> guidance
>>>>>> on
>>>>>>> how to get my work integrated into FalconJx (or FalconJS)
>>>>>>> 
>>>>>>> Thanks,
>>>>>>> Om
>>>>>>> 
>>>>>>> On Mon, Mar 25, 2013 at 8:45 AM, Erik de Bruin <er...@ixsoftware.nl>
>>>>>> wrote:
>>>>>>> 
>>>>>>>> Hi,
>>>>>>>> 
>>>>>>>> Just 'checking in': FalconJx can now compile the FlexJSTest_again
>>>>>>>> example from the command line, using these arguments:
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGl
>>>>>> obal/player
>>>>>>>> +playerglobal.version=11.1
>>>>>>>> -load-config="/Applications/Adobe Flash Builder
>>>>>>>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/l
>>>>>> ibs/FlexJSUI.swc
>>>>>>>> -js-output-type=FLEXJS
>>>>>>>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/
>>>>>> FlexJSTest.mxml
>>>>>>>> 
>>>>>>>> Well, not exactly those, please change the paths to fit your local
>>>>>>>> environment ;-)
>>>>>>>> 
>>>>>>>> Next up:
>>>>>>>> - support for publishing with the GCC and associated tricks
>> (SourceMap
>>>>>>>> etc.)
>>>>>>>> - full FlexJS type AS -> JS support (the current implementation is
>>>>>>>> custom tailored to the FlexJSTest_Again example code)
>>>>>>>> 
>>>>>>>> Have fun!
>>>>>>>> 
>>>>>>>> EdB
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> --
>>>>>>>> Ix Multimedia Software
>>>>>>>> 
>>>>>>>> Jan Luykenstraat 27
>>>>>>>> 3521 VB Utrecht
>>>>>>>> 
>>>>>>>> T. 06-51952295
>>>>>>>> I. www.ixsoftware.nl
>>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Ix Multimedia Software
>>>>>> 
>>>>>> Jan Luykenstraat 27
>>>>>> 3521 VB Utrecht
>>>>>> 
>>>>>> T. 06-51952295
>>>>>> I. www.ixsoftware.nl
>>>>>> 
>>>> 
>>>> --
>>>> Alex Harui
>>>> Flex SDK Team
>>>> Adobe Systems, Inc.
>>>> http://blogs.adobe.com/aharui
>>>> 
>>>> 
>> 
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
>> 

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


Re: [FalconJx] progress update

Posted by Om <bi...@gmail.com>.
On Mon, Mar 25, 2013 at 3:25 PM, Alex Harui <ah...@adobe.com> wrote:

> Hmm.  But at the top-level is a non-FXG element like Skin or something like
> that, right?


I plan to use the <div> or <svg> elements for this.


> And, you don't know if script is going to change any of these
> entities at run-time.  How are you going to make that happen when
> converted to SVG?


You can manipulate <div> and <svg> using Javascript or CSS.

I am working on an example of doing just this.  Give me a couple of days to
put out some sample code.


>   Finally, nobody "drew" this skin in a design tool.  It was
> hand-coded so it could have script code change things at runtime.
>

Which is exactly why I want to transform the MXML/FXG code instead of
relying on Illustrator spit out SVG for me.  This way, we preserve all the
custom skins that users might create for themselves directly in MXML.  I am
just relying on the fact that it resembles FXG which can be transformed
into SVG relatively easily.


>
> IMO, a vector skinning model would leverage FXG as it is spec'd.  Maybe we
> need to allow FXG in "sub-documents" in a skin (like we do for in-line item
> renderers with fx:Component), but I think you can also simply declare an
> FXG
> class as a tag in a skin.  But from an MXML skin perspective, every tag
> maps
> to a class.
>

Got it.  I dont think it would take too much to support just pure FXG.  In
fact, that is what I started with.  Now I am adding more Flex constructs on
top of it.  But the XSLT right now only supports the "s:" namespace.  It
shouldnt be hard to support the fxg namespace as well.

Thanks,
Om


>
>
> On 3/25/13 3:18 PM, "Om" <bi...@gmail.com> wrote:
>
> > On Mon, Mar 25, 2013 at 12:26 PM, Alex Harui <ah...@adobe.com> wrote:
> >
> >> Om, can you give an example?
> >>
> >> IMO, there is a difference between MXML Graphics and FXG.  To me, FXG is
> >> stuff in an FXG file exported from several Adobe design tools.  The
> >> internal
> >> pieces are not manipulated at run time.  Today, FXG assets are compiled
> >> into
> >> Sprites and other SWF primitives.
> >>
> >
> > You are right, I am mixing my terms FXG and MXMLG when I speak.  My
> > workflow when working with FXG is more like this [1]  Which really is
> just
> > changing the namespace from FXG namespace to Spark namespace.  Which is
> why
> > the confusion, I guess.  But to make it clear, I am less worried about
> > about bringing FXG documents as graphic primitives into the HTML5/JS
> space.
> >  That would be nice, but not worth much.
> >
> > Here is a concrete example
> > from \frameworks\projects\spark\src\spark\skins\spark\ButtonSkin.mxml
> >
> > <snip>
> >     <!-- layer 1: shadow -->
> >     <!--- @private -->
> >     <s:Rect id="shadow" left="-1" right="-1" top="-1" bottom="-1"
> > radiusX="2">
> >         <s:fill>
> >             <s:LinearGradient rotation="90">
> >                 <s:GradientEntry color="0x000000"
> >                                  color.down="0xFFFFFF"
> >                                  alpha="0.01"
> >                                  alpha.down="0" />
> >                 <s:GradientEntry color="0x000000"
> >                                  color.down="0xFFFFFF"
> >                                  alpha="0.07"
> >                                  alpha.down="0.5" />
> >             </s:LinearGradient>
> >         </s:fill>
> >     </s:Rect>
> > </snip>
> >
> > This specifies an FXG Rect element with the attribute radiusX.  So far so
> > good.  But the left, right, bottom and top are not part of the FXG spec
> [2]
> >  They are implemented as part of the ILayoutElement that one of the
> > ancestors of s:Rect i.e. GraphicElement class.
> >
> > The way I am approaching is to make it a combination of SVG and CSS.
>  This
> > means that I can translate FXG's @radiusX into SVG's @rx.  And I can
> > translate MXMLG's @top into style="position:relative; top=-1"
> >
> > Is this the kind of example you wanted?  I can go into more detail on my
> > approach if you want.  Let me know.
> >
> > Thanks,
> > Om
> >
> > [1]
> >
> http://help.adobe.com/en_US/flex/using/WSda78ed3a750d6b8f26c150d412357de3591-8
> > 000.html#WSDAD87261-09E9-4091-8169-F2758607F125
> > [2] http://sourceforge.net/adobe/flexsdk/wiki/FXG%202.0%20Specification/
> >
> >
> >>
> >> MXML Graphics in a skin are generally there for manipulation.  The
> >> top-level
> >> tag is some component class.  I think in FlexJS, I would suggest just
> >> writing components for Rect, Path, etc, so they can also be manipulated
> at
> >> runtime.
> >>
> >>
> >> On 3/25/13 12:15 PM, "Om" <bi...@gmail.com> wrote:
> >>
> >>> On Mon, Mar 25, 2013 at 11:55 AM, Erik de Bruin <er...@ixsoftware.nl>
> >> wrote:
> >>>
> >>>> Om,
> >>>>
> >>>> 1) the wiki is mostly current, but as a work in progress: if it
> >>>> doesn't work, ask and we will fix ;-)
> >>>>
> >>>> 2) CSS resulting from...? I'm not familiar with FXG etc., so my
> >>>> questions are bound to be naive as well, as you'll notice. Basically
> >>>> we have access to whatever the compiler (Falcon-main, if you will) has
> >>>> access to, but some thing might be easier than others. Mike S. is our
> >>>> wizard, he'll know what to do if we can't figure it out.
> >>>>
> >>>
> >>> Just to be clear, for all practical purposes, when I say FXG, I really
> >> mean
> >>> MXML.  This is because, the Flex implementation of FXG ensures that FXG
> >>> elements can be pluggable inline into any MXML component.  So, if we
> are
> >> to
> >>> support MXML, then we must support FXG.
> >>>
> >>> In what I am doing currently, I am actually processing an MXML file,
> >> ignore
> >>> things that I dont care about (like fx:Script, fx:Metadata, and any
> >>> non-visual component)
> >>>
> >>> It just happens that for Spark components, the FXG elements appear only
> >> in
> >>> their Spark skins.  This makes my job easier because if I target only
> the
> >>> spark skins, I wont have to deal with a lot of other MXML functional
> >> (i.e.
> >>> non view) elements.
> >>>
> >>>
> >>>>
> >>>> 3) Ah, there is the CSS, I guess (fxg -> svg + css). The AS code will
> >>>> be cross-compiled to AS (weird, I know) or any form of JS we chose,
> >>>> most likely 'goog' JS, as it will have to be compatible with FlexJS
> >>>> and the VanillaSDK. Due to the way FalconJx is set up, it will be easy
> >>>> to add FXG specific JS parsing, if needed.
> >>>>
> >>>
> >>> What if I want to handcode some javascript?  For example, if I want to
> >>> support the current 'states' paradigm used in spark skins, I need to
> >> write
> >>> some javascript to make it a reusable component.  I am not sure if this
> >> is
> >>> the right approach, though.  What do you guys think?
> >>>
> >>>
> >>>>
> >>>> 4) Sounds like and excellent starting point... however, you'll
> >>>> probably have to tweak your local SDK 'a bit' to get both the Flex and
> >>>> JS side working.  Or should be start one of those much rumored
> >>>> 'shared' feature branches of the SDK?
> >>>>
> >>>
> >>> What kind of tweaking do you mean?  Actually, I dont understand
> anything
> >>> you just said.  Please explain like I am 5 years old :-)
> >>>
> >>>
> >>>>
> >>>> I love how everything seems to be converging and it really feels like
> >>>> Flex -> HTML5/JS is doable!
> >>>>
> >>>
> >>> Cautious optimism abounds!
> >>>
> >>>
> >>>>
> >>>> EdB
> >>>>
> >>>>
> >>>>
> >>>> On Mon, Mar 25, 2013 at 7:21 PM, Om <bi...@gmail.com> wrote:
> >>>>> Erik,
> >>>>>
> >>>>> I am planning to get FalconJX working on my machine soon.  Before I
> >> start
> >>>>> digging into it,
> >>>>>
> >>>>> 1. Are these wiki pages current?
> >>>>>
> >>>>>
> >>>>
> >>
> >>
> https://cwiki.apache.org/confluence/display/FLEX/AS+to+JS+-+the+%27goog%27+Wa
> >>>>
> >> y
> >>>>>
> >>>>> https://cwiki.apache.org/confluence/display/FLEX/FalconJx+Prototype
> >>>>>
> >>>>> 2.  Do you have any thoughts on how we want to handle the resulting
> >> CSS?
> >>>>>  Inlining everything or have it as separate files?
> >>>>>
> >>>>> 3.  My approach would take in a spark skin file and convert the fxg
> >>>>> elements into svg+css.  There is going to some AS code that needs to
> be
> >>>>> converted JS.  I believe your approach already handles this right?
> >>>>>
> >>>>> 4.  I see that the VanillaSDK supports the Button component in HTML5.
> >>>>>  Maybe that is where I should start and get my code working there?
> >>>>>
> >>>>> Sorry if I am asking naive questions, but I am looking for some
> >> guidance
> >>>> on
> >>>>> how to get my work integrated into FalconJx (or FalconJS)
> >>>>>
> >>>>> Thanks,
> >>>>> Om
> >>>>>
> >>>>> On Mon, Mar 25, 2013 at 8:45 AM, Erik de Bruin <er...@ixsoftware.nl>
> >>>> wrote:
> >>>>>
> >>>>>> Hi,
> >>>>>>
> >>>>>> Just 'checking in': FalconJx can now compile the FlexJSTest_again
> >>>>>> example from the command line, using these arguments:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>
> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGl
> >>>> obal/player
> >>>>>> +playerglobal.version=11.1
> >>>>>> -load-config="/Applications/Adobe Flash Builder
> >>>>>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
> >>>>>>
> >>>>>>
> >>>>
> >>
> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/l
> >>>> ibs/FlexJSUI.swc
> >>>>>> -js-output-type=FLEXJS
> >>>>>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
> >>>>>>
> >>>>>>
> >>>>
> >>
> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/
> >>>> FlexJSTest.mxml
> >>>>>>
> >>>>>> Well, not exactly those, please change the paths to fit your local
> >>>>>> environment ;-)
> >>>>>>
> >>>>>> Next up:
> >>>>>> - support for publishing with the GCC and associated tricks
> (SourceMap
> >>>>>> etc.)
> >>>>>> - full FlexJS type AS -> JS support (the current implementation is
> >>>>>> custom tailored to the FlexJSTest_Again example code)
> >>>>>>
> >>>>>> Have fun!
> >>>>>>
> >>>>>> EdB
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Ix Multimedia Software
> >>>>>>
> >>>>>> Jan Luykenstraat 27
> >>>>>> 3521 VB Utrecht
> >>>>>>
> >>>>>> T. 06-51952295
> >>>>>> I. www.ixsoftware.nl
> >>>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Ix Multimedia Software
> >>>>
> >>>> Jan Luykenstraat 27
> >>>> 3521 VB Utrecht
> >>>>
> >>>> T. 06-51952295
> >>>> I. www.ixsoftware.nl
> >>>>
> >>
> >> --
> >> Alex Harui
> >> Flex SDK Team
> >> Adobe Systems, Inc.
> >> http://blogs.adobe.com/aharui
> >>
> >>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
Hmm.  But at the top-level is a non-FXG element like Skin or something like
that, right?  And, you don't know if script is going to change any of these
entities at run-time.  How are you going to make that happen when converted
to SVG?  Finally, nobody "drew" this skin in a design tool.  It was
hand-coded so it could have script code change things at runtime.

IMO, a vector skinning model would leverage FXG as it is spec'd.  Maybe we
need to allow FXG in "sub-documents" in a skin (like we do for in-line item
renderers with fx:Component), but I think you can also simply declare an FXG
class as a tag in a skin.  But from an MXML skin perspective, every tag maps
to a class.


On 3/25/13 3:18 PM, "Om" <bi...@gmail.com> wrote:

> On Mon, Mar 25, 2013 at 12:26 PM, Alex Harui <ah...@adobe.com> wrote:
> 
>> Om, can you give an example?
>> 
>> IMO, there is a difference between MXML Graphics and FXG.  To me, FXG is
>> stuff in an FXG file exported from several Adobe design tools.  The
>> internal
>> pieces are not manipulated at run time.  Today, FXG assets are compiled
>> into
>> Sprites and other SWF primitives.
>> 
> 
> You are right, I am mixing my terms FXG and MXMLG when I speak.  My
> workflow when working with FXG is more like this [1]  Which really is just
> changing the namespace from FXG namespace to Spark namespace.  Which is why
> the confusion, I guess.  But to make it clear, I am less worried about
> about bringing FXG documents as graphic primitives into the HTML5/JS space.
>  That would be nice, but not worth much.
> 
> Here is a concrete example
> from \frameworks\projects\spark\src\spark\skins\spark\ButtonSkin.mxml
> 
> <snip>
>     <!-- layer 1: shadow -->
>     <!--- @private -->
>     <s:Rect id="shadow" left="-1" right="-1" top="-1" bottom="-1"
> radiusX="2">
>         <s:fill>
>             <s:LinearGradient rotation="90">
>                 <s:GradientEntry color="0x000000"
>                                  color.down="0xFFFFFF"
>                                  alpha="0.01"
>                                  alpha.down="0" />
>                 <s:GradientEntry color="0x000000"
>                                  color.down="0xFFFFFF"
>                                  alpha="0.07"
>                                  alpha.down="0.5" />
>             </s:LinearGradient>
>         </s:fill>
>     </s:Rect>
> </snip>
> 
> This specifies an FXG Rect element with the attribute radiusX.  So far so
> good.  But the left, right, bottom and top are not part of the FXG spec [2]
>  They are implemented as part of the ILayoutElement that one of the
> ancestors of s:Rect i.e. GraphicElement class.
> 
> The way I am approaching is to make it a combination of SVG and CSS.  This
> means that I can translate FXG's @radiusX into SVG's @rx.  And I can
> translate MXMLG's @top into style="position:relative; top=-1"
> 
> Is this the kind of example you wanted?  I can go into more detail on my
> approach if you want.  Let me know.
> 
> Thanks,
> Om
> 
> [1]
> http://help.adobe.com/en_US/flex/using/WSda78ed3a750d6b8f26c150d412357de3591-8
> 000.html#WSDAD87261-09E9-4091-8169-F2758607F125
> [2] http://sourceforge.net/adobe/flexsdk/wiki/FXG%202.0%20Specification/
> 
> 
>> 
>> MXML Graphics in a skin are generally there for manipulation.  The
>> top-level
>> tag is some component class.  I think in FlexJS, I would suggest just
>> writing components for Rect, Path, etc, so they can also be manipulated at
>> runtime.
>> 
>> 
>> On 3/25/13 12:15 PM, "Om" <bi...@gmail.com> wrote:
>> 
>>> On Mon, Mar 25, 2013 at 11:55 AM, Erik de Bruin <er...@ixsoftware.nl>
>> wrote:
>>> 
>>>> Om,
>>>> 
>>>> 1) the wiki is mostly current, but as a work in progress: if it
>>>> doesn't work, ask and we will fix ;-)
>>>> 
>>>> 2) CSS resulting from...? I'm not familiar with FXG etc., so my
>>>> questions are bound to be naive as well, as you'll notice. Basically
>>>> we have access to whatever the compiler (Falcon-main, if you will) has
>>>> access to, but some thing might be easier than others. Mike S. is our
>>>> wizard, he'll know what to do if we can't figure it out.
>>>> 
>>> 
>>> Just to be clear, for all practical purposes, when I say FXG, I really
>> mean
>>> MXML.  This is because, the Flex implementation of FXG ensures that FXG
>>> elements can be pluggable inline into any MXML component.  So, if we are
>> to
>>> support MXML, then we must support FXG.
>>> 
>>> In what I am doing currently, I am actually processing an MXML file,
>> ignore
>>> things that I dont care about (like fx:Script, fx:Metadata, and any
>>> non-visual component)
>>> 
>>> It just happens that for Spark components, the FXG elements appear only
>> in
>>> their Spark skins.  This makes my job easier because if I target only the
>>> spark skins, I wont have to deal with a lot of other MXML functional
>> (i.e.
>>> non view) elements.
>>> 
>>> 
>>>> 
>>>> 3) Ah, there is the CSS, I guess (fxg -> svg + css). The AS code will
>>>> be cross-compiled to AS (weird, I know) or any form of JS we chose,
>>>> most likely 'goog' JS, as it will have to be compatible with FlexJS
>>>> and the VanillaSDK. Due to the way FalconJx is set up, it will be easy
>>>> to add FXG specific JS parsing, if needed.
>>>> 
>>> 
>>> What if I want to handcode some javascript?  For example, if I want to
>>> support the current 'states' paradigm used in spark skins, I need to
>> write
>>> some javascript to make it a reusable component.  I am not sure if this
>> is
>>> the right approach, though.  What do you guys think?
>>> 
>>> 
>>>> 
>>>> 4) Sounds like and excellent starting point... however, you'll
>>>> probably have to tweak your local SDK 'a bit' to get both the Flex and
>>>> JS side working.  Or should be start one of those much rumored
>>>> 'shared' feature branches of the SDK?
>>>> 
>>> 
>>> What kind of tweaking do you mean?  Actually, I dont understand anything
>>> you just said.  Please explain like I am 5 years old :-)
>>> 
>>> 
>>>> 
>>>> I love how everything seems to be converging and it really feels like
>>>> Flex -> HTML5/JS is doable!
>>>> 
>>> 
>>> Cautious optimism abounds!
>>> 
>>> 
>>>> 
>>>> EdB
>>>> 
>>>> 
>>>> 
>>>> On Mon, Mar 25, 2013 at 7:21 PM, Om <bi...@gmail.com> wrote:
>>>>> Erik,
>>>>> 
>>>>> I am planning to get FalconJX working on my machine soon.  Before I
>> start
>>>>> digging into it,
>>>>> 
>>>>> 1. Are these wiki pages current?
>>>>> 
>>>>> 
>>>> 
>> 
>> https://cwiki.apache.org/confluence/display/FLEX/AS+to+JS+-+the+%27goog%27+Wa
>>>> 
>> y
>>>>> 
>>>>> https://cwiki.apache.org/confluence/display/FLEX/FalconJx+Prototype
>>>>> 
>>>>> 2.  Do you have any thoughts on how we want to handle the resulting
>> CSS?
>>>>>  Inlining everything or have it as separate files?
>>>>> 
>>>>> 3.  My approach would take in a spark skin file and convert the fxg
>>>>> elements into svg+css.  There is going to some AS code that needs to be
>>>>> converted JS.  I believe your approach already handles this right?
>>>>> 
>>>>> 4.  I see that the VanillaSDK supports the Button component in HTML5.
>>>>>  Maybe that is where I should start and get my code working there?
>>>>> 
>>>>> Sorry if I am asking naive questions, but I am looking for some
>> guidance
>>>> on
>>>>> how to get my work integrated into FalconJx (or FalconJS)
>>>>> 
>>>>> Thanks,
>>>>> Om
>>>>> 
>>>>> On Mon, Mar 25, 2013 at 8:45 AM, Erik de Bruin <er...@ixsoftware.nl>
>>>> wrote:
>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>> Just 'checking in': FalconJx can now compile the FlexJSTest_again
>>>>>> example from the command line, using these arguments:
>>>>>> 
>>>>>> 
>>>>>> 
>>>> 
>> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGl
>>>> obal/player
>>>>>> +playerglobal.version=11.1
>>>>>> -load-config="/Applications/Adobe Flash Builder
>>>>>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
>>>>>> 
>>>>>> 
>>>> 
>> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/l
>>>> ibs/FlexJSUI.swc
>>>>>> -js-output-type=FLEXJS
>>>>>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
>>>>>> 
>>>>>> 
>>>> 
>> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/
>>>> FlexJSTest.mxml
>>>>>> 
>>>>>> Well, not exactly those, please change the paths to fit your local
>>>>>> environment ;-)
>>>>>> 
>>>>>> Next up:
>>>>>> - support for publishing with the GCC and associated tricks (SourceMap
>>>>>> etc.)
>>>>>> - full FlexJS type AS -> JS support (the current implementation is
>>>>>> custom tailored to the FlexJSTest_Again example code)
>>>>>> 
>>>>>> Have fun!
>>>>>> 
>>>>>> EdB
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Ix Multimedia Software
>>>>>> 
>>>>>> Jan Luykenstraat 27
>>>>>> 3521 VB Utrecht
>>>>>> 
>>>>>> T. 06-51952295
>>>>>> I. www.ixsoftware.nl
>>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Ix Multimedia Software
>>>> 
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>> 
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>> 
>> 
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>> 
>> 

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


Re: [FalconJx] progress update

Posted by Om <bi...@gmail.com>.
On Mon, Mar 25, 2013 at 12:26 PM, Alex Harui <ah...@adobe.com> wrote:

> Om, can you give an example?
>
> IMO, there is a difference between MXML Graphics and FXG.  To me, FXG is
> stuff in an FXG file exported from several Adobe design tools.  The
> internal
> pieces are not manipulated at run time.  Today, FXG assets are compiled
> into
> Sprites and other SWF primitives.
>

You are right, I am mixing my terms FXG and MXMLG when I speak.  My
workflow when working with FXG is more like this [1]  Which really is just
changing the namespace from FXG namespace to Spark namespace.  Which is why
the confusion, I guess.  But to make it clear, I am less worried about
about bringing FXG documents as graphic primitives into the HTML5/JS space.
 That would be nice, but not worth much.

Here is a concrete example
from \frameworks\projects\spark\src\spark\skins\spark\ButtonSkin.mxml

<snip>
    <!-- layer 1: shadow -->
    <!--- @private -->
    <s:Rect id="shadow" left="-1" right="-1" top="-1" bottom="-1"
radiusX="2">
        <s:fill>
            <s:LinearGradient rotation="90">
                <s:GradientEntry color="0x000000"
                                 color.down="0xFFFFFF"
                                 alpha="0.01"
                                 alpha.down="0" />
                <s:GradientEntry color="0x000000"
                                 color.down="0xFFFFFF"
                                 alpha="0.07"
                                 alpha.down="0.5" />
            </s:LinearGradient>
        </s:fill>
    </s:Rect>
</snip>

This specifies an FXG Rect element with the attribute radiusX.  So far so
good.  But the left, right, bottom and top are not part of the FXG spec [2]
 They are implemented as part of the ILayoutElement that one of the
ancestors of s:Rect i.e. GraphicElement class.

The way I am approaching is to make it a combination of SVG and CSS.  This
means that I can translate FXG's @radiusX into SVG's @rx.  And I can
translate MXMLG's @top into style="position:relative; top=-1"

Is this the kind of example you wanted?  I can go into more detail on my
approach if you want.  Let me know.

Thanks,
Om

[1]
http://help.adobe.com/en_US/flex/using/WSda78ed3a750d6b8f26c150d412357de3591-8000.html#WSDAD87261-09E9-4091-8169-F2758607F125
[2] http://sourceforge.net/adobe/flexsdk/wiki/FXG%202.0%20Specification/


>
> MXML Graphics in a skin are generally there for manipulation.  The
> top-level
> tag is some component class.  I think in FlexJS, I would suggest just
> writing components for Rect, Path, etc, so they can also be manipulated at
> runtime.
>
>
> On 3/25/13 12:15 PM, "Om" <bi...@gmail.com> wrote:
>
> > On Mon, Mar 25, 2013 at 11:55 AM, Erik de Bruin <er...@ixsoftware.nl>
> wrote:
> >
> >> Om,
> >>
> >> 1) the wiki is mostly current, but as a work in progress: if it
> >> doesn't work, ask and we will fix ;-)
> >>
> >> 2) CSS resulting from...? I'm not familiar with FXG etc., so my
> >> questions are bound to be naive as well, as you'll notice. Basically
> >> we have access to whatever the compiler (Falcon-main, if you will) has
> >> access to, but some thing might be easier than others. Mike S. is our
> >> wizard, he'll know what to do if we can't figure it out.
> >>
> >
> > Just to be clear, for all practical purposes, when I say FXG, I really
> mean
> > MXML.  This is because, the Flex implementation of FXG ensures that FXG
> > elements can be pluggable inline into any MXML component.  So, if we are
> to
> > support MXML, then we must support FXG.
> >
> > In what I am doing currently, I am actually processing an MXML file,
> ignore
> > things that I dont care about (like fx:Script, fx:Metadata, and any
> > non-visual component)
> >
> > It just happens that for Spark components, the FXG elements appear only
> in
> > their Spark skins.  This makes my job easier because if I target only the
> > spark skins, I wont have to deal with a lot of other MXML functional
> (i.e.
> > non view) elements.
> >
> >
> >>
> >> 3) Ah, there is the CSS, I guess (fxg -> svg + css). The AS code will
> >> be cross-compiled to AS (weird, I know) or any form of JS we chose,
> >> most likely 'goog' JS, as it will have to be compatible with FlexJS
> >> and the VanillaSDK. Due to the way FalconJx is set up, it will be easy
> >> to add FXG specific JS parsing, if needed.
> >>
> >
> > What if I want to handcode some javascript?  For example, if I want to
> > support the current 'states' paradigm used in spark skins, I need to
> write
> > some javascript to make it a reusable component.  I am not sure if this
> is
> > the right approach, though.  What do you guys think?
> >
> >
> >>
> >> 4) Sounds like and excellent starting point... however, you'll
> >> probably have to tweak your local SDK 'a bit' to get both the Flex and
> >> JS side working.  Or should be start one of those much rumored
> >> 'shared' feature branches of the SDK?
> >>
> >
> > What kind of tweaking do you mean?  Actually, I dont understand anything
> > you just said.  Please explain like I am 5 years old :-)
> >
> >
> >>
> >> I love how everything seems to be converging and it really feels like
> >> Flex -> HTML5/JS is doable!
> >>
> >
> > Cautious optimism abounds!
> >
> >
> >>
> >> EdB
> >>
> >>
> >>
> >> On Mon, Mar 25, 2013 at 7:21 PM, Om <bi...@gmail.com> wrote:
> >>> Erik,
> >>>
> >>> I am planning to get FalconJX working on my machine soon.  Before I
> start
> >>> digging into it,
> >>>
> >>> 1. Are these wiki pages current?
> >>>
> >>>
> >>
>
> https://cwiki.apache.org/confluence/display/FLEX/AS+to+JS+-+the+%27goog%27+Wa
> >>
> y
> >>>
> >>> https://cwiki.apache.org/confluence/display/FLEX/FalconJx+Prototype
> >>>
> >>> 2.  Do you have any thoughts on how we want to handle the resulting
> CSS?
> >>>  Inlining everything or have it as separate files?
> >>>
> >>> 3.  My approach would take in a spark skin file and convert the fxg
> >>> elements into svg+css.  There is going to some AS code that needs to be
> >>> converted JS.  I believe your approach already handles this right?
> >>>
> >>> 4.  I see that the VanillaSDK supports the Button component in HTML5.
> >>>  Maybe that is where I should start and get my code working there?
> >>>
> >>> Sorry if I am asking naive questions, but I am looking for some
> guidance
> >> on
> >>> how to get my work integrated into FalconJx (or FalconJS)
> >>>
> >>> Thanks,
> >>> Om
> >>>
> >>> On Mon, Mar 25, 2013 at 8:45 AM, Erik de Bruin <er...@ixsoftware.nl>
> >> wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>> Just 'checking in': FalconJx can now compile the FlexJSTest_again
> >>>> example from the command line, using these arguments:
> >>>>
> >>>>
> >>>>
> >>
> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGl
> >> obal/player
> >>>> +playerglobal.version=11.1
> >>>> -load-config="/Applications/Adobe Flash Builder
> >>>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
> >>>>
> >>>>
> >>
> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/l
> >> ibs/FlexJSUI.swc
> >>>> -js-output-type=FLEXJS
> >>>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
> >>>>
> >>>>
> >>
> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/
> >> FlexJSTest.mxml
> >>>>
> >>>> Well, not exactly those, please change the paths to fit your local
> >>>> environment ;-)
> >>>>
> >>>> Next up:
> >>>> - support for publishing with the GCC and associated tricks (SourceMap
> >>>> etc.)
> >>>> - full FlexJS type AS -> JS support (the current implementation is
> >>>> custom tailored to the FlexJSTest_Again example code)
> >>>>
> >>>> Have fun!
> >>>>
> >>>> EdB
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Ix Multimedia Software
> >>>>
> >>>> Jan Luykenstraat 27
> >>>> 3521 VB Utrecht
> >>>>
> >>>> T. 06-51952295
> >>>> I. www.ixsoftware.nl
> >>>>
> >>
> >>
> >>
> >> --
> >> Ix Multimedia Software
> >>
> >> Jan Luykenstraat 27
> >> 3521 VB Utrecht
> >>
> >> T. 06-51952295
> >> I. www.ixsoftware.nl
> >>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>

Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Om,

> Just to be clear, for all practical purposes, when I say FXG, I really mean
> MXML.  This is because, the Flex implementation of FXG ensures that FXG
> elements can be pluggable inline into any MXML component.  So, if we are to
> support MXML, then we must support FXG.
>
> In what I am doing currently, I am actually processing an MXML file, ignore
> things that I dont care about (like fx:Script, fx:Metadata, and any
> non-visual component)
>
> It just happens that for Spark components, the FXG elements appear only in
> their Spark skins.  This makes my job easier because if I target only the
> spark skins, I wont have to deal with a lot of other MXML functional (i.e.
> non view) elements.

Currently, the way it's (going to be) set up is that when parsing MXML
(which FalconJx now knows how to do), all script blocks and other
non-MXML entities encountered along the way are parsed by their own
type of parsers. So I imagine that you'd be writing a parser
specifically for the FXG elements and that parser will be called when
the MXML contains a FXG element. Would be my suggestion...

>>
>> 3) Ah, there is the CSS, I guess (fxg -> svg + css). The AS code will
>> be cross-compiled to AS (weird, I know) or any form of JS we chose,
>> most likely 'goog' JS, as it will have to be compatible with FlexJS
>> and the VanillaSDK. Due to the way FalconJx is set up, it will be easy
>> to add FXG specific JS parsing, if needed.
>>
>
> What if I want to handcode some javascript?  For example, if I want to
> support the current 'states' paradigm used in spark skins, I need to write
> some javascript to make it a reusable component.  I am not sure if this is
> the right approach, though.  What do you guys think?

All JS only, 'handcoded' scripts go in either the FlexJS and/or
VanillaSDK JS frameworks (flex-asjs->frameworks->js), so I guess the
FlexJS JS framework would be great place to put that for now
(VanillaSDK is being held back a bit on account of me being only one
person ;-).

>> 4) Sounds like and excellent starting point... however, you'll
>> probably have to tweak your local SDK 'a bit' to get both the Flex and
>> JS side working.  Or should be start one of those much rumored
>> 'shared' feature branches of the SDK?
>>
>
> What kind of tweaking do you mean?  Actually, I dont understand anything
> you just said.  Please explain like I am 5 years old :-)

Well, VanillaSDK requires you to work with a modified Flex SDK and I
don't have one ready to be shared just yet (hence the tweaking). Since
Alex indicated FlexJS is nearly ready to handle your type of
contribution, I think you best work with FlexJS for now.

> Cautious optimism abounds!

Unbridled naiveté for the win :-P

EdB



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
Om, can you give an example?

IMO, there is a difference between MXML Graphics and FXG.  To me, FXG is
stuff in an FXG file exported from several Adobe design tools.  The internal
pieces are not manipulated at run time.  Today, FXG assets are compiled into
Sprites and other SWF primitives.

MXML Graphics in a skin are generally there for manipulation.  The top-level
tag is some component class.  I think in FlexJS, I would suggest just
writing components for Rect, Path, etc, so they can also be manipulated at
runtime.


On 3/25/13 12:15 PM, "Om" <bi...@gmail.com> wrote:

> On Mon, Mar 25, 2013 at 11:55 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
> 
>> Om,
>> 
>> 1) the wiki is mostly current, but as a work in progress: if it
>> doesn't work, ask and we will fix ;-)
>> 
>> 2) CSS resulting from...? I'm not familiar with FXG etc., so my
>> questions are bound to be naive as well, as you'll notice. Basically
>> we have access to whatever the compiler (Falcon-main, if you will) has
>> access to, but some thing might be easier than others. Mike S. is our
>> wizard, he'll know what to do if we can't figure it out.
>> 
> 
> Just to be clear, for all practical purposes, when I say FXG, I really mean
> MXML.  This is because, the Flex implementation of FXG ensures that FXG
> elements can be pluggable inline into any MXML component.  So, if we are to
> support MXML, then we must support FXG.
> 
> In what I am doing currently, I am actually processing an MXML file, ignore
> things that I dont care about (like fx:Script, fx:Metadata, and any
> non-visual component)
> 
> It just happens that for Spark components, the FXG elements appear only in
> their Spark skins.  This makes my job easier because if I target only the
> spark skins, I wont have to deal with a lot of other MXML functional (i.e.
> non view) elements.
> 
> 
>> 
>> 3) Ah, there is the CSS, I guess (fxg -> svg + css). The AS code will
>> be cross-compiled to AS (weird, I know) or any form of JS we chose,
>> most likely 'goog' JS, as it will have to be compatible with FlexJS
>> and the VanillaSDK. Due to the way FalconJx is set up, it will be easy
>> to add FXG specific JS parsing, if needed.
>> 
> 
> What if I want to handcode some javascript?  For example, if I want to
> support the current 'states' paradigm used in spark skins, I need to write
> some javascript to make it a reusable component.  I am not sure if this is
> the right approach, though.  What do you guys think?
> 
> 
>> 
>> 4) Sounds like and excellent starting point... however, you'll
>> probably have to tweak your local SDK 'a bit' to get both the Flex and
>> JS side working.  Or should be start one of those much rumored
>> 'shared' feature branches of the SDK?
>> 
> 
> What kind of tweaking do you mean?  Actually, I dont understand anything
> you just said.  Please explain like I am 5 years old :-)
> 
> 
>> 
>> I love how everything seems to be converging and it really feels like
>> Flex -> HTML5/JS is doable!
>> 
> 
> Cautious optimism abounds!
> 
> 
>> 
>> EdB
>> 
>> 
>> 
>> On Mon, Mar 25, 2013 at 7:21 PM, Om <bi...@gmail.com> wrote:
>>> Erik,
>>> 
>>> I am planning to get FalconJX working on my machine soon.  Before I start
>>> digging into it,
>>> 
>>> 1. Are these wiki pages current?
>>> 
>>> 
>> 
https://cwiki.apache.org/confluence/display/FLEX/AS+to+JS+-+the+%27goog%27+Wa>>
y
>>> 
>>> https://cwiki.apache.org/confluence/display/FLEX/FalconJx+Prototype
>>> 
>>> 2.  Do you have any thoughts on how we want to handle the resulting CSS?
>>>  Inlining everything or have it as separate files?
>>> 
>>> 3.  My approach would take in a spark skin file and convert the fxg
>>> elements into svg+css.  There is going to some AS code that needs to be
>>> converted JS.  I believe your approach already handles this right?
>>> 
>>> 4.  I see that the VanillaSDK supports the Button component in HTML5.
>>>  Maybe that is where I should start and get my code working there?
>>> 
>>> Sorry if I am asking naive questions, but I am looking for some guidance
>> on
>>> how to get my work integrated into FalconJx (or FalconJS)
>>> 
>>> Thanks,
>>> Om
>>> 
>>> On Mon, Mar 25, 2013 at 8:45 AM, Erik de Bruin <er...@ixsoftware.nl>
>> wrote:
>>> 
>>>> Hi,
>>>> 
>>>> Just 'checking in': FalconJx can now compile the FlexJSTest_again
>>>> example from the command line, using these arguments:
>>>> 
>>>> 
>>>> 
>> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGl
>> obal/player
>>>> +playerglobal.version=11.1
>>>> -load-config="/Applications/Adobe Flash Builder
>>>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
>>>> 
>>>> 
>> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/l
>> ibs/FlexJSUI.swc
>>>> -js-output-type=FLEXJS
>>>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
>>>> 
>>>> 
>> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/
>> FlexJSTest.mxml
>>>> 
>>>> Well, not exactly those, please change the paths to fit your local
>>>> environment ;-)
>>>> 
>>>> Next up:
>>>> - support for publishing with the GCC and associated tricks (SourceMap
>>>> etc.)
>>>> - full FlexJS type AS -> JS support (the current implementation is
>>>> custom tailored to the FlexJSTest_Again example code)
>>>> 
>>>> Have fun!
>>>> 
>>>> EdB
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Ix Multimedia Software
>>>> 
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>> 
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>> 
>> 
>> 
>> 
>> --
>> Ix Multimedia Software
>> 
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>> 
>> T. 06-51952295
>> I. www.ixsoftware.nl
>> 

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


Re: [FalconJx] progress update

Posted by Om <bi...@gmail.com>.
On Mon, Mar 25, 2013 at 11:55 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:

> Om,
>
> 1) the wiki is mostly current, but as a work in progress: if it
> doesn't work, ask and we will fix ;-)
>
> 2) CSS resulting from...? I'm not familiar with FXG etc., so my
> questions are bound to be naive as well, as you'll notice. Basically
> we have access to whatever the compiler (Falcon-main, if you will) has
> access to, but some thing might be easier than others. Mike S. is our
> wizard, he'll know what to do if we can't figure it out.
>

Just to be clear, for all practical purposes, when I say FXG, I really mean
MXML.  This is because, the Flex implementation of FXG ensures that FXG
elements can be pluggable inline into any MXML component.  So, if we are to
support MXML, then we must support FXG.

In what I am doing currently, I am actually processing an MXML file, ignore
things that I dont care about (like fx:Script, fx:Metadata, and any
non-visual component)

It just happens that for Spark components, the FXG elements appear only in
their Spark skins.  This makes my job easier because if I target only the
spark skins, I wont have to deal with a lot of other MXML functional (i.e.
non view) elements.


>
> 3) Ah, there is the CSS, I guess (fxg -> svg + css). The AS code will
> be cross-compiled to AS (weird, I know) or any form of JS we chose,
> most likely 'goog' JS, as it will have to be compatible with FlexJS
> and the VanillaSDK. Due to the way FalconJx is set up, it will be easy
> to add FXG specific JS parsing, if needed.
>

What if I want to handcode some javascript?  For example, if I want to
support the current 'states' paradigm used in spark skins, I need to write
some javascript to make it a reusable component.  I am not sure if this is
the right approach, though.  What do you guys think?


>
> 4) Sounds like and excellent starting point... however, you'll
> probably have to tweak your local SDK 'a bit' to get both the Flex and
> JS side working.  Or should be start one of those much rumored
> 'shared' feature branches of the SDK?
>

What kind of tweaking do you mean?  Actually, I dont understand anything
you just said.  Please explain like I am 5 years old :-)


>
> I love how everything seems to be converging and it really feels like
> Flex -> HTML5/JS is doable!
>

Cautious optimism abounds!


>
> EdB
>
>
>
> On Mon, Mar 25, 2013 at 7:21 PM, Om <bi...@gmail.com> wrote:
> > Erik,
> >
> > I am planning to get FalconJX working on my machine soon.  Before I start
> > digging into it,
> >
> > 1. Are these wiki pages current?
> >
> >
> https://cwiki.apache.org/confluence/display/FLEX/AS+to+JS+-+the+%27goog%27+Way
> >
> > https://cwiki.apache.org/confluence/display/FLEX/FalconJx+Prototype
> >
> > 2.  Do you have any thoughts on how we want to handle the resulting CSS?
> >  Inlining everything or have it as separate files?
> >
> > 3.  My approach would take in a spark skin file and convert the fxg
> > elements into svg+css.  There is going to some AS code that needs to be
> > converted JS.  I believe your approach already handles this right?
> >
> > 4.  I see that the VanillaSDK supports the Button component in HTML5.
> >  Maybe that is where I should start and get my code working there?
> >
> > Sorry if I am asking naive questions, but I am looking for some guidance
> on
> > how to get my work integrated into FalconJx (or FalconJS)
> >
> > Thanks,
> > Om
> >
> > On Mon, Mar 25, 2013 at 8:45 AM, Erik de Bruin <er...@ixsoftware.nl>
> wrote:
> >
> >> Hi,
> >>
> >> Just 'checking in': FalconJx can now compile the FlexJSTest_again
> >> example from the command line, using these arguments:
> >>
> >>
> >>
> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGlobal/player
> >> +playerglobal.version=11.1
> >> -load-config="/Applications/Adobe Flash Builder
> >> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
> >>
> >>
> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/libs/FlexJSUI.swc
> >> -js-output-type=FLEXJS
> >> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
> >>
> >>
> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/FlexJSTest.mxml
> >>
> >> Well, not exactly those, please change the paths to fit your local
> >> environment ;-)
> >>
> >> Next up:
> >> - support for publishing with the GCC and associated tricks (SourceMap
> >> etc.)
> >> - full FlexJS type AS -> JS support (the current implementation is
> >> custom tailored to the FlexJSTest_Again example code)
> >>
> >> Have fun!
> >>
> >> EdB
> >>
> >>
> >>
> >> --
> >> Ix Multimedia Software
> >>
> >> Jan Luykenstraat 27
> >> 3521 VB Utrecht
> >>
> >> T. 06-51952295
> >> I. www.ixsoftware.nl
> >>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl
>

Re: [FalconJx] progress update

Posted by Alex Harui <ah...@adobe.com>.
My answers in-line


On 3/25/13 11:55 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

> Om,
> 
> 1) the wiki is mostly current, but as a work in progress: if it
> doesn't work, ask and we will fix ;-)
> 
> 2) CSS resulting from...? I'm not familiar with FXG etc., so my
> questions are bound to be naive as well, as you'll notice. Basically
> we have access to whatever the compiler (Falcon-main, if you will) has
> access to, but some thing might be easier than others. Mike S. is our
> wizard, he'll know what to do if we can't figure it out.
For FlexJS, I haven't decided on what to do.  Currently, CSS is compiled
into a datastream much like MXML is, but nothing on the JS side of FlexJS
has required CSS yet, so essentially the problem is unsolved.  I'm pretty
sure we'll decide that we want one .css file that gets loaded in by the HTML
wrapper.  The compiler currently has the smarts that determines the right
subset of the source CSS files (by culling out type-selectors that aren't
used, for example).  But knowing what your output will look like can
certainly guide what we end up with.
> 
> 3) Ah, there is the CSS, I guess (fxg -> svg + css). The AS code will
> be cross-compiled to AS (weird, I know) or any form of JS we chose,
> most likely 'goog' JS, as it will have to be compatible with FlexJS
> and the VanillaSDK. Due to the way FalconJx is set up, it will be easy
> to add FXG specific JS parsing, if needed.
> 
> 4) Sounds like and excellent starting point... however, you'll
> probably have to tweak your local SDK 'a bit' to get both the Flex and
> JS side working.  Or should be start one of those much rumored
> 'shared' feature branches of the SDK?
Peter and/or I plan to get started on the HTML5 set for FlexJS this week.
You are welcome to wait or write that first Button yourself.  BTW, what
browser or runtime environment are you going to be working with?
> 
> I love how everything seems to be converging and it really feels like
> Flex -> HTML5/JS is doable!
I finally got eclipse to build FalconJX from the Git sources.  I'll be
testing it out today.  FalconJS had a few bugs that needed fixing and I'm
hoping that you already fixed them in FalconJX.  If not I'll fix them in
FalconJX to help me learn that code.  Hopefully there won't be any more code
changes in compiler.js going forward.
> 
> EdB
> 
> 
> 
> On Mon, Mar 25, 2013 at 7:21 PM, Om <bi...@gmail.com> wrote:
>> Erik,
>> 
>> I am planning to get FalconJX working on my machine soon.  Before I start
>> digging into it,
>> 
>> 1. Are these wiki pages current?
>> 
>> 
https://cwiki.apache.org/confluence/display/FLEX/AS+to+JS+-+the+%27goog%27+Wa>>
y
>> 
>> https://cwiki.apache.org/confluence/display/FLEX/FalconJx+Prototype
>> 
>> 2.  Do you have any thoughts on how we want to handle the resulting CSS?
>>  Inlining everything or have it as separate files?
>> 
>> 3.  My approach would take in a spark skin file and convert the fxg
>> elements into svg+css.  There is going to some AS code that needs to be
>> converted JS.  I believe your approach already handles this right?
>> 
>> 4.  I see that the VanillaSDK supports the Button component in HTML5.
>>  Maybe that is where I should start and get my code working there?
>> 
>> Sorry if I am asking naive questions, but I am looking for some guidance on
>> how to get my work integrated into FalconJx (or FalconJS)
>> 
>> Thanks,
>> Om
>> 
>> On Mon, Mar 25, 2013 at 8:45 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>> 
>>> Hi,
>>> 
>>> Just 'checking in': FalconJx can now compile the FlexJSTest_again
>>> example from the command line, using these arguments:
>>> 
>>> 
>>> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerG
>>> lobal/player
>>> +playerglobal.version=11.1
>>> -load-config="/Applications/Adobe Flash Builder
>>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
>>> 
>>> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/
>>> libs/FlexJSUI.swc
>>> -js-output-type=FLEXJS
>>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
>>> 
>>> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src
>>> /FlexJSTest.mxml
>>> 
>>> Well, not exactly those, please change the paths to fit your local
>>> environment ;-)
>>> 
>>> Next up:
>>> - support for publishing with the GCC and associated tricks (SourceMap
>>> etc.)
>>> - full FlexJS type AS -> JS support (the current implementation is
>>> custom tailored to the FlexJSTest_Again example code)
>>> 
>>> Have fun!
>>> 
>>> EdB
>>> 
>>> 
>>> 
>>> --
>>> Ix Multimedia Software
>>> 
>>> Jan Luykenstraat 27
>>> 3521 VB Utrecht
>>> 
>>> T. 06-51952295
>>> I. www.ixsoftware.nl
>>> 
> 
> 

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


Re: [FalconJx] progress update

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Om,

1) the wiki is mostly current, but as a work in progress: if it
doesn't work, ask and we will fix ;-)

2) CSS resulting from...? I'm not familiar with FXG etc., so my
questions are bound to be naive as well, as you'll notice. Basically
we have access to whatever the compiler (Falcon-main, if you will) has
access to, but some thing might be easier than others. Mike S. is our
wizard, he'll know what to do if we can't figure it out.

3) Ah, there is the CSS, I guess (fxg -> svg + css). The AS code will
be cross-compiled to AS (weird, I know) or any form of JS we chose,
most likely 'goog' JS, as it will have to be compatible with FlexJS
and the VanillaSDK. Due to the way FalconJx is set up, it will be easy
to add FXG specific JS parsing, if needed.

4) Sounds like and excellent starting point... however, you'll
probably have to tweak your local SDK 'a bit' to get both the Flex and
JS side working.  Or should be start one of those much rumored
'shared' feature branches of the SDK?

I love how everything seems to be converging and it really feels like
Flex -> HTML5/JS is doable!

EdB



On Mon, Mar 25, 2013 at 7:21 PM, Om <bi...@gmail.com> wrote:
> Erik,
>
> I am planning to get FalconJX working on my machine soon.  Before I start
> digging into it,
>
> 1. Are these wiki pages current?
>
> https://cwiki.apache.org/confluence/display/FLEX/AS+to+JS+-+the+%27goog%27+Way
>
> https://cwiki.apache.org/confluence/display/FLEX/FalconJx+Prototype
>
> 2.  Do you have any thoughts on how we want to handle the resulting CSS?
>  Inlining everything or have it as separate files?
>
> 3.  My approach would take in a spark skin file and convert the fxg
> elements into svg+css.  There is going to some AS code that needs to be
> converted JS.  I believe your approach already handles this right?
>
> 4.  I see that the VanillaSDK supports the Button component in HTML5.
>  Maybe that is where I should start and get my code working there?
>
> Sorry if I am asking naive questions, but I am looking for some guidance on
> how to get my work integrated into FalconJx (or FalconJS)
>
> Thanks,
> Om
>
> On Mon, Mar 25, 2013 at 8:45 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:
>
>> Hi,
>>
>> Just 'checking in': FalconJx can now compile the FlexJSTest_again
>> example from the command line, using these arguments:
>>
>>
>> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGlobal/player
>> +playerglobal.version=11.1
>> -load-config="/Applications/Adobe Flash Builder
>> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
>>
>> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/libs/FlexJSUI.swc
>> -js-output-type=FLEXJS
>> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
>>
>> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/FlexJSTest.mxml
>>
>> Well, not exactly those, please change the paths to fit your local
>> environment ;-)
>>
>> Next up:
>> - support for publishing with the GCC and associated tricks (SourceMap
>> etc.)
>> - full FlexJS type AS -> JS support (the current implementation is
>> custom tailored to the FlexJSTest_Again example code)
>>
>> Have fun!
>>
>> EdB
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FalconJx] progress update

Posted by Om <bi...@gmail.com>.
Erik,

I am planning to get FalconJX working on my machine soon.  Before I start
digging into it,

1. Are these wiki pages current?

https://cwiki.apache.org/confluence/display/FLEX/AS+to+JS+-+the+%27goog%27+Way

https://cwiki.apache.org/confluence/display/FLEX/FalconJx+Prototype

2.  Do you have any thoughts on how we want to handle the resulting CSS?
 Inlining everything or have it as separate files?

3.  My approach would take in a spark skin file and convert the fxg
elements into svg+css.  There is going to some AS code that needs to be
converted JS.  I believe your approach already handles this right?

4.  I see that the VanillaSDK supports the Button component in HTML5.
 Maybe that is where I should start and get my code working there?

Sorry if I am asking naive questions, but I am looking for some guidance on
how to get my work integrated into FalconJx (or FalconJS)

Thanks,
Om

On Mon, Mar 25, 2013 at 8:45 AM, Erik de Bruin <er...@ixsoftware.nl> wrote:

> Hi,
>
> Just 'checking in': FalconJx can now compile the FlexJSTest_again
> example from the command line, using these arguments:
>
>
> +env.PLAYERGLOBAL_HOME=/Users/erik/Documents/ApacheFlex/dependencies/PlayerGlobal/player
> +playerglobal.version=11.1
> -load-config="/Applications/Adobe Flash Builder
> 4.7/sdks/4.9.1/frameworks/flex-config.xml"
>
> -library-path+=/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/as/libs/FlexJSUI.swc
> -js-output-type=FLEXJS
> -output=/Users/erik/Desktop/FlexJS/fromEclipse/FlexJSTest.js
>
> /Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/FlexJSTest_again/src/FlexJSTest.mxml
>
> Well, not exactly those, please change the paths to fit your local
> environment ;-)
>
> Next up:
> - support for publishing with the GCC and associated tricks (SourceMap
> etc.)
> - full FlexJS type AS -> JS support (the current implementation is
> custom tailored to the FlexJSTest_Again example code)
>
> Have fun!
>
> EdB
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl
>