Javascript functions
In FlexJS, is there a way to call a Javascript function from ActionScript? I did not see an obvious way to do it but I may have missed something. Thanks, Jim
Image caching
I had some code in my old Flex application to load and cache image files. The code used Loader and then created a Bitmap object from the downloaded image file. Can anyone suggest the possibilities for how I could approach this process in FlexJS, or point me to an example? Thanks, Jim Norris Office: 678-694-8809 Cell: 404-819-6823 <mailto:jim.nor...@e-work.com> jim.nor...@e-work.com <https://www.linkedin.com/in/jim-norris-376966108/> See me on LinkedIn Click to view <https://youtu.be/KLX4KZaewjQ> The new e-work.com video The information transmitted in this electronic communication is intended only for the person(s) or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.
RE: XML hasOwnProperty method
Thanks, I will give it a try today. -Original Message- From: Harbs [mailto:harbs.li...@gmail.com] Sent: Friday, August 4, 2017 8:20 AM To: dev@flex.apache.org Subject: Re: XML hasOwnProperty method I just committed some code which I think fixes IE. Harbs > On Jul 31, 2017, at 11:40 PM, Jim Norris wrote: > > Hi- > > I installed the Apache FlexJS Nightly using the SDK Installer and adjusted > the project compiler to the new SDK, but I am still seeing failures with the > handleOwnProperty method. I will try to do some additional debugging > tomorrow to see where the problem is coming from. > > In the meantime I used the work around you mentioned and got a component > working correctly in Firefox. However, I am getting a syntax error in > Internet Explorer when creating the XML object (the same function works in > Firefox, both using the same XML file). Specifically the issue is at this > line in XML.js: > > var /** @type {string} */ errorNS = > org.apache.flex.utils.Language.string(parser.parseFromString('<', > 'application/xml').getElementsByTagName("parsererror")[0].namespaceURI > ); > > In Firefox this line works without issue, but in IE I see a syntax error in > the debugger. > > I did a little research and it seems this may be an issue specific to IE11, > although it is a little unclear to me how best to fix it. > > https://stackoverflow.com/questions/23022956/internet-explorer-11-ie-1 > 1-throws-syntax-error-using-parsefromstring-in-dompar > https://stackoverflow.com/questions/31277058/parsefromstring-throws-er > ror-in-ie-but-not-in-chrome?noredirect=1&lq=1 > > Let me know if I can provide any additional info. > > > > > Thanks, > > Jim > > -Original Message- > From: Harbs [mailto:harbs.li...@gmail.com] > Sent: Sunday, July 30, 2017 4:37 PM > To: dev@flex.apache.org > Subject: Re: XML hasOwnProperty method > > There are quite a few fixes to XML in particular in the nightly, so I would > recommend that you use the nightly anyway. > > If you need help getting the nightly, let us know. > > Thanks, > Harbs > >> On Jul 30, 2017, at 11:05 PM, Jim Norris wrote: >> >> That's great news! I am using 0.8 right now although I may need to get this >> update to be able to progress much further. >> >> >> >> Thanks, >> >> Jim >> >> -Original Message- >> From: Harbs [mailto:harbs.li...@gmail.com] >> Sent: Sunday, July 30, 2017 3:47 PM >> To: dev@flex.apache.org >> Subject: Re: XML hasOwnProperty method >> >> I just tried this and I see the problem. >> >> I should have it fixed soon… >> >>> On Jul 30, 2017, at 10:38 PM, Harbs wrote: >>> >>> Hi Jim, >>> >>> Do you get some kind of error when you do this? Are you using 0.8.0 or the >>> nightly? >>> >>> I don’t think hasOwnProperty is something I personally use, so I wouldn’t >>> be too surprised if there are issues there. >>> >>> (FWIW, you should be able to use >>> if(resourceXML.@collapsible.length()) >>> as a workaround.) >>> >>> Thanks, >>> Harbs >>> >>>> On Jul 30, 2017, at 9:56 PM, Jim Norris wrote: >>>> >>>> This may be for Harbs as I think he did a lot of the work for XML. >>>> >>>> >>>> >>>> I am working on some existing Flex code and trying to convert >>>> portions of it to FlexJS. As part of the application it loads a >>>> lot of XML files and uses E4X to parse them. I was able to get >>>> this working quickly in swf format, so that was awesome! >>>> >>>> >>>> >>>> However, I am having a problem with the hasOwnProperty method. It >>>> works fine running in swf format, but when I export to HTML/JS the >>>> Javascript bombs on the hasOwnProperty method calls. If I remove >>>> them the code executes as it should. >>>> >>>> >>>> >>>> I checked here >>>> (https://cwiki.apache.org/confluence/display/FLEX/E4X+Observations) >>>> and it seems like they should be working but I wanted to check if I >>>> am doing something I should not. >>>> >>>> >>>> >>>> >>>> >>>> Typically these checks look like this in AS: >>>> >>>> >>>> >>>> if (resourceXML.hasOwnProperty("@collapsible")
RE: XML hasOwnProperty method
Hi- I installed the Apache FlexJS Nightly using the SDK Installer and adjusted the project compiler to the new SDK, but I am still seeing failures with the handleOwnProperty method. I will try to do some additional debugging tomorrow to see where the problem is coming from. In the meantime I used the work around you mentioned and got a component working correctly in Firefox. However, I am getting a syntax error in Internet Explorer when creating the XML object (the same function works in Firefox, both using the same XML file). Specifically the issue is at this line in XML.js: var /** @type {string} */ errorNS = org.apache.flex.utils.Language.string(parser.parseFromString('<', 'application/xml').getElementsByTagName("parsererror")[0].namespaceURI); In Firefox this line works without issue, but in IE I see a syntax error in the debugger. I did a little research and it seems this may be an issue specific to IE11, although it is a little unclear to me how best to fix it. https://stackoverflow.com/questions/23022956/internet-explorer-11-ie-11-throws-syntax-error-using-parsefromstring-in-dompar https://stackoverflow.com/questions/31277058/parsefromstring-throws-error-in-ie-but-not-in-chrome?noredirect=1&lq=1 Let me know if I can provide any additional info. Thanks, Jim -Original Message- From: Harbs [mailto:harbs.li...@gmail.com] Sent: Sunday, July 30, 2017 4:37 PM To: dev@flex.apache.org Subject: Re: XML hasOwnProperty method There are quite a few fixes to XML in particular in the nightly, so I would recommend that you use the nightly anyway. If you need help getting the nightly, let us know. Thanks, Harbs > On Jul 30, 2017, at 11:05 PM, Jim Norris wrote: > > That's great news! I am using 0.8 right now although I may need to get this > update to be able to progress much further. > > > > Thanks, > > Jim > > -Original Message- > From: Harbs [mailto:harbs.li...@gmail.com] > Sent: Sunday, July 30, 2017 3:47 PM > To: dev@flex.apache.org > Subject: Re: XML hasOwnProperty method > > I just tried this and I see the problem. > > I should have it fixed soon… > >> On Jul 30, 2017, at 10:38 PM, Harbs wrote: >> >> Hi Jim, >> >> Do you get some kind of error when you do this? Are you using 0.8.0 or the >> nightly? >> >> I don’t think hasOwnProperty is something I personally use, so I wouldn’t be >> too surprised if there are issues there. >> >> (FWIW, you should be able to use >> if(resourceXML.@collapsible.length()) >> as a workaround.) >> >> Thanks, >> Harbs >> >>> On Jul 30, 2017, at 9:56 PM, Jim Norris wrote: >>> >>> This may be for Harbs as I think he did a lot of the work for XML. >>> >>> >>> >>> I am working on some existing Flex code and trying to convert >>> portions of it to FlexJS. As part of the application it loads a lot >>> of XML files and uses E4X to parse them. I was able to get this >>> working quickly in swf format, so that was awesome! >>> >>> >>> >>> However, I am having a problem with the hasOwnProperty method. It >>> works fine running in swf format, but when I export to HTML/JS the >>> Javascript bombs on the hasOwnProperty method calls. If I remove >>> them the code executes as it should. >>> >>> >>> >>> I checked here >>> (https://cwiki.apache.org/confluence/display/FLEX/E4X+Observations) >>> and it seems like they should be working but I wanted to check if I >>> am doing something I should not. >>> >>> >>> >>> >>> >>> Typically these checks look like this in AS: >>> >>> >>> >>> if (resourceXML.hasOwnProperty("@collapsible") == true){ >>> >>> globalCollapsible = toBoolean(resourceXML.@collapsible); >>> >>> }else{ >>> >>>_globalCollapsible = false; >>> >>> } >>> >>> >>> >>> And look like this in the JS (the last alert I message I see is the >>> 'checking global property'): >>> >>> >>> >>> alert('TextViewer checking global property'); >>> >>> if (resourceXML.hasOwnProperty("@collapsible") == true) { >>> >>> alert('TextViewer.init found global property'); >>> >>> this._globalCollapsible = >>> this.toBoolean(resourceXML.attribute('collapsible')); >>> >>> } else { >>> >>> alert('TextViewer.init global property not found'); >>> >>> this._globalCollapsible = false; >>> >>> } >>> >>> >>> >>> >>> >>> I have a ton of these types of checks in my code so any insight you >>> may have into either 1) what is wrong, or 2) what I should do >>> instead would be a lot of help. >>> >>> >>> >>> >>> >>> Thanks, >>> >>> >>> >>> Jim >>> >> > >
RE: XML hasOwnProperty method
That's great news! I am using 0.8 right now although I may need to get this update to be able to progress much further. Thanks, Jim -Original Message- From: Harbs [mailto:harbs.li...@gmail.com] Sent: Sunday, July 30, 2017 3:47 PM To: dev@flex.apache.org Subject: Re: XML hasOwnProperty method I just tried this and I see the problem. I should have it fixed soon… > On Jul 30, 2017, at 10:38 PM, Harbs wrote: > > Hi Jim, > > Do you get some kind of error when you do this? Are you using 0.8.0 or the > nightly? > > I don’t think hasOwnProperty is something I personally use, so I wouldn’t be > too surprised if there are issues there. > > (FWIW, you should be able to use if(resourceXML.@collapsible.length()) > as a workaround.) > > Thanks, > Harbs > >> On Jul 30, 2017, at 9:56 PM, Jim Norris wrote: >> >> This may be for Harbs as I think he did a lot of the work for XML. >> >> >> >> I am working on some existing Flex code and trying to convert >> portions of it to FlexJS. As part of the application it loads a lot >> of XML files and uses E4X to parse them. I was able to get this >> working quickly in swf format, so that was awesome! >> >> >> >> However, I am having a problem with the hasOwnProperty method. It >> works fine running in swf format, but when I export to HTML/JS the >> Javascript bombs on the hasOwnProperty method calls. If I remove >> them the code executes as it should. >> >> >> >> I checked here >> (https://cwiki.apache.org/confluence/display/FLEX/E4X+Observations) >> and it seems like they should be working but I wanted to check if I >> am doing something I should not. >> >> >> >> >> >> Typically these checks look like this in AS: >> >> >> >> if (resourceXML.hasOwnProperty("@collapsible") == true){ >> >> globalCollapsible = toBoolean(resourceXML.@collapsible); >> >> }else{ >> >> _globalCollapsible = false; >> >> } >> >> >> >> And look like this in the JS (the last alert I message I see is the >> 'checking global property'): >> >> >> >> alert('TextViewer checking global property'); >> >> if (resourceXML.hasOwnProperty("@collapsible") == true) { >> >> alert('TextViewer.init found global property'); >> >> this._globalCollapsible = >> this.toBoolean(resourceXML.attribute('collapsible')); >> >> } else { >> >> alert('TextViewer.init global property not found'); >> >> this._globalCollapsible = false; >> >> } >> >> >> >> >> >> I have a ton of these types of checks in my code so any insight you >> may have into either 1) what is wrong, or 2) what I should do instead >> would be a lot of help. >> >> >> >> >> >> Thanks, >> >> >> >> Jim >> >
XML hasOwnProperty method
This may be for Harbs as I think he did a lot of the work for XML. I am working on some existing Flex code and trying to convert portions of it to FlexJS. As part of the application it loads a lot of XML files and uses E4X to parse them. I was able to get this working quickly in swf format, so that was awesome! However, I am having a problem with the hasOwnProperty method. It works fine running in swf format, but when I export to HTML/JS the Javascript bombs on the hasOwnProperty method calls. If I remove them the code executes as it should. I checked here (https://cwiki.apache.org/confluence/display/FLEX/E4X+Observations) and it seems like they should be working but I wanted to check if I am doing something I should not. Typically these checks look like this in AS: if (resourceXML.hasOwnProperty("@collapsible") == true){ globalCollapsible = toBoolean(resourceXML.@collapsible); }else{ _globalCollapsible = false; } And look like this in the JS (the last alert I message I see is the 'checking global property'): alert('TextViewer checking global property'); if (resourceXML.hasOwnProperty("@collapsible") == true) { alert('TextViewer.init found global property'); this._globalCollapsible = this.toBoolean(resourceXML.attribute('collapsible')); } else { alert('TextViewer.init global property not found'); this._globalCollapsible = false; } I have a ton of these types of checks in my code so any insight you may have into either 1) what is wrong, or 2) what I should do instead would be a lot of help. Thanks, Jim
RE: Help with 0.8
I made it as simple as I could: http://ns.adobe.com/mxml/2009"; xmlns:js="library://ns.apache.org/flexjs/express" xmlns:basic="library://ns.apache.org/flexjs/basic" > @namespace js "library://ns.apache.org/flexjs/express"; .bigText{ color:#005192; font-size:32px; } .htmlStuff{ color:#00; } Thanks, Jim -Original Message- From: piotrz [mailto:piotrzarzyck...@gmail.com] Sent: Friday, July 28, 2017 10:42 AM To: dev@flex.apache.org Subject: RE: Help with 0.8 Hi Jim, Could you show your code. It would be easier to see where the problem could be. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Help-with-0-8-tp63568p6 3593.html Sent from the Apache Flex Development mailing list archive at Nabble.com.
RE: Help with 0.8
Hello- I am trying to use some components and having some trouble (both running a swf and sometimes different issues when exporting JS). For basics, I want to setup some HTML text, but I get an exception when using the HTMLText component. See trace below. Let me know if there may be additional setup steps for FlashBuilder I am unaware of. I also tried TextArea which displayed in swf (with a lot of Mouse event errors) but not when I exported to JS. TypeError: Error #1007: Instantiation attempted on a non-constructor. at org.apache.flex.core::UIBase/get model()[/Users/aharui/git/flex/release/flex-asjs/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as:842] at org.apache.flex.html::HTMLText/addedToParent()[/Users/aharui/git/flex/release/flex-asjs/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/HTMLText.as:99] at org.apache.flex.core::UIBase/addElement()[/Users/aharui/git/flex/release/flex-asjs/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as:1139] at org.apache.flex.core::GroupBase/addElement()[/Users/aharui/git/flex/release/flex-asjs/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/GroupBase.as:301] at org.apache.flex.utils::MXMLDataInterpreter$/initializeStrandBasedObject()[/Users/aharui/git/flex/release/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as:300] at org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[/Users/aharui/git/flex/release/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as:162] at org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[/Users/aharui/git/flex/release/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/MXMLDataInterpreter.as:341] at org.apache.flex.core::View/addedToParent()[/Users/aharui/git/flex/release/flex-asjs/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/View.as:68] at org.apache.flex.core::Application/addElement()[/Users/aharui/git/flex/release/flex-asjs/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/Application.as:442] at org.apache.flex.core::Application/initialize()[/Users/aharui/git/flex/release/flex-asjs/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/Application.as:189] at org.apache.flex.core::Application/initHandler()[/Users/aharui/git/flex/release/flex-asjs/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/Application.as:153] Thanks for any help. Jim -Original Message- From: Jim Norris [mailto:jim.nor...@e-work.com] Sent: Wednesday, July 26, 2017 4:37 PM To: 'dev@flex.apache.org' Subject: RE: Help with 0.8 Do you have an example project you would suggest as a good starting point for learning FlexJS? I tried the FlexJSStore and it seems like it has some issues. I am trying to setup some (of my own) simple pages and running into anomalies in behavior between the swf output and the js-release and I would like to look at something that is setup properly to make sure I understand how I should be doing things. Again, appreciate your feedback. Thanks, Jim -Original Message----- From: Jim Norris [mailto:jim.nor...@e-work.com] Sent: Wednesday, July 26, 2017 1:42 PM To: 'dev@flex.apache.org' Subject: RE: Help with 0.8 It did help. I had to copy the jre folder from the 1.8 JDK install to the Flash Builder application directory (replacing the old jre folder), and that fixed it. Thanks very much for the help. Jim -Original Message- From: Harbs [mailto:harbs.li...@gmail.com] Sent: Wednesday, July 26, 2017 12:33 PM To: dev@flex.apache.org Subject: Re: Help with 0.8 I know Yishay changed the version of Java in his FB installation, but I don’t remember the details. Is this helpful? https://www.experts-exchange.com/questions/28699151/how-can-flash-builder-4-X-version-make-use-of-java-8.html <https://www.experts-exchange.com/questions/28699151/how-can-flash-builder-4-X-version-make-use-of-java-8.html> > On Jul 26, 2017, at 7:24 PM, Jim Norris wrote: > > Hi- > > I had previously setup the Hello World sample using FlexJS 0.7. I installed > 0.8 and I am getting an internal build error that appears to be related to > the Java SDK version. The project runs find if I switch back to version 0.7. > > I downloaded and ran the installer for Java SDK 1.8 but continued to get the > same error. I also set the environment variable for JAVA_HOME to the new > Java SDK folder, restarted Flash Builder, but the trace is still indicating > that it is using Java 1.6. > > If anyone has any advice on how to correct this I would appreciate it. > > Error log: > > java.lang.UnsupportedClassVersionError: > com/google/javascript/jscomp/ErrorManager : Unsupported major.minor > ve
RE: Help with 0.8
Do you have an example project you would suggest as a good starting point for learning FlexJS? I tried the FlexJSStore and it seems like it has some issues. I am trying to setup some (of my own) simple pages and running into anomalies in behavior between the swf output and the js-release and I would like to look at something that is setup properly to make sure I understand how I should be doing things. Again, appreciate your feedback. Thanks, Jim -Original Message- From: Jim Norris [mailto:jim.nor...@e-work.com] Sent: Wednesday, July 26, 2017 1:42 PM To: 'dev@flex.apache.org' Subject: RE: Help with 0.8 It did help. I had to copy the jre folder from the 1.8 JDK install to the Flash Builder application directory (replacing the old jre folder), and that fixed it. Thanks very much for the help. Jim -Original Message- From: Harbs [mailto:harbs.li...@gmail.com] Sent: Wednesday, July 26, 2017 12:33 PM To: dev@flex.apache.org Subject: Re: Help with 0.8 I know Yishay changed the version of Java in his FB installation, but I don’t remember the details. Is this helpful? https://www.experts-exchange.com/questions/28699151/how-can-flash-builder-4-X-version-make-use-of-java-8.html <https://www.experts-exchange.com/questions/28699151/how-can-flash-builder-4-X-version-make-use-of-java-8.html> > On Jul 26, 2017, at 7:24 PM, Jim Norris wrote: > > Hi- > > I had previously setup the Hello World sample using FlexJS 0.7. I installed > 0.8 and I am getting an internal build error that appears to be related to > the Java SDK version. The project runs find if I switch back to version 0.7. > > I downloaded and ran the installer for Java SDK 1.8 but continued to get the > same error. I also set the environment variable for JAVA_HOME to the new > Java SDK folder, restarted Flash Builder, but the trace is still indicating > that it is using Java 1.6. > > If anyone has any advice on how to correct this I would appreciate it. > > Error log: > > java.lang.UnsupportedClassVersionError: > com/google/javascript/jscomp/ErrorManager : Unsupported major.minor > version 51.0 > > > Session data: > > eclipse.buildId=M20110909-1335 > java.version=1.6.0_31 > java.vendor=Sun Microsystems Inc. > BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US > Command-line arguments: -os win32 -ws win32 -arch x86_64 > > > > Thanks, > > Jim Norris > Office: 678-694-8809 > Cell: 404-819-6823 > jim.nor...@e-work.com <mailto:jim.nor...@e-work.com> See me on > LinkedIn <https://www.linkedin.com/in/jim-norris-376966108/> > > Click to view The new e-work.com <https://youtu.be/KLX4KZaewjQ> video > > The information transmitted in this electronic communication is intended only > for the person(s) or entity to whom it is addressed and may contain > confidential and/or privileged material. Any review, retransmission, > dissemination or other use of, or taking of any action in reliance upon this > information by persons or entities other than the intended recipient is > prohibited.
RE: Help with 0.8
It did help. I had to copy the jre folder from the 1.8 JDK install to the Flash Builder application directory (replacing the old jre folder), and that fixed it. Thanks very much for the help. Jim -Original Message- From: Harbs [mailto:harbs.li...@gmail.com] Sent: Wednesday, July 26, 2017 12:33 PM To: dev@flex.apache.org Subject: Re: Help with 0.8 I know Yishay changed the version of Java in his FB installation, but I don’t remember the details. Is this helpful? https://www.experts-exchange.com/questions/28699151/how-can-flash-builder-4-X-version-make-use-of-java-8.html <https://www.experts-exchange.com/questions/28699151/how-can-flash-builder-4-X-version-make-use-of-java-8.html> > On Jul 26, 2017, at 7:24 PM, Jim Norris wrote: > > Hi- > > I had previously setup the Hello World sample using FlexJS 0.7. I installed > 0.8 and I am getting an internal build error that appears to be related to > the Java SDK version. The project runs find if I switch back to version 0.7. > > I downloaded and ran the installer for Java SDK 1.8 but continued to get the > same error. I also set the environment variable for JAVA_HOME to the new > Java SDK folder, restarted Flash Builder, but the trace is still indicating > that it is using Java 1.6. > > If anyone has any advice on how to correct this I would appreciate it. > > Error log: > > java.lang.UnsupportedClassVersionError: > com/google/javascript/jscomp/ErrorManager : Unsupported major.minor > version 51.0 > > > Session data: > > eclipse.buildId=M20110909-1335 > java.version=1.6.0_31 > java.vendor=Sun Microsystems Inc. > BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US > Command-line arguments: -os win32 -ws win32 -arch x86_64 > > > > Thanks, > > Jim Norris > Office: 678-694-8809 > Cell: 404-819-6823 > jim.nor...@e-work.com <mailto:jim.nor...@e-work.com> See me on > LinkedIn <https://www.linkedin.com/in/jim-norris-376966108/> > > Click to view The new e-work.com <https://youtu.be/KLX4KZaewjQ> video > > The information transmitted in this electronic communication is intended only > for the person(s) or entity to whom it is addressed and may contain > confidential and/or privileged material. Any review, retransmission, > dissemination or other use of, or taking of any action in reliance upon this > information by persons or entities other than the intended recipient is > prohibited.
Help with 0.8
Hi- I had previously setup the Hello World sample using FlexJS 0.7. I installed 0.8 and I am getting an internal build error that appears to be related to the Java SDK version. The project runs find if I switch back to version 0.7. I downloaded and ran the installer for Java SDK 1.8 but continued to get the same error. I also set the environment variable for JAVA_HOME to the new Java SDK folder, restarted Flash Builder, but the trace is still indicating that it is using Java 1.6. If anyone has any advice on how to correct this I would appreciate it. Error log: java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/ErrorManager : Unsupported major.minor version 51.0 Session data: eclipse.buildId=M20110909-1335 java.version=1.6.0_31 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86_64 Thanks, Jim Norris Office: 678-694-8809 Cell: 404-819-6823 <mailto:jim.nor...@e-work.com> jim.nor...@e-work.com <https://www.linkedin.com/in/jim-norris-376966108/> See me on LinkedIn Click to view <https://youtu.be/KLX4KZaewjQ> The new e-work.com video The information transmitted in this electronic communication is intended only for the person(s) or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.
RE: [FlexJS] vertical layout not working with labels
Sorry all, this e-mail was sent to the incorrect address. Thanks, Jim Norris -Original Message- From: Jim Norris [mailto:jim.nor...@e-work.com] Sent: Tuesday, February 7, 2017 5:48 PM To: dev@flex.apache.org Subject: RE: [FlexJS] vertical layout not working with labels It should be hidden from the user portal not the report. -Original Message- From: Justin Mclean [mailto:jus...@classsoftware.com] Sent: Tuesday, February 7, 2017 5:22 PM To: dev@flex.apache.org Subject: Re: [FlexJS] vertical layout not working with labels Hi, Thanks for that: > > > new test_project().start(); >class="Label" style="white-space: nowrap; cursor: default; pointer-events: > none; display: block;">helloworld > > This is what I get. It seems to be missing the height and widths and has less divs. I’m using the nightly from 4 days ago. helloworld Thanks, Justin
RE: [FlexJS] vertical layout not working with labels
It should be hidden from the user portal not the report. -Original Message- From: Justin Mclean [mailto:jus...@classsoftware.com] Sent: Tuesday, February 7, 2017 5:22 PM To: dev@flex.apache.org Subject: Re: [FlexJS] vertical layout not working with labels Hi, Thanks for that: > > > new test_project().start(); >class="Label" style="white-space: nowrap; cursor: default; pointer-events: > none; display: block;">helloworld > > This is what I get. It seems to be missing the height and widths and has less divs. I’m using the nightly from 4 days ago. helloworld Thanks, Justin
RE: [DISCUSS] Adopting AS3Commons
I use the AS3 Commons eventbus. -Original Message- From: Harbs [mailto:harbs.li...@gmail.com] Sent: Thursday, December 03, 2015 3:26 PM To: dev@flex.apache.org Subject: Re: [DISCUSS] Adopting AS3Commons The feature I probably use most often in the zip functionality. It has the best zip library (formally FZip). But there's tons of helper functions and containers as well. Take a look here: https://github.com/AS3Commons and here: https://code.google.com/p/as3-commons/source/browse/trunk On Dec 3, 2015, at 10:01 PM, OmPrakash Muppirala wrote: > Do we have a list of features or an URL we can look at? > > Thanks, > Om > > On Thu, Dec 3, 2015 at 11:13 AM, Harbs wrote: > >> +1. >> >> There's lot's useful stuff in AS3Commons. >> >> On Dec 3, 2015, at 7:18 PM, Alex Harui wrote: >> >>> Hi, >>> >>> It has been my understanding that any existing code base that gets >>> stored in an Apache Flex repo must be "donated" via the Apache >>> Software Grant process, which essentially requires that the author >>> of every line of code in the code base needs to sign a legally-binding document. >>> >>> I just found out that, while that is still the preferred method, if >>> a >> code >>> base is already under the Apache License, it can also be "adopted" >>> with much less hassle. >>> >>> Christophe Herreman, who also happens to be on our PMC, and one of >>> the major contributors to AS3Commons, is interested in having Apache >>> Flex adopt the AS3Commons code. I think this would be a good move >>> for Apache Flex because we use some of AS3Commons in the Installer >>> already so it would be good to have this code in a place we can >>> control, especially if we want to see how much of it will work in FlexJS. >>> >>> So, first we should discuss whether we want to adopt AS3Commons and >>> actually vote on it, then we will try to contact by email every past >>> contributor to AS3Commons to see if they have any objections to >>> having >> the >>> code base adopted by Apache Flex. The wording of the email is still >> being >>> finalized on the Apache legal-discuss mailing list, but basically, >> instead >>> of having to track down every past contributor and get their >>> signature on a Software Grant, we can now just gather email >>> responses from as many of those past contributors as we can. >>> >>> After the email goes out, we'll wait 30 days or so for responses. >>> If we get an objection from a past contributor, then we'll look to >>> see what lines of code they contributed and determine what the >>> impact would be of not having those lines of code in our code base. >>> It might be easily replaceable. If we don't hear from a past >>> contributor we will look at >> the >>> risk of what might happen if they do respond later with an objection. >>> >>> So, we don't have to actually hear from every past contributor in >>> order >> to >>> proceed with the adoption, but we might decide not to complete the >>> adoption if we get objections from or don't get a response from a >>> major contributor. >>> >>> Technically and legally, we could "fork" this code without >>> permission >> from >>> anybody since the code is under the Apache License, but socially, >>> Apache wants all code to come in voluntarily, which is why we want >>> to make sure there are no objections from past contributors as well >>> as anyone on this mailing list. >>> >>> Thoughts? >>> -Alex >>> >> >>
RE: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)
Backward compatibility with our large set of deployed (XML based) content is critical, so very likely JS rather than JSON. Jim -Original Message- From: Alex Harui [mailto:aha...@adobe.com] Sent: Tuesday, November 10, 2015 11:36 AM To: dev@flex.apache.org Subject: Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port) Thanks Jim, We’ll keep that in mind. Just curious, if FlexJS didn’t exist and you had to use some other JS framework, would you port all of your XML handling to JS or switch over to JSON? Other folks with XML backend are welcome to add their thoughts as well. -Alex On 11/10/15, 8:30 AM, "Jim Norris" wrote: >Hello, > >I have been observing the progress on FlexJS as I am the developer for >an application built with Flex that my company deploys into large >enterprises. > >We have XML based content and use a significant number of E4X >expressions, so if there is a way to simplify the conversion of these >expressions to Flex JS that would certainly make an eventual conversion >of our application simpler. We also use the XML.hasOwnProperty method >to detect the existence of attributes that are used as configuration >switches in the XML. > > > > >Thanks, > >Jim Norris > >www.e-Work.com > > >-Original Message- >From: Alex Harui [mailto:aha...@adobe.com] >Sent: Tuesday, November 10, 2015 11:07 AM >To: dev@flex.apache.org >Subject: Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back >port) > >Also, don’t spend too long on trying to create an XML class in the >default package. You can just code it in some package and manually map >it for now. And maybe we’ll just end up having the compiler inject the >mapping if that turns out to be easier. > >-Alex > >On 11/10/15, 6:18 AM, "Alex Harui" wrote: > >>The key is in the build.xml and compile-asjs-config.xml in any of the >>already-backported SWCs. The js.swc from Falcon is used instead of >>playerglobal.swc/airglobal.swc. I have not tried to swap out a class >>in the default package yet, but it should be doable. We might need a >>compiler change if there are assumptions. And I have no idea if FB is >>making any assumptions. >> >>I forgot to add to that wiki page how to deal with platform-only >>components. I will add that this morning, but basically, you should >>add them to the as/src/XXXClasses.as and put COMPILE::JS or >>COMPILE::AS3 around it. There are examples, especially in the >>Core.swc and HTML.swc. >> >>FWIW, I don’t know why you can’t go from XML to JSON and back to XML. >>Both are hierarchical data structures. In the Flex SDK we have >>SOAPDecoder and SOAPEncoder that take XML to data objects and back, >>and generally that performs better if you are going to access a >>significant percentage of the data. >> >>HTH, >>-Alex >> >>On 11/10/15, 3:45 AM, "Harbs" wrote: >> >>>I’m a bit stumped here. We have externs for HTML and native >>>javascript APIs. Right? How do I import these externs so these >>>classes are recognized when using COMPILE::JS? >>> >>>Actually, I just searched for DOMParser and createHTMLDocument. >>>Neither searched turned anything up in FlexJS. So I’m wondering if I >>>was wrong about having externs for this. >>> >>>On Nov 10, 2015, at 10:48 AM, Harbs wrote: >>> >>>> I’m going to have to do some fancy footwork to get this working. >>>>Flash Builder is complaining that palyerglobal.swc already exists >>>>whe I try to create an XML class in the default package. >>>> >>>> Any ideas on how to do this? >>>> >>>> On Nov 10, 2015, at 9:39 AM, Harbs wrote: >>>> >>>>> OK. This approach is different than the approach I started on, but >>>>>it could be workable. >>>>> >>>>> I was going down the road where there would be a set of single new >>>>>classes which would proxy to XML and Document in Flash and HTML >>>>>respectively. You are suggesting we stick with XML and XMLList for >>>>>Flash and create new JS versions with the same public API as XML >>>>>and XMLList. >>>>> >>>>> Where would you go about creating those JS classes? Would I just >>>>>out it in an “as” folder and wrap the whole class in a COMPILE::JS? >>>>>Also, what package would this go into? I’m assuming none, since XML >>>>>and XMLList are both top level classes. >>>>> >>>>> BTW, I need
RE: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)
Hello, I have been observing the progress on FlexJS as I am the developer for an application built with Flex that my company deploys into large enterprises. We have XML based content and use a significant number of E4X expressions, so if there is a way to simplify the conversion of these expressions to Flex JS that would certainly make an eventual conversion of our application simpler. We also use the XML.hasOwnProperty method to detect the existence of attributes that are used as configuration switches in the XML. Thanks, Jim Norris www.e-Work.com -Original Message- From: Alex Harui [mailto:aha...@adobe.com] Sent: Tuesday, November 10, 2015 11:07 AM To: dev@flex.apache.org Subject: Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port) Also, don’t spend too long on trying to create an XML class in the default package. You can just code it in some package and manually map it for now. And maybe we’ll just end up having the compiler inject the mapping if that turns out to be easier. -Alex On 11/10/15, 6:18 AM, "Alex Harui" wrote: >The key is in the build.xml and compile-asjs-config.xml in any of the >already-backported SWCs. The js.swc from Falcon is used instead of >playerglobal.swc/airglobal.swc. I have not tried to swap out a class >in the default package yet, but it should be doable. We might need a >compiler change if there are assumptions. And I have no idea if FB is >making any assumptions. > >I forgot to add to that wiki page how to deal with platform-only >components. I will add that this morning, but basically, you should >add them to the as/src/XXXClasses.as and put COMPILE::JS or >COMPILE::AS3 around it. There are examples, especially in the Core.swc and >HTML.swc. > >FWIW, I don’t know why you can’t go from XML to JSON and back to XML. >Both are hierarchical data structures. In the Flex SDK we have >SOAPDecoder and SOAPEncoder that take XML to data objects and back, and >generally that performs better if you are going to access a significant >percentage of the data. > >HTH, >-Alex > >On 11/10/15, 3:45 AM, "Harbs" wrote: > >>I’m a bit stumped here. We have externs for HTML and native javascript >>APIs. Right? How do I import these externs so these classes are >>recognized when using COMPILE::JS? >> >>Actually, I just searched for DOMParser and createHTMLDocument. >>Neither searched turned anything up in FlexJS. So I’m wondering if I >>was wrong about having externs for this. >> >>On Nov 10, 2015, at 10:48 AM, Harbs wrote: >> >>> I’m going to have to do some fancy footwork to get this working. >>>Flash Builder is complaining that palyerglobal.swc already exists whe >>>I try to create an XML class in the default package. >>> >>> Any ideas on how to do this? >>> >>> On Nov 10, 2015, at 9:39 AM, Harbs wrote: >>> >>>> OK. This approach is different than the approach I started on, but >>>>it could be workable. >>>> >>>> I was going down the road where there would be a set of single new >>>>classes which would proxy to XML and Document in Flash and HTML >>>>respectively. You are suggesting we stick with XML and XMLList for >>>>Flash and create new JS versions with the same public API as XML and >>>>XMLList. >>>> >>>> Where would you go about creating those JS classes? Would I just >>>>out it in an “as” folder and wrap the whole class in a COMPILE::JS? >>>>Also, what package would this go into? I’m assuming none, since XML >>>>and XMLList are both top level classes. >>>> >>>> BTW, I need to read and write XML files, so yeah, converting to >>>>JSON is not an option. >>>> >>>> On Nov 10, 2015, at 1:28 AM, Alex Harui wrote: >>>> >>>>> Renaming the thread >>>>> >>>>> On 11/9/15, 1:12 PM, "Harbs" wrote: >>>>> >>>>>> Well, I’d be interested in your findings. >>>>>> >>>>>> If operator definitions is possible .. will be easier than . >>>>>>operators. >>>>>> If we allow single dot operators, it will be difficult to >>>>>>differentiate between E4X syntax and function calls. I’d really >>>>>>like to drop the >>>>>>() on >>>>>> length and some of the other methods… Those are a course for very >>>>>>common errors. >>>>> >>>>> Maybe we aren’t talking about the same thing, but let me explain >&g