I was talking about this canvas: http://en.wikipedia.org/wiki/Canvas_element

I haven't seen FalconJS but from what I read, it looks like it plays with the DOM. That's what GWT does. It's good for Google because they had nothing to start with. For Flex, I say "forget about the DOM". Draw everything directly into one single HTML Canvas element. So, the whole application is in one canvas. I think this would simplify the mapping of the AS UI constructs into HTML5, since it would entirely ignore the HTML constructs (except for Canvas, but even that could be shielded from the coder).

Of course it would be nice to be able to interact with the rest of the HTML page. But this could be done with ExternalInterface, or an enhanced version of it.
Yvon

-----Original message-----
From: Michael Schmalle <apa...@teotigraphix.com>
To: flex-dev@incubator.apache.org
Sent: Thu, Aug 30, 2012 10:17:15 GMT+00:00
Subject: RE: Cross-compiling Flex to HTML5/Javascript (Was : Update on Falcon donation)

When I wrote this I was thinking the OP was talking about a Canvas IE widget container, not a graphics container. Alex had mentioned it would be a lot more work with accessibility etc, I agree.

I was just speaking about containing it, no ties to the outside world in the beginning.

Mike

Quoting apa...@teotigraphix.com:

This is definitely how something would start, you would in essence create a "player" where you could eliminate as many variables as possible from the HTML/browser world.

Like I said, using ActionScript/Flex interface to output sometype of native is what I'm really interested.

Just thinking but really cross compiling done well is just templating on a high level. I have written my share of these and actually wrote an asdoc clone in java using the jasblocks parser/dom.

I'll tell you one thing, once you lay down the initial base, start creating your templates, in this case AST -> HTMLBuilder class that then owns a template file, interesting ideas popup and new ways of seeing the transformations happen.

Mike


Quoting "ysma...@yahoo.com" <ysma...@yahoo.com>:

My perhaps naive vision of what FalconJS would do (at least in the first
version), was that it would grab some kind of HTML5 canvas element; and
do
everything in that rectangle: all drawing and event handling would occur
in
that element. It's a 'simple' way to put a foot in the door of the HTML5
world. Well, I know that almost nothing is really simple. But it may be
the
simplest way. Sorry if you guys had all that figured out already, I'm a
newbie here. ;o)

Anyway, I wonder how realistic this approach is.

Yvon Sauvageau




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


Reply via email to