Amazing. When FlexJS started, the key mantra was always go for a new
framework without looking back.
I continue thinking that trying to compile old Flex applications with
FlexJS is science-fictions...but now, with the progress
that Alex report...maybe it could be possible in part.
Great work Alex!!
Carlos
2016-03-29 3:17 GMT+02:00 Mark Kessler <kesslerconsulting@gmail.com>:
> Sounds like great progress.
>
>
> -Mark
>
> On Mon, Mar 28, 2016 at 5:37 PM, Alex Harui <aharui@adobe.com> wrote:
>
> > Hi,
> >
> > As you may know, I've been exploring what it would take to create a set
> of
> > components for FlexJS that more closely match the Spark (and MX) APIs
> from
> > the regular Flex SDK.
> >
> > Today, I reached an early milestone: I got a subset of UIComponent to
> > subclass the FlexJS UIBase and cross-compile with zero errors. It
> doesn't
> > run yet, but it gives us information about the effort and patterns
> > involved and some early idea of the size.
> >
> > In order to create a manageable subset, I commented out all code in
> > UIComponent related to:
> >
> > -accessibility
> > -rotation
> > -scale
> > -3D and Transforms and other AdvancedLayoutFeatures
> > -designLayer
> > -BlendModes and BlendShaders
> > -Filters
> > -doubleClick
> > -cacheAsBitmap, cachePolicy and cacheHeuristic
> > -AdvancedStyleClient
> > -Repeater
> > -XML DataBinding
> >
> > Most of what is in the list is stuff related to "fancy" visuals. IMO,
> you
> > can build many apps without these features.
> >
> > In addition, I changed some weak reference listeners to strong listeners
> > since we don't have weak reference support on the JS side so any code
> that
> > does a lot of discarding of UIComponents is going to leak (for now). The
> > only idea I have for dealing with lack of weak references going forward
> is
> > to add a dispose() call to UIComponent and other objects similar to what
> > you already have to do for Bitmaps and XML.
> >
> > It turns out that it still took some 212 files to compile UIComponent.
> > That's how complex the web of interdependencies are in the Flex SDK. But
> > interestingly, the cross-compiled output minified down to "only" an
> > additional 140K! I was thinking it would be 10 times as big.
> >
> > So that's promising, and means I will continue pushing on getting this to
> > run and port more code. I think the next milestone is to port
> > mx:Container, mx:Label, mx:Application just to see a Hello World run.
> > Then start porting Spark. How long that will take is unknown. The key
> > question is how many touch-points there are with Flash, especially APIs
> > with good names that shouldn't be renamed (like 'parent'). Maybe
> > UIComponent (and UITextField) are the primary points of contact with the
> > Runtime and higher-level components will port more cleanly.
> >
> > But first, I have slides and demos and hopefully a release (without this
> > stuff) to finish by next Monday.
> >
> > Feel free to ask questions,
> > -Alex
> >
> >
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.