Re: [FalconJX] extern issue?

2017-02-26 Thread Harbs
Because you might be dealing with an array that came from somewhere else. Unless we deliberately blur the lines between Vectors and Arrays, it’s going to cause type errors. It could be that we might be able to “fake” it on the JS side (not even sure about that), but on the SWF side I don’t see

[FlexJS] Changing "DataProviderChangeNotifier"

2017-02-26 Thread piotrz
Hi All, I was using lately "DataProviderChangeNotifier" bead in MDL Tabs and I would like to change a bit this class. Every time when my ArrayList has change "DataProviderChangeNotifier" emits event "dataProviderChanged" - In my case Tabs are being removed and recreated - I think it's to much in c

Re: [FalconJX] extern issue?

2017-02-26 Thread Alex Harui
Yes, please file a JIRA. Since we're on the subject, why wouldn't Vector be a good equivalent of typed arrays? Thanks, -Alex On 2/26/17, 11:23 AM, "Harbs" wrote: >I already worked around it for now, but it’s something that should >probably be resolved. > >Do you want me to create a JIRA for th

[FlexJS, MDL] Add example "MDLDynamicTabsExample"

2017-02-26 Thread piotrz
Hi All, I just added "MDLDynamicTabsExample" example which illustrate how to create "Tab" dynamically in our MDL library. [1] [1] https://github.com/apache/flex-asjs/tree/develop/examples/flexjs/MDLDynamicTabsExample Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message i

Re: [FlexJS] MDL: Add/Remove item(s) to TabBar

2017-02-26 Thread piotrz
Ok I have found cause of the problem and pushed the changes. Basically I did use "itemsCreated" for "Tabs", but in my case I should use "itemsCreated" in TabBar. Sankar, I will soon create separate small application with "Tabs" component which will illustrate dynamic update by ArrayList. In the m

Re: [FalconJX] extern issue?

2017-02-26 Thread Harbs
I already worked around it for now, but it’s something that should probably be resolved. Do you want me to create a JIRA for this? > On Feb 26, 2017, at 8:59 PM, Alex Harui wrote: > > Has the jsdoc syntax of "type[]" been used elsewhere? It is likely that > externc didn't know to expect it. >

Re: [FalconJX] extern issue?

2017-02-26 Thread Alex Harui
Has the jsdoc syntax of "type[]" been used elsewhere? It is likely that externc didn't know to expect it. For now, you can patch your .js file to just claim to return an array. Lots of our other typedefs hack the .js file before pushing it through externc. -Alex On 2/26/17, 10:42 AM, "Harbs" w

Re: [FlexJS] MDL: Add/Remove item(s) to TabBar

2017-02-26 Thread piotrz
Issue which I mentioned in the previous post: [1][2] In MDL library I have component "Tabs". When my dataProvider is ArrayList I can add another Tab dynamically. Unfortunately "Tabs" component need to be upgraded: var componentHandler:Object = window["componentHandler"]; if (componentHandler) {

Re: [FalconJX] extern issue?

2017-02-26 Thread Harbs
Yes. I put it though externc. Here’s the ActionScript output for the method: /** * Convert the given text to a list of Glyph objects. * Note that there is no strict one-to-one mapping between characters and * glyphs, so the list of returned glyphs can be larger or smaller than t

Re: [FalconJX] extern issue?

2017-02-26 Thread Alex Harui
On 2/25/17, 11:42 PM, "Harbs" wrote: >I have the following in an extern: > >/** > * Convert the given text to a list of Glyph objects. > * Note that there is no strict one-to-one mapping between characters and > * glyphs, so the list of returned glyphs can be larger or smaller than >the > * len

Re: [FlexJS] MDL: Add/Remove item(s) to TabBar

2017-02-26 Thread piotrz
I forgot to post this link [1] which Om provide me. It explains what actually should be done in order to add Tabs using TabBar. [1] http://codepen.io/anon/pen/BNOVvw Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n

Re: [FlexJS] MDL: Add/Remove item(s) to TabBar

2017-02-26 Thread piotrz
Hi Sankar, I have Bad and Good news. I will start from the bad. I'm not able in reasonable way add support for adding dynamically Tabs in TabBar to our framework. Cause adding dynamically Tab in case when you using TabBar is actually two step things: 1) You need to add Tab to TabBar 2) You need

[4.16.0] # Apache Flex SDK 4.16.0 nightly build 242: Successful

2017-02-26 Thread flex . ci . builds
flex-sdk_release-candidate - Build #242 - Successful Changes since last build: No changes For more information, check the console output at http://apacheflexbuild.cloudapp.net:8080/job/flex-sdk_release-candidate/242/.

Re: [FlexJS] Horizontal list missing scrollbar

2017-02-26 Thread Harbs
I’m not sure why you’re getting that error. Maybe there’s some env variable not set correctly. FWIW, here’s the script I run to set my env variables prior to building using ant: #!/bin/sh export FALCON_HOME=/Users/harbs/Documents/ApacheFlex/flex-falcon/compiler export FLEXUNIT_HOME=/Users/harbs

Re: [FlexJS] Horizontal list missing scrollbar

2017-02-26 Thread Justin Mclean
Hi, Thanks Harbs for that. I must have something wrong with my set up as I get this when I try to compile: [INFO] Executing COMPC in tool group FlexJS with args: [-load-config=/Users/justinmclean/flex-asjs/frameworks/projects/HTML/target/compile-js-config.xml, -js-output-type=FLEXJS, -compiler.

Re: [FlexJS] Horizontal list missing scrollbar

2017-02-26 Thread Harbs
True. We need people to document things. Whatever you can document as you go will be very valuable. > On Feb 26, 2017, at 10:41 AM, Justin Mclean wrote: > >> Not all bugs will be fixed right away. We just don't have enough people. >> We need more code contributors. > > So we should be coming

Re: [FlexJS] Horizontal list missing scrollbar

2017-02-26 Thread Harbs
I’m not sure what error you got. I just did this, and it compiled OK. (I did not test it, and there probably needs some more to be done on the SWF side.) // // Licensed to the Apache Software Foundation (ASF) under

Re: [FlexJS] Horizontal list missing scrollbar

2017-02-26 Thread Justin Mclean
Hi, > Again, probably DAYG (Do As You Go). Fair enough. Some pointers how to fix this or where to look at where to fix this would be helpful. In general people unfamiliar with the framework may need some help if they don't know where to look they probably not going to fix the framework but jus

Re: [FlexJS, MDL] Layout Problems

2017-02-26 Thread Harbs
Can someone please look at this? It’s important. Thanks, Harbs > On Feb 22, 2017, at 3:14 PM, Harbs wrote: > > Found it: > https://issues.apache.org/jira/browse/FLEX-35235 > > > I just reopened the issue. > >> On Feb 22, 2017, at 2:30 PM, Ha

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-02-26 Thread Harbs
> and in some > situations, it might need to be the parent document's body if you are in > an IFrame. That’s not going to work unless there’s some way to create elements in the outer document which we currently don’t have. I think the simplest way to go about it, is to leave it as-is for now. It