Re: Entering FlexJS - FalconJX
Hi Alex, I commit the fix. The problem was in FlexJSUI createjs Application. Now the createjs works ok. Now that we can see SWF and JS result, I see a significative difference in both outputs. createJS buttons and labels has bigger sizes than swf ones. Since createjs is in non DOM and we are creating *skinning* in the button definition, there's no root size management in this kind of output. For this non-DOM variant we should take this into account if we continue to evolve controls for this implementation so the controls take into account default or user defined widths and height. 2013/4/30 Alex Harui aha...@adobe.com On 4/29/13 5:47 PM, Alex Harui aha...@adobe.com wrote: On 4/29/13 4:52 PM, Carlos Rovira carlos.rov...@codeoscopic.com wrote: Hi, I'm entering this days FlexJS - FalconJX and trying to make some contributions as I learn all the work done until date. I think there's very good ideas in the AS framework like the IStrand-IBead approach or the MXML data structure vs AS3 old generation. Really very cool and I see here lots of fun and hope to be able to have the time and skills to make some contribution along the way. For the moment I shared, just few minutes ago, a createjs checkbox control implementation while I'm familiarizing with all the pieces, but I would love to contribute with other things like containers, layouts, or a state implementation as time and skills allow. Now some questions since although I'm coding and compiling I already have some problems: 1.- In the createjs example, the SWF compilation does not run for me. It shows the folowing RTE at launch: TypeError: Error #1034: Error de conversión forzada: no se puede convertir flash.events::Event@1088d4f29 en org.apache.flex.events.Event. is this normal? That sounds like a bug. Hopefully Peter can look at in tomorrow. More information if you want to look into it yourself. The goal for FlexJS is to not dispatch any flash.events.Events and other Flash low-level events. Instead, we're wrapping all events in org.apache.flex.events.Event. This allows the developer to see where they import flash.events.Event in their code and know that those areas need to change. The AS-side in FlexJS does consume and dispatch flash.events.Event because it has to wherever it touches the Player APIs. It just isn't supposed to dispatch any as documented events in the API. So, this sort of bug happens when FlexJS dispatches a flash.events.Event that it didn't wrap, or the player dispatched something that we didn't trap first. -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui -- Carlos Rovira Director de Tecnología M: +34 607 22 60 05 F: +34 912 94 80 80 http://www.codeoscopic.com http://www.directwriter.es http://www.avant2.es
Re: Entering FlexJS - FalconJX
On 5/1/13 10:22 AM, Carlos Rovira carlos.rov...@codeoscopic.com wrote: Hi Alex, I commit the fix. The problem was in FlexJSUI createjs Application. Excellent, thanks. Now the createjs works ok. Now that we can see SWF and JS result, I see a significative difference in both outputs. createJS buttons and labels has bigger sizes than swf ones. Since createjs is in non DOM and we are creating *skinning* in the button definition, there's no root size management in this kind of output. For this non-DOM variant we should take this into account if we continue to evolve controls for this implementation so the controls take into account default or user defined widths and height. I haven't looked at the createJS version's code. For any control in this framework, my process is: 1) figure out the simplest way to do it in JS 2) figure out how to emulate that in AS. I think for now, Peter used the same controls on the AS side that we're using for the DOM-based JS controls. Eventually someone should modify the AS side so it has better defaults that match the createJS defaults and make sure the JS wrappers control size and position appropriately. IMO, the CreateJS version and the Jquery version Peter is currently working on are just experiments to see if the plumbing is agnostic of what JS framework is being wrapped. I'm planning on expanding out the DOM-based control set as my top priority unless we hear lots of noise and reasons for building out on some other framework first. Thanks for pitching in! -Alex -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui
Re: Entering FlexJS - FalconJX
3.- I saw an interesting POC with XSLT for a button skinning. What happen with that approach? is still a work in progress? I am still working on this concept. Expect to see more soon :-) Thanks, Om
Re: Entering FlexJS - FalconJX
On 4/29/13 4:52 PM, Carlos Rovira carlos.rov...@codeoscopic.com wrote: Hi, I'm entering this days FlexJS - FalconJX and trying to make some contributions as I learn all the work done until date. I think there's very good ideas in the AS framework like the IStrand-IBead approach or the MXML data structure vs AS3 old generation. Really very cool and I see here lots of fun and hope to be able to have the time and skills to make some contribution along the way. For the moment I shared, just few minutes ago, a createjs checkbox control implementation while I'm familiarizing with all the pieces, but I would love to contribute with other things like containers, layouts, or a state implementation as time and skills allow. Now some questions since although I'm coding and compiling I already have some problems: 1.- In the createjs example, the SWF compilation does not run for me. It shows the folowing RTE at launch: TypeError: Error #1034: Error de conversión forzada: no se puede convertir flash.events::Event@1088d4f29 en org.apache.flex.events.Event. is this normal? That sounds like a bug. Hopefully Peter can look at in tomorrow. The others sample I tried works ok both for me in Flash and JS. 2.- One thing I would like to see in a new Flex framework implementation is to be able to build with maven from beginning. What do you think about it? This would require change structure of the projects (FlexJSUI) to accommodate it to Maven. This does not mean that you need maven to build it. People using ANT could continue building with ANT, but taking maven into account from the beginning will make things more easy than convert it later and, as we get something more mature, will be more *enterprise friendly*. I'm ok with it, but please wait for a week or so until Erik comes back and checks in his major cleanup. 4- I'm a bit worried about debuging. Right now I don't see how can we get a decent debugging functionality. Threre's something planned? On the AS or JS side? What issues did you run into? On the AS side I run the Debug configuration and can use the FB debugger. On the JS side I launch Chrome and turn on JS debugging. Thanks for any insight and thanks for the updated documentation in the wiki to reflect the actual state of the project, it was crucial for me to get right info to get my environment working. I think I can't make changes in the wiki, so someone could grant privileges in the wiki? my username is carlosrovira. Do you have a wiki account? It is separate from your apache account. -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui
Re: Entering FlexJS - FalconJX
On 4/29/13 5:47 PM, Alex Harui aha...@adobe.com wrote: On 4/29/13 4:52 PM, Carlos Rovira carlos.rov...@codeoscopic.com wrote: Hi, I'm entering this days FlexJS - FalconJX and trying to make some contributions as I learn all the work done until date. I think there's very good ideas in the AS framework like the IStrand-IBead approach or the MXML data structure vs AS3 old generation. Really very cool and I see here lots of fun and hope to be able to have the time and skills to make some contribution along the way. For the moment I shared, just few minutes ago, a createjs checkbox control implementation while I'm familiarizing with all the pieces, but I would love to contribute with other things like containers, layouts, or a state implementation as time and skills allow. Now some questions since although I'm coding and compiling I already have some problems: 1.- In the createjs example, the SWF compilation does not run for me. It shows the folowing RTE at launch: TypeError: Error #1034: Error de conversión forzada: no se puede convertir flash.events::Event@1088d4f29 en org.apache.flex.events.Event. is this normal? That sounds like a bug. Hopefully Peter can look at in tomorrow. More information if you want to look into it yourself. The goal for FlexJS is to not dispatch any flash.events.Events and other Flash low-level events. Instead, we're wrapping all events in org.apache.flex.events.Event. This allows the developer to see where they import flash.events.Event in their code and know that those areas need to change. The AS-side in FlexJS does consume and dispatch flash.events.Event because it has to wherever it touches the Player APIs. It just isn't supposed to dispatch any as documented events in the API. So, this sort of bug happens when FlexJS dispatches a flash.events.Event that it didn't wrap, or the player dispatched something that we didn't trap first. -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui