On 11/28/12 12:37 AM, "Joan Llenas Masó" <j...@garnetworks.com> wrote:

> I like the approach (I just read the wiki, didn't look at the JS vs AS
> implementation parts). It has a lot of sense.
> I think that Goals vs Non Goals are a key part, specially this statement: "we
> will encapsulate the best implementation possible under a given API contract
> ".
> Specially if we want to support the spark skinning model and other Flex
> architectural gems throughout all rendering targets.
There will be skinning, but I currently don't want to bring in the Spark
skinning model verbatim.  I think the SkinPart concept was a compromise
required to meet some performance requirements.  Maybe we'll run into the
same performance issues and have to make the same compromise, but the
prototype currently uses a more distinct model/view/controller pattern.  In
Spark, the model is baked into the component and cannot be replaced/extended
without extending the component.  Remember how in early Flex 4 it was
difficult to add an icon to the Button skin?  Even now, try adding a second
icon to the skin.  You can't just change the model and the skin, you have to
subclass the component.  Also, it has a key flaw in that it pushes
information down to the child/skin up front instead of allowing the skin to
get what it needs on-demand.  If the initial state of a skin did not need
the icon, too bad, cycles were taken to push it down to the skin.

One other thing:  I think the fundamental piece of skinning in this new
model will be bitmaps.  I think it might be a lot of work to get vector art
to "skin" a button in HTML/JS.  And, yes, then those buttons won't scale as
well, but maybe they will be more compatible with GPU renderers?
> 
> What's needed to run the sample project you provide?
I built the FlexJSUI swc and FlexJSTest.as in FlashBuilder.
Then, I 
-copied the .as files to a folder and ran FalconJS on it.
-hand-created the index.html
-copied the js directory
Opened the index.html in FireFox

After that, I 
-installed PhoneGap/Cordova.
-installed the Android/Eclipse IDE
-created a new PhoneGap project.
-replaced the index.html and js files it created for me with the index.html
and js files from above.
-published for Android and saw it run in the emulator.

> What's next? :-)
1) Put more information in the wiki.
2) Get working on Falcon
3) Get working on more components

> 
> Cheers!
> 
> 
> --
> Joan Llenas Masó
> CEO/CTO Garnet Works SL
> T. 93 848 57 27
> --
> @joangarnet (es)
> @joanllenas (en)
> http://joan.garnet.io
> http://www.garnetworks.com
> 
> 
> 
> 
> On Wed, Nov 28, 2012 at 8:34 AM, Alex Harui <aha...@adobe.com> wrote:
> 
>> Hi,
>> 
>> I finally got permission to check in a demo that uses FalconJS into my
>> whiteboard at [1].
>> 
>> I started a writeup on it on the wiki that I will try to complete tomorrow
>> at [2].
>> 
>> [1] http://svn.apache.org/viewvc/incubator/flex/whiteboard/aharui/flexjs
>> [2]
>> https://cwiki.apache.org/confluence/display/FLEX/Alex's+FlexJS+Prototype
>> 
>> Thanks,
>> --
>> 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

Reply via email to