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

2017-07-08 Thread yishayw
I don't see panelview.as in the sources. But anyway, I don't remember it being part of the demo so you can ignore it for now. Any luck with creating a TitleWindow equivalent? -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-A

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

2017-07-08 Thread Allen YANG
Hi Yishay, You are right. I rechecked the demo.zip file and panelview.as is not there. Maybe I was trying to learn about TitleWindow replacement and break the code into a separate file, ended up leaving it there. No luck yet in converting my MXML file for TitleWindow equivalent because it also

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

2017-07-08 Thread Allen YANG
Hi Alex, I tried usingxmlns:js="library://ns.apache.org/flexjs/express" instead of basic, the compiler still hit an exception after a few minutes. This is done from VS Code + Maven. I also downloaded reusable_fx source codes (ISearchable), it seems to be built on an earlier version of Flash B

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

2017-07-08 Thread Alex Harui
Hi Allen, These are great questions. Many examples have a MyInitialView.mxml file with js:View as the top tag. You might want to refer to those examples. The current Panel does have an optional close button so it can substitute as TitleWindow, but I am currently refactoring it for 0.9.0 to be mo

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

2017-07-08 Thread Alex Harui
Hi Allen, Looks like the compiler is somehow running out of memory. How many files are you trying to compile? I think Isearchable might be part of a larger set of source and you may need all of that source. FlexJS doesn't have an equivalent, and it would be useful to us to see how hard it would

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

2017-07-08 Thread Allen YANG
Hi Alex, Two files only. One file is application and calls the 2nd MXML file. The 2nd file is the SearchBox.MXML file that's less than 40 lines but imports the ISearchable. I will look into the examples. Thanks and Regards, Allen Sent via the Samsung Galaxy S7, an AT&T 4G LTE smartphone ---

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

2017-07-08 Thread Allen YANG
Hi Alex, I am leaving SearchBox.mxml compiler issue aside for now since I have no idea how to solve it. Following the MyInitialView.mxml example, I was finally able to convert a Flex 3 MXML file called UpdateResources.mxml which starts with and has a Canvas with HBox, VBox and Buttons inside.

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

2017-07-08 Thread Greg Dove
I just glanced back at your mxml. Not sure if this will help... but you could try moving the fx:Script tag outside the HContainer tag so it is top level inside your mxml. This seems more conventional although I am not sure whether it is the cause of the compiler issues you are seeing or not. -Greg

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

2017-07-08 Thread Allen YANG
Hi Greg, I moved the fx:Script tag outside of the HContainer tag; the compiler still took several minutes and hit the same problem. Regards, Allen -Original Message- From: Greg Dove [mailto:greg.d...@gmail.com] Sent: Saturday, July 08, 2017 3:58 PM To: dev@flex.apache.org Subject: RE: [Fl

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

2017-07-08 Thread Allen YANG
Hi Alex, I took the same SearchBox source files to Flash Builder 4.7 and got the same error; that allowed me to dump the stack trace, and you are correct, it is out of memory. Stack trace: java.lang.OutOfMemoryError: Java heap space at

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

2017-07-08 Thread Alex Harui
Hi Allen, One of the simpler projects that has a MyInitialView is in examples/flexjs/DataBindingExample. See if you can get that to build using whatever build process you are using. If you can build DataBindingExample, then the next thing to do is comment out just about everything in your MXML f

Re: [FlexJS] technical debt

2017-07-08 Thread Harbs
I’m just catching up on email. I made two changes on Friday. I deactivated the following two rules for the Flex language. (Please note that I only deactivated them. I did not delete them.) I wanted to see how much that would effect the score: "===" and "!==" should be used instead of "==" and "!