Re: [FlexJS] Name space question

2017-07-10 Thread Alex Harui
Are you using Maven or FB or some other build process? For Maven you may need to add the Flat artifact to the pom.xml -Alex On 7/10/17, 7:45 PM, "Allen YANG" wrote: >Hi Team, > >I was trying to create a FlexJS project from the example in FlexJS:

[FlexJS] Name space question

2017-07-10 Thread Allen YANG
Hi Team, I was trying to create a FlexJS project from the example in FlexJS: https://cwiki.apache.org/confluence/display/FLEX/Application+Structure I encountered name space issue which I am still confused by, and hope you could help me to understand. In MyInitialView.MXML file I had a line:

Re: Flex installation aborted

2017-07-10 Thread Justin Mclean
Hi, > Downloading Adobe AIR Runtime Kit for Windows from: > http://airdownload.adobe.com/air/win/download/25.0//AdobeAIRSDK.zip > Validating download: K:\flex\4.16-25/in/AdobeAIRSDK.zip > Error #1000 Error 1000 is an out of memory issue. Currently there is an issue with the install where it may

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

2017-07-10 Thread Allen YANG
Hi Piotr, Thank you so much! This works very nicely. Following your instruction I was able to build and run the SearchBox successfully. I will study your codes and the files that guide the build process in more details tonight. This is very helpful. Hi Josh: to make sure I have the latest

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

2017-07-10 Thread piotrz
Thanks Josh it's working! :) 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-Adobe-Flex-3-project-to-HTML-JS-tp62698p63056.html Sent from the Apache Flex Development

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

2017-07-10 Thread Josh Tynjala
> I was not able to run build through VSCode: It constantly reported: "Unknown compiler option: targets" You probably have an old version of asconfigc installed on your system. Run the following command to update: npm install -g asconfigc - Josh On Mon, Jul 10, 2017 at 1:23 PM, piotrz

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

2017-07-10 Thread piotrz
Hi Allen, I just look into your project and change it in order to give you starting point. [1] 1) You was not able to properly build cause you didn't have some classes: - SearchClass - You did add it but it was not enough - ISearchable - It was missing I've added it as a mock up 2) I was not

Flex installation aborted

2017-07-10 Thread Gary Yang
Installer version 3.2.0 (windows) Using Locale: en_US Fetched the SDK download mirror URL from the CGI. SDK version Apache Flex SDK 4.16.0 AIR version 25.0 Flash Player version 25.0 Creating Apache Flex home Creating temporary directory Downloading Apache Flex SDK from:

RE: git commit: [flex-asjs] [refs/heads/develop] - Add FileUploaderWithResponseData

2017-07-10 Thread Yishay Weiss
I was thinking the same thing but it’s complicated to make it into a bead. It would have to catch the ‘complete’ event and record the response data before anyone else does. Since we don’t have event listener priorities I don’t know how to do that. I hope to update the wiki Greg wrote when I’m

Re: git commit: [flex-asjs] [refs/heads/develop] - Add FileUploaderWithResponseData

2017-07-10 Thread Piotr Zarzycki
Hi Yishay, I'm wondering whether it is possible to have it bead instead class ? What do you think ? Thanks, Piotr 2017-07-10 18:30 GMT+02:00 : > Repository: flex-asjs > Updated Branches: > refs/heads/develop c6a24011b -> 54d00a044 > > > Add FileUploaderWithResponseData >

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

2017-07-10 Thread Alex Harui
Hi Allen, If "comp" is a namespace instead of a folder path, then the new component has to be added to the manifest.xml for that namespace. You'll see basic-manifest.xml files in the various SWC projects. -Alex On 7/10/17, 8:43 AM, "Allen YANG" wrote: >Hi All, >I

Re: [FlexJS] Question about Events/possible bugs

2017-07-10 Thread Josh Tynjala
That sounds reasonable. - Josh On Mon, Jul 10, 2017 at 9:32 AM, Alex Harui wrote: > Well, the goal is to not have the framework code use the native Event. > Maybe we should add a warning that we can turn on for our code but is off > by default. > > -Alex > > On

Re: [FlexJS] Question about Events/possible bugs

2017-07-10 Thread Alex Harui
Well, the goal is to not have the framework code use the native Event. Maybe we should add a warning that we can turn on for our code but is off by default. -Alex On 7/10/17, 8:52 AM, "Josh Tynjala" wrote: >This behavior is because the native HTML classes aren't in a

Re: [FlexJS] States Bug?

2017-07-10 Thread Alex Harui
OK, then file a bug. Maybe it is an easy fix. -Alex On 7/10/17, 9:19 AM, "Harbs" wrote: >It does. It was code that was imported from a regular Flex component. It >worked in the old app (although it was probably not necessary). > >> On Jul 10, 2017, at 6:45 PM, Alex

Re: [FlexJS] Bindable and consts

2017-07-10 Thread Harbs
Not urgent right now. Once I figured out what the problem was, I removed the Bindable tag. It was not strictly necessary. In my case the public static const was not exported. Not sure why. I’m not sure that we always want to export these things either, but that’s a whole ‘nother discussion

Re: [FlexJS] States Bug?

2017-07-10 Thread Harbs
It does. It was code that was imported from a regular Flex component. It worked in the old app (although it was probably not necessary). > On Jul 10, 2017, at 6:45 PM, Alex Harui wrote: > > If you have time, see if it works in regular Flex. > > Thanks, > -Alex > >

Re: [FlexJS]DropDownList dataProvider

2017-07-10 Thread Alex Harui
We may still need that somewhere. You may need to set the dataProvider to null in order to allow for garbage collection. But yes, in general, we want to avoid defensive code. -Alex On 7/10/17, 8:17 AM, "piotrz" wrote: >I think we should raise jira for DropDownList

Re: [FlexJS] Bindable and consts

2017-07-10 Thread Alex Harui
How urgent is this? I'm trying to figure out why the compiler did not respond properly to bad MXML. I thought public APIs were all exported so they would survive getting renamed. In the minified JS, the code will often access the renamed variable, but a tree of objects with properties also gets

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

2017-07-10 Thread Allen YANG
Hi All, I added a file called SearcClass.as with the following content just to see if that gets me the SearchClass. package { [Bindable] public class SearchClass { public function SearchClass() { } } } After that I still get the same error. Could someone explain a but what I should do

Re: [FlexJS] Question about Events/possible bugs

2017-07-10 Thread Josh Tynjala
This behavior is because the native HTML classes aren't in a package. The compiler treats everything that's not in a package the same as classes like Number, Boolean, and String, which you don't need to import. It seems potentially tricky to change this behavior, unless you have a whitelist. You

Re: [FlexJS] States Bug?

2017-07-10 Thread Alex Harui
If you have time, see if it works in regular Flex. Thanks, -Alex On 7/10/17, 1:44 AM, "Harbs" wrote: >The bug (if it is one) seems to be when using nested includeIn >attributes. What happens is that you get two objects with the same key >(i.e. the same object is included

Re: [FlexJS] Question about Events/possible bugs

2017-07-10 Thread Alex Harui
Yes, good catch. I'm wondering if the compiler should not auto-import native HTML classes. -Alex On 7/10/17, 1:16 AM, "Harbs" wrote: >Good catch. > >Without looking at them, I’d guess that they are bugs. Clipboard was my >error and I just committed a fix for that. >

Re: [FlexJS]DropDownList dataProvider

2017-07-10 Thread piotrz
I think we should raise jira for DropDownList improvement. Once it will be done we won't need if(!value)return; :) Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context:

Re: [FlexJS]DropDownList dataProvider

2017-07-10 Thread Alex Harui
I agree with Piotr about moving the removal of the elements to the view. But really, the binding subsystem should have caught this error. That's part of the "Payment" for using binding. My 2 cents, -Alex On 7/9/17, 11:50 AM, "piotrz" wrote: >I think this Option

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

2017-07-10 Thread Olaf Krueger
>I don't see class SearchClass in the project Maybe I'm wrong, but I'm also don't see a representation for "http://apache-flex-development.247.n4.nabble.com/FlexJS-question-about-porting-an-Adobe-Flex-3-project-to-HTML-JS-tp62698p63036.html Sent from the Apache Flex Development mailing list

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

2017-07-10 Thread piotrz
Allen, I don't see class SearchClass in the project - that's why you are getting such error. You are building project using VS Code there is no Maven. Maven build is described in pom.xml file, but ok if you were able to setup VSCode build that's enough. - You can setup build by maven later if

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

2017-07-10 Thread Allen YANG
Hi Alex, Justin and all, I appreciate all the help I got; and sorry about the questions that show my newness to Flex 3. At this point I am trying to compile and build Justin's SearchClass example. I corrected one minor typo in the sample code. My project is in:

Re: [FlexJS] technical debt

2017-07-10 Thread Harbs
How can you use filtering to change what the dashboard shows? > On Jul 10, 2017, at 2:02 PM, Justin Mclean wrote: > > Hi, > >> I was trying to set up an alternate set because it’s easier to have two sets >> to compare rather than having long drawn-out discussion. >

Re: [FlexJS] technical debt

2017-07-10 Thread Justin Mclean
Hi, > I was trying to set up an alternate set because it’s easier to have two sets > to compare rather than having long drawn-out discussion. As opposed to using the filtering that exists in the web interface? That seems an easier way to do to comparisons but I guess sit depends on your exact

Re: [FlexJS] Question about Events/possible bugs

2017-07-10 Thread piotrz
Understand! :) - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Question-about-Events-possible-bugs-tp63023p63031.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Bindable and consts

2017-07-10 Thread Harbs
It appears that this is the case with any public static getter. public static function get FOO():String{return “foo”} or public static function get FOO():Foo{return _foo} I don’t see any reason why bracket notation would be needed. Is this a throwback from before we had the get__ functions?

Re: [FlexJS] States Bug?

2017-07-10 Thread Harbs
The bug (if it is one) seems to be when using nested includeIn attributes. What happens is that you get two objects with the same key (i.e. the same object is included twice in the class) > On Jul 10, 2017, at 11:07 AM, yishayw wrote: > > It looks like the compiler

[FlexJS] States Bug?

2017-07-10 Thread yishayw
It looks like the compiler gets confused when we add nested objects using state. This [1] is a test app that includes a [2] view, to demonstrate. Should I file a bug? [1] https://paste.apache.org/gYQ3 [2] https://paste.apache.org/OX9n -- View this message in context:

Re: [FlexJS] Question about Events/possible bugs

2017-07-10 Thread Harbs
It could, but there’s no reason to. The Clipboard class is just a proxy to the native Flash Clipboard class on the SWF side. > On Jul 10, 2017, at 11:02 AM, piotrz wrote: > > Harbs, > > I think this import could be outside COMPILE::JS. > > Piotr > > > > - >

Re: [FlexJS] Question about Events/possible bugs

2017-07-10 Thread piotrz
Harbs, I think this import could be outside COMPILE::JS. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Question-about-Events-possible-bugs-tp63023p63025.html Sent from the Apache Flex

Re: [FlexJS] Question about Events/possible bugs

2017-07-10 Thread Harbs
GraphicContainer was another one I was involved in, so I know that’s an omission as well. (committed) > On Jul 10, 2017, at 11:16 AM, Harbs wrote: > > Good catch. > > Without looking at them, I’d guess that they are bugs. Clipboard was my error > and I just committed a

Re: [FlexJS] Question about Events/possible bugs

2017-07-10 Thread Harbs
Good catch. Without looking at them, I’d guess that they are bugs. Clipboard was my error and I just committed a fix for that. Thanks, Harbs > On Jul 10, 2017, at 11:06 AM, Greg Dove wrote: > > I noticed a problem with VerticalFlexLayout in IE11 (and presumably older >

[FlexJS] Question about Events/possible bugs

2017-07-10 Thread Greg Dove
I noticed a problem with VerticalFlexLayout in IE11 (and presumably older IE browsers). The JS output causing problems has child.dispatchEvent(new Event("layoutNeeded")); The reason is that the org.apache.flex.events.Event import is missing from the COMPILE::JS build scope So it is falling back

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

2017-07-10 Thread Alex Harui
Justin, We have advised Allen to try the Express set. Only some of your advice is going to apply. We want to pre-package beads in Express so folks like Allen don't have to add as many beads. Thanks, -Alex On 7/9/17, 6:29 PM, "Justin Mclean" wrote: >Hi, > >Sending

Re: [FlexJS] technical debt

2017-07-10 Thread Harbs
That’s a good idea, and I will probably do so next time I’m inclined to spend time on this. > On Jul 10, 2017, at 10:43 AM, Justin Mclean wrote: > > If you are trying things out rather than experimenting on the live server you > can run Sonar Cube locally.

Re: [FlexJS] technical debt

2017-07-10 Thread Harbs
I was trying to set up an alternate set because it’s easier to have two sets to compare rather than having long drawn-out discussion. I don’t think there’s any harm in having two sets to compare. I tried playing with my set using inheritance, but I just messed it up. I really don’t have the

Re: [FlexJS] technical debt

2017-07-10 Thread Justin Mclean
Hi, > I have permissions to edit profiles, but I don’t seem to have permissions to > assign profiles. You do have permissions you’re just doing it in the wrong place. Also I won’t recommend hard coding a set of rules as you have done. It’s better to define the rule set as a delta of the

Re: [FlexJS] technical debt

2017-07-10 Thread Harbs
I have permissions to edit profiles, but I don’t seem to have permissions to assign profiles. I created another profile and I’m waiting for INFRA to look at my permissions again. > On Jul 10, 2017, at 9:28 AM, piotrz wrote: > > Hi Justin, > > Thank you. > >

Re: [FlexJS] technical debt

2017-07-10 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:

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

2017-07-10 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: