Re: iOS mobile keyboard TLF support
I'm not really familiar with ANE development but I will keep your suggestion in mind. But is it not possible to display and edit HTML on mobile? This looks like a big shortcoming to me. Surely there has to be an option to raise the keyboard and proxy the key events to a RichEditableText component? I don't want to end up using an ANE or a webview with JS based HTML editor if I can avoid it. I'm just a bit stunned that AIR is missing HTML functionalities for textarea's on mobile. I am willing to sacrifice performance if anyone has a way or workaround to get this done. On Thu, Jun 2, 2016 at 4:44 PM, Josh Tynjala wrote: > I've never tried this, but I wonder if you could create an ANE to manually > open and close the soft keyboard on iOS. If something on stage has focus, > it may still dispatch KeyboardEvents, even if AIR isn't the one that showed > the soft keyboard. > > - Josh > > On Thu, Jun 2, 2016 at 5:56 AM, Fréderic Cox > wrote: > > > Hi, > > > > I am currently working on a project where I have a TLFEditor to put a > > textarea's text in bold/italic/underline, change font size/color etc.. > > > > It works fine on desktop but not on mobile. > > > > Option 1 is to use skinClass = spark.skins.spark.TextAreaSkin but then > the > > keyboard on iOS does not show. > > > > Option 2 is to use the default mobile skin but then TLF is not supported. > > > > It is a product description component in which the user only needs to > add a > > small amount of text so the performance overhead for TLF is not an issue > > here. Just need to find a way to open the keyboard so the keyboard input > is > > accepted. Does anyone have a solution or workaround? > > > > I've spent almost 6 hours on this issue alone today .. I know > > requestSoftKeyboard() is not available on iOS and I've also tried setting > > stage.focus = textDisplay but nothing works on the device. > > > > Any help/workarounds are greatly appreciated! > > >
Re: Moonshine-IDE.com -- FlexJS, Flex, and ActionScript focused open source IDE -- contribution to Apache FlexJS
Congratulations. I will definitely download it today! I' Flex developer since version 3.0 and have not yet tested FlexJS for lack of an IDE with SDK integrated. -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Moonshine-IDE-com-FlexJS-Flex-and-ActionScript-focused-open-source-IDE-contribution-to-Apache-FlexJS-tp53300p53314.html Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: Moonshine-IDE.com -- FlexJS, Flex, and ActionScript focused open source IDE -- contribution to Apache FlexJS
Yes, congrats as well. I have downloaded it last week and have successfully run my first hello world FlexJS page which is a good start! Will continue with something a little more ambitious soon. BTW: Like the way you have integrated tour de flex! Great idea. Keep up the great work. Look forward to more docs, maybe even a youtube video for getting started or something. On Fri, Jun 3, 2016 at 6:03 PM, hferreira wrote: > Congratulations. > I will definitely download it today! > I' Flex developer since version 3.0 and have not yet tested FlexJS for lack > of an IDE with SDK integrated. > > > > -- > View this message in context: > http://apache-flex-development.247.n4.nabble.com/Moonshine-IDE-com-FlexJS-Flex-and-ActionScript-focused-open-source-IDE-contribution-to-Apache-FlexJS-tp53300p53314.html > Sent from the Apache Flex Development mailing list archive at Nabble.com. > -- Jasen Martin 0424 984 955
RE: Moonshine-IDE.com -- FlexJS, Flex, and ActionScript focused open source IDE -- contribution to Apache FlexJS
Hi Christian, We are aware of a permission error during FlexJS project compilation in Moonshine with latest FlexJS SDK (0.6.0). We are investigating this and we shall keep you informed when this is fixed in the App Store. Thanks for keeping us informed! Santanu Karar My Apache Flex community contribution is working on the open source Moonshine-IDE.com for FlexJS.
Re: iOS mobile keyboard TLF support
There is currently no way to make AIR show a soft keyboard on iOS for anything except a TextField or StageText that is in focus. I've been pushing Adobe to support the existing InteractiveObject needsSoftKeyboard and requestSoftKeyboard() APIs on iOS that are currently Android-only. https://bugbase.adobe.com/index.cfm?event=bug&id=3962712 You might be able to give a hidden TextField focus and listen for its events. It's pretty hacky, so I've avoided it. - Josh On Jun 3, 2016 1:25 AM, "Fréderic Cox" wrote: I'm not really familiar with ANE development but I will keep your suggestion in mind. But is it not possible to display and edit HTML on mobile? This looks like a big shortcoming to me. Surely there has to be an option to raise the keyboard and proxy the key events to a RichEditableText component? I don't want to end up using an ANE or a webview with JS based HTML editor if I can avoid it. I'm just a bit stunned that AIR is missing HTML functionalities for textarea's on mobile. I am willing to sacrifice performance if anyone has a way or workaround to get this done. On Thu, Jun 2, 2016 at 4:44 PM, Josh Tynjala wrote: > I've never tried this, but I wonder if you could create an ANE to manually > open and close the soft keyboard on iOS. If something on stage has focus, > it may still dispatch KeyboardEvents, even if AIR isn't the one that showed > the soft keyboard. > > - Josh > > On Thu, Jun 2, 2016 at 5:56 AM, Fréderic Cox > wrote: > > > Hi, > > > > I am currently working on a project where I have a TLFEditor to put a > > textarea's text in bold/italic/underline, change font size/color etc.. > > > > It works fine on desktop but not on mobile. > > > > Option 1 is to use skinClass = spark.skins.spark.TextAreaSkin but then > the > > keyboard on iOS does not show. > > > > Option 2 is to use the default mobile skin but then TLF is not supported. > > > > It is a product description component in which the user only needs to > add a > > small amount of text so the performance overhead for TLF is not an issue > > here. Just need to find a way to open the keyboard so the keyboard input > is > > accepted. Does anyone have a solution or workaround? > > > > I've spent almost 6 hours on this issue alone today .. I know > > requestSoftKeyboard() is not available on iOS and I've also tried setting > > stage.focus = textDisplay but nothing works on the device. > > > > Any help/workarounds are greatly appreciated! > > >
[FlexJS] with ReactJS
Hi, FlexJS has a couple of non-Flash component libraries now, CreateJS and jQuery, along with integration with Apache Cordova. This got me thinking about ReactJS. I did a little investigation to see how it might fit with FlexJS and I wrote a brief page about[1]. My opinion is that ReactJS, especially when used with JSX, is more parallel to FlexJS and not easily integrated as a project like some of the other JavaScript offerings. If you have familiarity with ReactJS, perhaps you could give the article a look and provide some feedback. Maybe I missed something crucial about ReactJS. Thanks, Peter Ent Adobe Systems/Apache Flex Project [1] https://cwiki.apache.org/confluence/display/FLEX/FlexJS+and+ReactJS
Re: [FlexJS] with ReactJS
Hi Peter, very interesting read. These days ReactJS seems to be the V library with most traction on the web (overpassing AngularJS 2 and others). I thought you integrated React in FlexJS but as I read I saw is really a comparision and not an integration like the one with CreateJS. Very useful to see the comparision. What do you think about integrate a library of components in FlexJS that would look more nicely and have a robust functionality built in?. I think the actual point is getting some component set in FlexJS with the whole lifecycle that would behave in some one way like the ones we had with spark. 2016-06-03 19:33 GMT+02:00 Peter Ent : > Hi, > > FlexJS has a couple of non-Flash component libraries now, CreateJS and > jQuery, along with integration with Apache Cordova. This got me thinking > about ReactJS. I did a little investigation to see how it might fit with > FlexJS and I wrote a brief page about[1]. My opinion is that ReactJS, > especially when used with JSX, is more parallel to FlexJS and not easily > integrated as a project like some of the other JavaScript offerings. > > If you have familiarity with ReactJS, perhaps you could give the article a > look and provide some feedback. Maybe I missed something crucial about > ReactJS. > > Thanks, > Peter Ent > Adobe Systems/Apache Flex Project > > > [1] https://cwiki.apache.org/confluence/display/FLEX/FlexJS+and+ReactJS > -- 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.
Re: [FlexJS] with ReactJS
Thanks for checking out the article. Alex Harui is working on such a thing. Perhaps when he has a moment he can fill us in on the details. ‹peter On 6/3/16, 2:35 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Peter, > >very interesting read. These days ReactJS seems to be the V library with >most traction on the web (overpassing AngularJS 2 and others). I thought >you integrated React in FlexJS but as I read I saw is really a comparision >and not an integration like the one with CreateJS. Very useful to see the >comparision. > >What do you think about integrate a library of components in FlexJS that >would look more nicely and have a robust functionality built in?. I think >the actual point is getting some component set in FlexJS with the whole >lifecycle that would behave in some one way like the ones we had with >spark. > > > > > >2016-06-03 19:33 GMT+02:00 Peter Ent : > >> Hi, >> >> FlexJS has a couple of non-Flash component libraries now, CreateJS and >> jQuery, along with integration with Apache Cordova. This got me thinking >> about ReactJS. I did a little investigation to see how it might fit with >> FlexJS and I wrote a brief page about[1]. My opinion is that ReactJS, >> especially when used with JSX, is more parallel to FlexJS and not easily >> integrated as a project like some of the other JavaScript offerings. >> >> If you have familiarity with ReactJS, perhaps you could give the >>article a >> look and provide some feedback. Maybe I missed something crucial about >> ReactJS. >> >> Thanks, >> Peter Ent >> Adobe Systems/Apache Flex Project >> >> >> [1] https://cwiki.apache.org/confluence/display/FLEX/FlexJS+and+ReactJS >> > > > >-- > >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.
Re: [FlexJS] with ReactJS
On 6/3/16, 11:39 AM, "Peter Ent" wrote: >Thanks for checking out the article. Alex Harui is working on such a >thing. Perhaps when he has a moment he can fill us in on the details. Well, I'm trying to see if we can run MX and Spark on top of FlexJS, but it is going to be fat and slow because Flex is, compared to raw HTMLElements, fat and slow. I'm not sure it will compare well with ReactJS. The goal of that effort is to reduce migration pain for existing Flex code bases. The ReactJS experiment is more about whether we can capture fans who are developing new apps with ReactJS and running into any pain points along the way. I'm interested in what Carlos and others would expect from FlexJS in order to be a "better way" of developing web apps. That's the approach we have taken with CreateJS and Cordova: the wiki pages Peter wrote try to illustrate how Apache Flex makes CreateJS and Cordova app development even more productive. We are not trying to take customers away from their platforms, just be seen as a productivity enhancement. It looks to me that ReactJS is also an attempt at productivity enhancement. It doesn't appear to have a component set of its own. You can just use raw HTML tags or use Jquery and Bootstrap and other frameworks. I think we have a pretty good first approximation of raw HTML tags already in the Basic component set for FlexJS. If folks know of good "Getting Started" examples for ReactJS, we can see if we have the equivalent widgets in FlexJS. IMO, what MXML and AS provide over JSX is better productivity through better strong-typing at edit/compile time. And we have states and data binding to do the "react"-ing. Or are we missing what such an "integration" with ReactJS would look like? -Alex
Re: [FlexJS] with ReactJS
I had an idea recently that I haven't looked into too deeply, so it might turn out that it isn't feasible. However, I'd like to try adding an optional flag to make the compiler interpret XML literals in ActionScript as JSX instead (obviously, you'd no longer be able to use XML literals for their original purpose when you specify this flag). The compiler could generate the appropriate JavaScript calls to React. I think there is some JSX syntax that won't be treated as valid XML, but it might still be useful to have a subset. - Josh On Fri, Jun 3, 2016 at 10:33 AM, Peter Ent wrote: > Hi, > > FlexJS has a couple of non-Flash component libraries now, CreateJS and > jQuery, along with integration with Apache Cordova. This got me thinking > about ReactJS. I did a little investigation to see how it might fit with > FlexJS and I wrote a brief page about[1]. My opinion is that ReactJS, > especially when used with JSX, is more parallel to FlexJS and not easily > integrated as a project like some of the other JavaScript offerings. > > If you have familiarity with ReactJS, perhaps you could give the article a > look and provide some feedback. Maybe I missed something crucial about > ReactJS. > > Thanks, > Peter Ent > Adobe Systems/Apache Flex Project > > > [1] https://cwiki.apache.org/confluence/display/FLEX/FlexJS+and+ReactJS >
Re: [FlexJS] with ReactJS
That's interesting. So essentially, you could replace all the JS in the ReactJS examples with AS? I still think there are more productivity gains beyond that for ReactJS. Anytime I look at these framework APIs using a lot of {} objects, that is ripe for a more strongly-typed API surface. -Alex On 6/3/16, 2:06 PM, "Josh Tynjala" wrote: >I had an idea recently that I haven't looked into too deeply, so it might >turn out that it isn't feasible. However, I'd like to try adding an >optional flag to make the compiler interpret XML literals in ActionScript >as JSX instead (obviously, you'd no longer be able to use XML literals for >their original purpose when you specify this flag). The compiler could >generate the appropriate JavaScript calls to React. > >I think there is some JSX syntax that won't be treated as valid XML, but >it >might still be useful to have a subset. > >- Josh > >On Fri, Jun 3, 2016 at 10:33 AM, Peter Ent wrote: > >> Hi, >> >> FlexJS has a couple of non-Flash component libraries now, CreateJS and >> jQuery, along with integration with Apache Cordova. This got me thinking >> about ReactJS. I did a little investigation to see how it might fit with >> FlexJS and I wrote a brief page about[1]. My opinion is that ReactJS, >> especially when used with JSX, is more parallel to FlexJS and not easily >> integrated as a project like some of the other JavaScript offerings. >> >> If you have familiarity with ReactJS, perhaps you could give the >>article a >> look and provide some feedback. Maybe I missed something crucial about >> ReactJS. >> >> Thanks, >> Peter Ent >> Adobe Systems/Apache Flex Project >> >> >> [1] https://cwiki.apache.org/confluence/display/FLEX/FlexJS+and+ReactJS >>
Re: [FlexJS] with ReactJS
Yes, exactly. Using ActionScript with a hot new framework like React would be really compelling, in my opinion. Interestingly, React lets you use ES6 classes as long as you extend React.Component. Here's an example from the React docs: class HelloMessage extends React.Component { render() { return Hello {this.props.name}; } } ReactDOM.render(, mountNode); An ActionScript class that extends React.Component should work too. If the compiler can recognize that an ActionScript class is being used, it might also be able to check that the attributes set in the JSX match up with actual ActionScript public variables or setters. - Josh On Fri, Jun 3, 2016 at 2:51 PM, Alex Harui wrote: > That's interesting. So essentially, you could replace all the JS in the > ReactJS examples with AS? > > I still think there are more productivity gains beyond that for ReactJS. > Anytime I look at these framework APIs using a lot of {} objects, that is > ripe for a more strongly-typed API surface. > > -Alex > > On 6/3/16, 2:06 PM, "Josh Tynjala" wrote: > > >I had an idea recently that I haven't looked into too deeply, so it might > >turn out that it isn't feasible. However, I'd like to try adding an > >optional flag to make the compiler interpret XML literals in ActionScript > >as JSX instead (obviously, you'd no longer be able to use XML literals for > >their original purpose when you specify this flag). The compiler could > >generate the appropriate JavaScript calls to React. > > > >I think there is some JSX syntax that won't be treated as valid XML, but > >it > >might still be useful to have a subset. > > > >- Josh > > > >On Fri, Jun 3, 2016 at 10:33 AM, Peter Ent wrote: > > > >> Hi, > >> > >> FlexJS has a couple of non-Flash component libraries now, CreateJS and > >> jQuery, along with integration with Apache Cordova. This got me thinking > >> about ReactJS. I did a little investigation to see how it might fit with > >> FlexJS and I wrote a brief page about[1]. My opinion is that ReactJS, > >> especially when used with JSX, is more parallel to FlexJS and not easily > >> integrated as a project like some of the other JavaScript offerings. > >> > >> If you have familiarity with ReactJS, perhaps you could give the > >>article a > >> look and provide some feedback. Maybe I missed something crucial about > >> ReactJS. > >> > >> Thanks, > >> Peter Ent > >> Adobe Systems/Apache Flex Project > >> > >> > >> [1] https://cwiki.apache.org/confluence/display/FLEX/FlexJS+and+ReactJS > >> > >
Re: [FlexJS] with ReactJS
You can use React in TypeScript with the type definitions here: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/react My team is using React in TSX which references AS libraries typed with as2dts. For my work, the major advantage AS has over TS is the is/as operators which can check if something implements a particular interface at runtime. Interfaces in TypeScript cannot be referenced at runtime. You could conceivably build something that directly converts ActionScript with inline XML into TSX or JSX, but I don't see the value in that since ActionScript does not have as many strong typing features as TypeScript has. A slightly different approach would be to map the MXML life-cycle onto the React life-cycle so you could build your GUI in MXML rather than TSX or JSX. The difference would be if you already know MXML you would not have to learn or care about the React life-cycle. I haven't thought of how much work that would be. On Fri, Jun 3, 2016 at 5:51 PM, Alex Harui wrote: > That's interesting. So essentially, you could replace all the JS in the > ReactJS examples with AS? > > I still think there are more productivity gains beyond that for ReactJS. > Anytime I look at these framework APIs using a lot of {} objects, that is > ripe for a more strongly-typed API surface. > > -Alex > > On 6/3/16, 2:06 PM, "Josh Tynjala" wrote: > > >I had an idea recently that I haven't looked into too deeply, so it might > >turn out that it isn't feasible. However, I'd like to try adding an > >optional flag to make the compiler interpret XML literals in ActionScript > >as JSX instead (obviously, you'd no longer be able to use XML literals for > >their original purpose when you specify this flag). The compiler could > >generate the appropriate JavaScript calls to React. > > > >I think there is some JSX syntax that won't be treated as valid XML, but > >it > >might still be useful to have a subset. > > > >- Josh > > > >On Fri, Jun 3, 2016 at 10:33 AM, Peter Ent wrote: > > > >> Hi, > >> > >> FlexJS has a couple of non-Flash component libraries now, CreateJS and > >> jQuery, along with integration with Apache Cordova. This got me thinking > >> about ReactJS. I did a little investigation to see how it might fit with > >> FlexJS and I wrote a brief page about[1]. My opinion is that ReactJS, > >> especially when used with JSX, is more parallel to FlexJS and not easily > >> integrated as a project like some of the other JavaScript offerings. > >> > >> If you have familiarity with ReactJS, perhaps you could give the > >>article a > >> look and provide some feedback. Maybe I missed something crucial about > >> ReactJS. > >> > >> Thanks, > >> Peter Ent > >> Adobe Systems/Apache Flex Project > >> > >> > >> [1] https://cwiki.apache.org/confluence/display/FLEX/FlexJS+and+ReactJS > >> > >