Wow, now this is great to see Josh! I am so glad you had some time to get this together. Now it makes me feel great that I busted my ass to get those externs working. ;-)
Will be interesting to see where this goes. Mike On Tue, Jul 28, 2015 at 4:29 PM, Josh Tynjala <[email protected]> wrote: > Here's the root class from the demo: > > https://gist.github.com/joshtynjala/fb66c96b2fcf35f9409c > > AS3 only. I'm pretty sure that I would need to manually wire some things up > to allow MXML to be used with these components. However, as I understand > it, the Falcon MXML compiler is more data-driven, so the compiler might not > need modifications. I assume the components would need to conform to some > kind of interface or pass in some kind of callbacks or something like that. > I haven't looked into it. > > - Josh > > On Tue, Jul 28, 2015 at 12:39 PM, Carlos Rovira < > [email protected]> wrote: > > > Hi Josh, > > > > could you point me to the root class of this example? > > I don't find the code > > > > One more thing (just curiosity), is MXML allowed, or only AS3? ( I > suppose > > only the later, but want to know something for sure) > > > > Thanks > > > > > > > > 2015-07-28 21:31 GMT+02:00 Carlos Rovira <[email protected] > >: > > > > > Amazing! Very well done! As I stated in some other sites, is like > > feathers > > > could be (at least in soul) the next Flex 5! (thanks of course to > FlexJS) > > > > > > I will dig a bit through the github code to see the internals > > > > > > Congrats Josh! :) > > > > > > Carlos > > > > > > 2015-07-28 20:44 GMT+02:00 Alex Harui <[email protected]>: > > > > > >> This is awesome! Thanks to you and the others who have brought the > code > > >> base to this point. > > >> > > >> -Alex > > >> > > >> On 7/28/15, 11:15 AM, "Josh Tynjala" <[email protected]> wrote: > > >> > > >> >Hey folks, > > >> > > > >> >Last week, I created a prototype of some Feathers-like components > > running > > >> >on top of CreateJS, but written in AS3 and transpiled with FlexJS. > > >> > > > >> >Here's a little demo: > > >> > > > >> >http://joshblog.net/projects/feathers-createjs/demo/ > > >> > > > >> >It's 50 buttons that can be scrolled vertically. Click/touch and drag > > to > > >> >scroll (like a mobile app). Nothing amazing, but I think it shows the > > >> >potential. > > >> > > > >> >I tested scrolling performance on several devices. It maintains a > good > > 60 > > >> >FPS on my Nexus 5 and iPad Mini 3. It's still quite smooth on a > couple > > of > > >> >three-year-old devices (Nexus 7 and Nexus 10 from 2012). For fun, I > > also > > >> >tried it with the original Kindle Fire from 2011, but that was super > > >> slow. > > >> >I suspect that this device's browser isn't capable of drawing canvas > > with > > >> >GPU acceleration, though. > > >> > > > >> >I found that I needed to make one particular optimization to get the > > best > > >> >performance. Most events dispatched by a Feathers component in this > > demo > > >> >come from an object pool so that event objects can be reused. This > > >> boosted > > >> >FPS on mobile devices a lot, in the same way that it helps in > Starling. > > >> >Garbage collection (and possibly allocation, to some degree) is a > > >> >performance killer when it comes to UI. > > >> > > > >> >Scrolling is powered by the Zynga's "Scroller" JavaScript library. I > > >> >simply > > >> >made some externs for it. Being able to pull in existing JavaScript > > >> >libraries is really nice. > > >> > > > >> >I put the source code for this experimental version of Feathers up on > > >> >Github: > > >> > > > >> >https://github.com/joshtynjala/feathers-createjs > > >> > > > >> >You'll see that there are some workarounds for bugs in the transpiler > > >> >(which I've reported), but overall, it looks like regular old AS3 > that > > >> >you'd write for the Flash runtimes. It felt really nice to bring my > AS3 > > >> >skills to a different environment. > > >> > > > >> >- Josh > > >> > > >> > > > > > > > > > -- > > > > > > 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/ Tres Creus, nº 104, 2-1, 08202 de Sabadell > > > (Barcelona) con la documentación necesaria. > > > > > > > > > > > > -- > > > > 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/ Tres Creus, nº 104, 2-1, 08202 de Sabadell (Barcelona) con la > > documentación necesaria. > > >
