Re: [FlexJS] How to download files

2017-02-28 Thread Justin Mclean
Hi, >> Having a document somewhere listing what is implement and what isn’t >> would be useful I think rather than having to hunt through examples / >> mailing list etc etc. > > There is ASDoc [1][2]. ASDocs are the API docs so I’m not 100% sure this would be the best place to document this

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

2017-02-28 Thread piotrz
I'll try to play more with Tabs over the weekend. In general I'm accesing componentHandler in "addedToParent" method, but from your perspective you can try "initComplete" or "beadsAdded" event - If you ofcours using some of our component. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com

Re: [FlexJS] How to download files

2017-02-28 Thread Justin Mclean
HI, > I believe there's an "A" component. Would that work? Thanks I didn’t consider that. Don't think it will work in this particular case but would in others. I ended up adding this to my pom file: org.apache.flex.flexjs.typedefs flexjs-typedefs-js 0.8.0-SNAPSHOT swc

Re: [FlexJS] How to download files

2017-02-28 Thread Alex Harui
On 2/28/17, 10:40 PM, "Justin Mclean" wrote: >Hi, > >> I don’t think we yet have anything which wraps File APIs. It’s probably >>pretty straight-forward to build off URLBinaryLoader to get what you >>need. > >Thanks for that. So just to confirm there’s nothing in

Re: [FlexJS] How to download files

2017-02-28 Thread Justin Mclean
Hi, > I don’t think we yet have anything which wraps File APIs. It’s probably > pretty straight-forward to build off URLBinaryLoader to get what you need. Thanks for that. So just to confirm there’s nothing in FlexJS currently which will allow a user to download a file to their hard disk.

Re: [FlexJS] Horizontal list missing scrollbar

2017-02-28 Thread Alex Harui
On 2/28/17, 5:52 PM, "Justin Mclean" wrote: > >> It isn't wrong, it just may not be what you need for your app. If you >>add >> a property that has to be checked, that's a bit more code than making >> assumptions about what kind of overflow you want. > >AFAIKS it's

Re: [FlexJS] How to download files

2017-02-28 Thread Harbs
We have URLBinaryLoader for getting BinaryData. I don’t think we yet have anything which wraps File APIs. It’s probably pretty straight-forward to build off URLBinaryLoader to get what you need. DAYG… ;-) Harbs > On Mar 1, 2017, at 7:42 AM, Justin Mclean wrote: > >

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

2017-02-28 Thread flex . ci . builds
flex-sdk_release-candidate - Build #244 - 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/244/.

[FlexJS] How to download files

2017-02-28 Thread Justin Mclean
Hi, In AS you normally use URLRequest / FileReference to download a file, in JS you use window.open or window.href =. Is there anything in FlexJS that will compile / work for both? I was unable to find anything or get anything working. Thanks, Justin

Re: [FlexJS] Horizontal list missing scrollbar

2017-02-28 Thread Justin Mclean
Hi, > Maybe look for examples where there is vertical scrolling, see how it is > built, and try to copy the patterns. The pattern I tried was the same ie add a ScrollingViewPort. > Well, that seems to be the trend at least on Mac? For page content that is obviously cut off sure, but IMO not

[FlexJS] content being push out of the way in container

2017-02-28 Thread Justin Mclean
Hi, I have this code: http://ns.adobe.com/mxml/2009; xmlns:js="library://ns.apache.org/flexjs/basic”> Changing the visibility of the cover container causes the text to jump outside often container. Oddly adding x=“0” y=“0” to the cover and the label fixes the issue.

Re: [FlexJS] Horizontal list missing scrollbar

2017-02-28 Thread Alex Harui
On 2/26/17, 12:41 AM, "Justin Mclean" wrote: >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. Maybe look for examples where there is vertical scrolling, see how it is

Re: [FlexJS] Quick check on HttpService fix

2017-02-28 Thread Alex Harui
OK, sounds good. 2009 plus a few years for browsers I use to catch up sounds about the right timing to me. -Alex On 2/28/17, 2:21 PM, "Greg Dove" wrote: >Thanks Alex, > >At this point I assume that removing these headers does not relate to >'Trusted'/ 'Untrusted', so I

Re: [FlexJS] Quick check on HttpService fix

2017-02-28 Thread Greg Dove
Thanks Alex, At this point I assume that removing these headers does not relate to 'Trusted'/ 'Untrusted', so I will remove them as it appears to me to be currently broken. These are currently not permitted [1] As near as I can tell it has been not permitted since at least 2009 specs [2] I may be

[FlexJS] Coordinate Space

2017-02-28 Thread Peter Ent
Hi, In an effort to clean up Container and layouts, we need to look at the coordinate system of FlexJS. Since the goal is to have the SWF side mimic the JS side, perhaps we should visit the "coordinate system" of HTML. You'll find an Apache Paste at [1] below. If you could run that and make

Re: [FlexJS] With Fade effect there's no way to get at the target of a event

2017-02-28 Thread Alex Harui
On 2/28/17, 12:26 AM, "Justin Mclean" wrote: >Hi, > >With the Fade Effect (and probably others) the constructor takes the >target and saves it to a private property actualTarget. > >When the ValueEvent is dispatched there no way to get at the target of >the event.

Re: [FlexJS] listening for scroll events

2017-02-28 Thread Alex Harui
On 2/27/17, 11:28 PM, "Justin Mclean" wrote: >Hi, > >I have a container with a ScrollingViewport. How do you listen to scroll >events on teh content? > >As far asI can see the scale event don't bubble and because of the added >containers on the JS side you need to do

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

2017-02-28 Thread sankar
piotrz wrote > var componentHandler:Object = window["componentHandler"]; > if (componentHandler) > { > componentHandler.upgradeElement(element); //MDL function > } How you access 'window' in above example, Piotr? In my case I able to access 'window' by accessing 'document.defaultView'. But

[FlexJS] GraphicShape.resize()

2017-02-28 Thread Harbs
GraphicShape.resize() takes a SVGRect argument. This needs to be calculated using getBBox(). Firefox has a long-standing bug where this method causes an error if the SVG is not yet drawn.[1] I’m not sure I understand the need for the call to getBBox(). Why is the width and height not enough?

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

2017-02-28 Thread sankar
Hi Piotr, In the MDLExample/Tabs.mxml, I see the TabBar component uses default itemrenderer component - org.apache.flex.mdl.itemRenderers.TabBarButtonLayoutItemRenderer. I haven't look into details if the renderer has some logic to display arrow buttons to navigate left and right and other logic.

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

2017-02-28 Thread flex . ci . builds
flex-sdk_release-candidate - Build #243 - 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/243/.

Re: [FlexJS] Container

2017-02-28 Thread Carlos Rovira
Hi Peter, 2017-02-27 23:13 GMT+01:00 Peter Ent : > > QUESTION: In your Flex apps, do you need to place chrome elements besides > using a Panel? > As you and Peter think, is rare. This should be implemented in an extended or different component. -- Carlos Rovira

[FlexJS] With Fade effect there's no way to get at the target of a event

2017-02-28 Thread Justin Mclean
Hi, With the Fade Effect (and probably others) the constructor takes the target and saves it to a private property actualTarget. When the ValueEvent is dispatched there no way to get at the target of the event. Should actualTarget be made a read only getter? BTW You can get at private