Re: [FlexJS] Use of typeof

2017-07-09 Thread Harbs
Checking for window will work for Node, but it will not work for Electron. I tried adding global to Falcon, but I was obviously going about it wrong, because what I tried did not work. This is not really high priority for me right now, so I’m moving on to something else… > On Jul 6, 2017, at 3

Re: [FlexJS] technical debt

2017-07-09 Thread piotrz
Hi Harbs, Just realized that you are right that rule "===" -> "==" is wrong for AS. :) Thanks for noticing that. Maybe we should also remove it from confluence - to do not make confusion. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://a

Re: [FlexJS] technical debt

2017-07-09 Thread Justin Mclean
Hi, > I made two changes on Friday. Can I ask why you didn’t email the list saying you had done this and what the purpose of disabling those rules were? Or disabling rules when I suggested that you should make a custom profile instead? > It’s important to note that these changes were only to t

Re: [FlexJS] technical debt

2017-07-09 Thread piotrz
Hi Justin, O really! - There are other projects which using AS3 in Apache? Could you send a links? You did creat wiki with rules. Maybe let's creat this custom profile now, revert changes which Harbs made and apply them to that profile. I think that's the solution. Could you make it or do you wa

Re: [FlexJS] technical debt

2017-07-09 Thread Justin Mclean
Hi, > O really! - There are other projects which using AS3 in Apache? Could you > send a links? Off top of my head MyFaces, Thrift and a couple of others. Maxim works on one of them but I think they may of moved to a JS front end. None that I know use AS as the main language but given the 300+

Re: [FlexJS] technical debt

2017-07-09 Thread Harbs
> On Jul 9, 2017, at 11:53 AM, Justin Mclean wrote: > >> O really! - There are other projects which using AS3 in Apache? Could you >> send a links? > > Off top of my head MyFaces, Thrift and a couple of others. Maxim works on one > of them but I think they may of moved to a JS front end. None

Re: [FlexJS] technical debt

2017-07-09 Thread Justin Mclean
Hi, > Of the remaining 16 projects, it’s very easy to see that none of them are > using the Flex language. The first link relies on projects meta data and may not be accurate. None of the links you provide show what profile(s) the projects use. You missed that MyFaces uses Sonar Type and it

Re: [FlexJS] technical debt

2017-07-09 Thread Harbs
Actually I did not miss that. The Flex code is an external project: https://code.google.com/archive/p/jsf-flex/ I’ll be happy to communicate. Thanks, Harbs > On Jul 9, 2017, at 1:39 PM, Justin Mclean wrote: > > Hi, > >> Of the remaining 16 proje

Re: [FlexJS] technical debt

2017-07-09 Thread piotrz
Justin, Let us know when you make the changes. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-technical-debt-tp62851p62980.html Sent from the Apache Flex Development mailing list archiv

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread yishayw
Can you share the 2 files you're trying to compile? -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p62981.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Hi Yishay, Trying to export project from Flash Builder caused FB to hang. The two files are attached; hope that's fine. Best Regards, Allen -Original Message- From: yishayw [mailto:yishayj...@hotmail.com] Sent: Sunday, July 09, 2017 8:38 AM To: dev@flex.apache.org Subject: Re: [FlexJS] q

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread piotrz
Allen, Attachment can be stripped out from mailing list, so you probably need to upload them to some server. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Ado

[FlexJS]DropDownList dataProvider

2017-07-09 Thread Harbs
If you set the dataProvider of a DropDownList using binding and the Bindable value is not initialized when it’s declared, it causes a runtime error. I’m trying to decide whether this is a bug, or it’s a cost of PAYG (where in the basic implementation you are rrequired to initialize the value). I

Re: [FlexJS]DropDownList dataProvider

2017-07-09 Thread piotrz
Hi Harbs, I think it's a bug. I'm wondering whether MDL DropDownList react same. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-DropDownList-dataProvider-tp62984p62985.html Sent from the Apache

Re: [FlexJS]DropDownList dataProvider

2017-07-09 Thread piotrz
Actually could you provide small example ? I would like to make sure myself that is a bug. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-DropDownList-dataProvider-tp62984p62986.html Sen

Re: [FlexJS]DropDownList dataProvider

2017-07-09 Thread Harbs
Yes. I’ll try to put together a test case. > On Jul 9, 2017, at 6:57 PM, piotrz wrote: > > Actually could you provide small example ? I would like to make sure myself > that is a bug. > > Thanks, > Piotr > > > > - > Apache Flex PMC > piotrzarzyck...@gmail.com > -- > View this message in

Re: [FlexJS] technical debt

2017-07-09 Thread Josh Tynjala
While I personally use === and !==, the vast, VAST majority of ActionScript developers do not. I think it makes sense to turn that off for the default profile. It's not considered best practice in the ActionScript community. Probably because we encounter undefined significantly less than JS develop

Re: [FlexJS]DropDownList dataProvider

2017-07-09 Thread Harbs
I was trying to create a JIRA, but JIRA keeps freezing my browsers. I finally managed to get in using Safari and using a direct URL, I managed to open a page in Chrome. I disabled the “new project navigation” which seems to have brought JIRA back to life for me. Anyway here’s the JIRA: https://

Re: [FlexJS]DropDownList dataProvider

2017-07-09 Thread piotrz
Harbs, What do you exactly see in the console ? I just tried your example and I don't see any RTE there. Do you see it in SWF version ? Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Dr

Re: [FlexJS]DropDownList dataProvider

2017-07-09 Thread piotrz
Additionally I see in ArraySelectionModel which has been used in DropDownList in dataProvider setter this one: if (value === this._dataProvider) return; Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.

Re: [FlexJS]DropDownList dataProvider

2017-07-09 Thread Harbs
Yeah. I noticed that too. > On Jul 9, 2017, at 8:20 PM, piotrz wrote: > > Additionally I see in ArraySelectionModel which has been used in DropDownList > in dataProvider setter this one: > > if (value === this._dataProvider) >return; > > Piotr > > > > - > Apache Flex PMC > piotrzarz

Re: [FlexJS]DropDownList dataProvider

2017-07-09 Thread piotrz
I cannot check when those changes was introduced, cause for some reason I don't see history of that file. I think it was before dual, cause this model was moved from HTML module to Basic during dual changes. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context

Re: [FlexJS]DropDownList dataProvider

2017-07-09 Thread Harbs
It was always like that, but I think it’s incorrect. You can go back in the history, but you need to follow the changes across the rename from HTML. SourceTree makes that pretty easy. > On Jul 9, 2017, at 9:00 PM, piotrz wrote: > > I cannot check when those changes was introduced, cause for so

Re: [FlexJS]DropDownList dataProvider

2017-07-09 Thread Harbs
I fixed it. If someone feels that it’s not a bug we can revert the commit... Next issue… ;-) > On Jul 9, 2017, at 9:27 PM, Harbs wrote: > > It was always like that, but I think it’s incorrect. > > You can go back in the history, but you need to follow the changes across the > rename from HTML

Re: [FlexJS]DropDownList dataProvider

2017-07-09 Thread piotrz
I think this Option generation shouldn't be really happen inside DropDownList but rather in DropDownListView. Maybe when Peter get back from vacation will get a chance refactor that part. It could be done similar as I did it in MDL or even merge everything together. Thanks, Piotr - Apache

[FlexJS] Bindable and consts

2017-07-09 Thread Harbs
I just discovered something: Foo.as: package com.acme.foobaz.model{ [Bindable]public class Foo{ static public const BAZ:String = “baz”; } } In some other class: if(baz == Foo.BAZ){//do something} compiles to: if(baz == com.acme.foobaz.model.Foo[“BAZ”]) If you re

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Yes; the mailing list stripped out the two attachments. I zipped the folder; here is the link to the zip file: https://www.dropbox.com/s/6qqf1zqg3il51bp/FBSearchBox.zip?dl=0 This is the project that just has caused compiler to hit the out of memory error. The file that seems to have caused this

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread piotrz
Allen, SearchBox.mxml - look good to me - of course if you have ISearchable - but I don't see it. Apart of that you have in this project file called "deallist.as" - which has a lot of old Flex classes - it's not going to build. Not sure what you wanted to achieve ? Thanks, Piotr - Apache F

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Greg Dove
I took a quick look at SearchBox.mxml there are at least some basic xml errors in it. xmlns:ns="library://ns.apache.org/flexjs/svg> <- missing quote wrote: > Allen, > > SearchBox.mxml - look good to me - of course if you have ISearchable - but > I > don't see it. Apart of that you have in this

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Piotr, Deallist.as declares a bunch of global variables in the real Flex 3 application that I need to convert to FlexJS. SearchBox.mxml is one of this Flex 3 program's source files. Because SearchBox.mxml accesses the global variables in the application, I included deallias.as to reduce compil

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Hi Greg, Thanks for pointing out the xml errors. I corrected them. The compiler doesn't hang any more. Now with "import com.iwobanas.core.ISearchable;" added within CDATA code block, I got a "definition com.iwobanas.core.ISearchable could not be found" Also, I got "js:Label is not allowed here"

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Alex Harui
Did you close the Hcontainer tag? On 7/9/17, 5:03 PM, "Allen YANG" wrote: >Hi Greg, >Thanks for pointing out the xml errors. I corrected them. The compiler >doesn't hang any more. >Now with "import com.iwobanas.core.ISearchable;" added within CDATA code >block, I got a "definition com.iwobanas.

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Justin Mclean
Hi, I’ve not tested this and it’s likely to have issues (I’m not 100% sure the binding will work) and you need to modify it so it's not an application. I think this may help you get towards a working version - their may be other ways of doing this as well. http://ns.adobe.com/mxml/2009";

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Hi Alex, Now I closed the HContainer tag; thanks for pointing it out. But after making the corrections and rebuild, now the compiler got back to java.lang.NullPointerException again. Also another error message: "internal error in outgoing dependency subsystem when generating code for c:\Project

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Justin Mclean
Hi, Sending again as this didn’t seem to make it to the list. There a number of other changes you may need to make to get this to work in FlexJS: - You need to set value impl to enable layout try js:SimpleCSSValuesImpl - Change Button to TextButton which has a text attribute but there’s no enabl

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Hi Justin, Thank you very much! I will try this. Best Regards, Allen -Original Message- From: Justin Mclean [mailto:jus...@classsoftware.com] Sent: Sunday, July 09, 2017 8:55 PM To: dev@flex.apache.org Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS Hi, I’

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Thank you, Justin. Once I got through the tag issue I will add these. Regards, Allen -Original Message- From: Justin Mclean [mailto:jus...@classsoftware.com] Sent: Sunday, July 09, 2017 9:30 PM To: dev@flex.apache.org Subject: Re: [FlexJS] question about porting an Adobe Flex 3 project to

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Hi Justin, I understand that the code is not tested yet and I am going to fix syntax errors in it if they show up. But I am confused that the tag got an error "this tag could not be resolved to an ActionScript class". It seems perfectly all right to me. Thanks, Allen -Original Message-

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Justin Mclean
HI, There a number of other changes you may need to make to get this to work in FlexJS: - you need to set value impl to enable layout try js:SimpleCSSValuesImpl - Change Button to TextButton which has a text attribute but there’s no enable attribute - toolTips are supported via the tool tip bead

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Justin Mclean
Hi, I’d guess you have an js:Application tag elsewhere in your application and this is just a component right? To use as a component try this instead (again untested): http://ns.adobe.com/mxml/2009"; xmlns:js="library://ns.apache.org/flexjs/basic">

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Justin Mclean
Hi, > Once I got through the tag issue I will add these. In the code (assuming it works) I’ve actually done most of these. The emails arrived out of order. The only thing you need to work out is how to convert the enter event. Thanks, Justin

Re: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread Allen YANG
Thank you, Justin. I made your earlier code the only Application and the only MXML file. I still got the same compiler complaint, that's why I am confused. But I should really put your current code in a separate MXML file and call it in main application anyway. Thanks, Allen Sent via the Sams

Re: [FlexJS] technical debt

2017-07-09 Thread Justin Mclean
Hi, I reset the default rules back to the way they were and created a "FlexJS Framework” quality profile we can make the changes there. Thanks, Justin

RE: [FlexJS] question about porting an Adobe Flex 3 project to HTML+JS

2017-07-09 Thread yishayw
Hi Allen, As others have pointed out, the project you posted has some syntax errors and includes flex 3 classes that will not build. Please post a simple project that demonstrates the problem you are currently having. Thanks, Yishay -- View this message in context: http://apache-flex-developm

Re: [FlexJS] technical debt

2017-07-09 Thread piotrz
Hi Justin, Thank you. Harbs, Can you take a look whether you can edit it ? It seems that I don't have some permission to change that profile. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/F