Re: [FlexJS] Fixed a bug in the distribution generation ... IntelliJ now accepts distribution

2017-01-16 Thread Josh Tynjala
In our FlexJS instructions for IntelliJ IDEA, it's described in the section that starts with: While this window is still open, click on Global Libraries, we will add the > FlexJS SDK also as a library, that's the second gotcha. https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+I

Re: git commit: [flex-asjs] [refs/heads/develop] - FLEX-35243 - Fix problem with unselecting ToggleTextButton - Use classList.toggle api in order to switch between selected and unselected state - Make

2017-01-16 Thread Josh Tynjala
Yes. https://developer.mozilla.org/en-US/docs/Glossary/Polyfill - Josh On Mon, Jan 16, 2017 at 9:18 AM, piotrz wrote: > Alex, > > I'm not sure what do you mean by saying polyfills for IE? It's some library > which handle do not existing API in older browser ? > > Piotr > > > > - > Apache F

Re: git commit: [flex-asjs] [refs/heads/develop] - FLEX-35243 - Fix problem with unselecting ToggleTextButton - Use classList.toggle api in order to switch between selected and unselected state - Make

2017-01-16 Thread Josh Tynjala
Last I checked, IE10 marketshare was actually significantly lower than IE9. I recall that a lot of people were stuck on IE9 without an upgrade option, but IE10 users could upgrade to IE11, and they did. If IE9 is not considered important anymore, IE10 can probably be safely skipped! - Josh On Mon

Re: [FlexJS] Fixed a bug in the distribution generation ... IntelliJ now accepts distribution

2017-01-16 Thread Josh Tynjala
That's what you need to do with any FlexJS SDK. Not just the Maven version. IntelliJ IDEA would need to fix this. Not us. It's the same with the Feathers SDK too. I spent many hours trying to find a workaround, but I think there's no working around the assumptions that Jetbrains made about Flex SD

Re: [FlexJS] className problem with MDL properties that modifies component className

2017-01-15 Thread Josh Tynjala
requestAnimationFrame() is the web browser equivalent of Flash's Event.ENTER_FRAME. https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame - Josh On Jan 15, 2017 11:50 AM, "Carlos Rovira" wrote: Hi Om, 2017-01-15 19:58 GMT+01:00 OmPrakash Muppirala : > > I prefer we c

[FalconJX] Output path

2017-01-11 Thread Josh Tynjala
MXMLFlexJSPublisher contains the following code that is run when no output path is specified in the compiler options: //begin code String mainClassFolder = configuration.getTargetFileDirectory(); if (mainClassFolder.endsWith("src")) outputParentFolder = new File(configuration.getTargetFileDire

Re: [FlexJS] Switching SDK from 0.7 to 0.8(dev) and rebuild FlexJS project without cleaning will cause runtime error in js mode

2017-01-11 Thread Josh Tynjala
Pan is taking about using a nightly rather than building from the repository, I think. I also encountered this issue. I talked to Alex about this because it confused me too. I guess the compiler does not always replace SDK JS files in bin when rebuilding a project since they're usually exactly the

Re: [FlexJS] value.hasOwnProperty not working, maybe a bug

2017-01-10 Thread Josh Tynjala
It seems like they're basically the same in Flash, so yes, I think that would be fine. If we discover a big enough difference in the future, we can consider a new method on the Language class instead. - Josh On Jan 10, 2017 11:07 AM, "Alex Harui" wrote: > On 1/10/17, 10:42

Re: [FlexJS] value.hasOwnProperty not working, maybe a bug

2017-01-10 Thread Josh Tynjala
I don't know about Carlos, but I use hasOwnProperty() in ActionScript to see if a property exists at all. It's never made a difference to me whether it's been added dynamically to an object or if it was defined as a member of a class. I only care whether it's there or not. - Josh On Tue, Jan 10,

Re: [FlexJS] value.hasOwnProperty not working, maybe a bug

2017-01-10 Thread Josh Tynjala
rui wrote: > What is a test case where Hasownproperty behaves differently between js > and as? > > Sent from my LG G3, an AT&T 4G LTE smartphone > > -- Original message-- > *From: *Josh Tynjala > *Date: *Sat, Jan 7, 2017 11:12 AM > *To: *dev@flex.apache.org; >

Re: [FlexJS] value.hasOwnProperty not working, maybe a bug

2017-01-07 Thread Josh Tynjala
n 7, 2017 9:21 AM > To: dev@flex.apache.org; > Subject:Re: [FlexJS] value.hasOwnProperty not working, maybe a bug > > Hi Josh, > > many thanks, your workaround works, but it's a shame that "hasOwnProperty" > can't be used and does not be reliable :( > >

Re: [FlexJS] value.hasOwnProperty not working, maybe a bug

2017-01-07 Thread Josh Tynjala
Are you testing a release build? Remember that Closure compiler renames member variables, so using a string to check if they exist won't work. It can be frustrating, I know. To this day, I still wish that this drastic renaming with Closure hadn't been the default we chose. It breaks a number of co

Re: [FlexJS] How to add html content?

2017-01-04 Thread Josh Tynjala
I think "Insecure" works better because you can see that it's potentially dangerous when you use it. "Trusted" could be more easily mistaken for a good thing that you don't need to worry about. - Josh On Wed, Jan 4, 2017 at 11:21 AM, OmPrakash Muppirala wrote: > Before we lose context, I want a

Re: [FLEXJS] New Default Component Set (was Re: [FlexJS, MDL] Why binding is not working in MDL example)

2017-01-03 Thread Josh Tynjala
I like Express too! - Josh On Jan 3, 2017 10:31 AM, "Peter Ent" wrote: > I think "Express" isn't a bad name for this. It implies that you can get > something running quickly. > > Another name I thought of was "Star" (FlexJS Star). > > A third choice might be "Prime", meaning the main one to use

Re: MDL => Material Design Components for web

2017-01-02 Thread Josh Tynjala
Here's what "All Components" links to in the readme. Seems that they don't have a nice website with a list of components and docs for each one yet, but this should give you an idea. https://github.com/material-components/material-components-web/tree/master/packages I get the impression that it's

MDL => Material Design Components for web

2017-01-01 Thread Josh Tynjala
Just a heads up for Carlos and others, in case it was missed. The readme for MDL now says that the project will not be actively developed (beyond maintenance, like bug fixes) going forward: https://github.com/google/material-design-lite/blob/mdl-1.x/README.md The successor is going to be the new

Re: Happy New Year 2017

2016-12-31 Thread Josh Tynjala
Happy New Year to you too, Carlos! Excellent work on initiating the MDL integration and for making it one of the particularly exciting parts of what's coming up in the next version. It's great to see a few people contributing or talking about doing it soon. This effort has strong potential to attra

RE: [FlexJS] Slider valueChange not working

2016-12-30 Thread Josh Tynjala
Yishay and Piotr, It might help Carlos if you can open up the browser's developer tools when the demo fails and post any errors you see in the console. Even if he can't reproduce himself, a null reference or something at a specific line might be enough of a clue. - Josh On Dec 30, 2016 11:41 AM,

Re: AW: How to put an example online

2016-12-29 Thread Josh Tynjala
I can see it on my phone, and I'm pretty sure that I'm not logged in there. Nice looking example, by the way! That's the first time I've seen it. Good work on the MDL integration, everyone! - Josh On Dec 29, 2016 8:40 AM, "Alex Harui" wrote: > Can folks see this without logging in? > > https:/

Re: Starting fresh / new developers

2016-12-26 Thread Josh Tynjala
1. I think FlexJS would benefit from its own dedicated page on the main website that describes its benefits in a more polished, bite-sized form. Basically, more of a marketing page that keeps the architecture discussion limited to high-level bullet points. If someone really wants to dive in to the

Re: [FlexJS] ASF SonarQube available (Beta-Testing)

2016-12-26 Thread Josh Tynjala
I suspect that a big chunk of the duplicate code is related to the Basic and HTML projects. As I understand it, HTML was forked from Basic to try a different architecture approach, but a big portion of the code is still the same. - Josh On Mon, Dec 26, 2016 at 8:39 AM, Christofer Dutz wrote: >

Re: [FlexJS] parallel compilation now possible

2016-12-25 Thread Josh Tynjala
Good stuff. That static state definitely needed to go. Thanks for figuring out the refactor, Chris! - Josh On Dec 25, 2016 8:23 AM, "Christofer Dutz" wrote: > Hi Guys, > > I just pushed my changed to the compiler, which eliminate the usage of > some of the static variables for sharing compiler

Re: [FlexJS] Setting up FlexJS and MDL

2016-12-21 Thread Josh Tynjala
I found that these notes someone created in the Flex SDK about how to make Flash Builder recognize an SDK give a lot of good details: https://github.com/apache/flex-sdk/blob/master/ide/flashbuilder/README_integration_with_Adobe_FlashBuilder.txt They helped me get the Feathers SDK working in Flash

Re: [FlexJS] Updated Closure compiler from v20151015 to v20161201

2016-12-19 Thread Josh Tynjala
Hi Daniel, Please refer to this page for how to unsubscribe from the Apache Flex mailing lists: http://flex.apache.org/community-mailinglists.html - Josh On Mon, Dec 19, 2016 at 8:57 AM, Daniel Harfleet wrote: > Unsubscribe > > Sent from my iPhone > > > On 19 Dec 2016, at 1

Re: [FlexJS] Updated Closure compiler from v20151015 to v20161201

2016-12-19 Thread Josh Tynjala
Thanks, Om! - Josh On Sun, Dec 18, 2016 at 10:59 PM, OmPrakash Muppirala wrote: > On Sat, Dec 17, 2016 at 3:01 PM, Josh Tynjala > wrote: > >> If the NPM version downloads Closure compiler, it should switch to >> version v20161201. Similarly, Guava should be updated to ver

Re: [FlexJS] Updated Closure compiler from v20151015 to v20161201

2016-12-17 Thread Josh Tynjala
Maven in flex-typedefs, but your > changes build with Ant and Maven locally for me. > > -Alex > > On 12/16/16, 3:42 PM, "Josh Tynjala" wrote: > > >Hey folks, > > > >I updated flex-falcon to use a newer build of Closure compiler, > >specifica

[FlexJS] Updated Closure compiler from v20151015 to v20161201

2016-12-16 Thread Josh Tynjala
Hey folks, I updated flex-falcon to use a newer build of Closure compiler, specifically v20161201. This also required an update of the Guava dependency from v17.0 to v20.0. I have made the required changes to the dependencies for both Ant and Maven builds. An update to Closure compiler means that

Re: FlexJS via Installer - broken

2016-12-16 Thread Josh Tynjala
I just tested, and I was able to install FlexJS 0.7.0 with the Installer. - Josh On Fri, Dec 16, 2016 at 12:25 AM, OmPrakash Muppirala wrote: > I am unable to install any version if the FlexJS SDK. Looks like one of > the Falcon dependencies are broken. > > Known issue? > > Thanks, > Om >

Re: [FLEXJS] ASDoc App

2016-12-16 Thread Josh Tynjala
If IDEs show docs on hover or in completion while you're coding, it's usually from parsing the original ASDoc or some intermediate format (I think SWCs can include that DITA format that Alex was talking about). - Josh On Fri, Dec 16, 2016 at 11:58 AM, OmPrakash Muppirala wrote: > On Fri, Dec 16

Re: [FLEXJS] ASDoc App

2016-12-16 Thread Josh Tynjala
The Angular docs actually aren't static HTML. It looks like an Angular app! https://docs.angularjs.org/api/ng/function/angular.forEach If you view source on the page above, you can see that there's a Loading... placeholder and the real content is loaded dynamically. - Josh On Fri, Dec 16, 2016

Re: [FlexJS] Compilation error - difficult to debug

2016-12-15 Thread Josh Tynjala
I am currently working on updating Closure compiler in FalconJX. - Josh On Thu, Dec 15, 2016 at 9:54 AM, Alex Harui wrote: > If one of you is planning to work on this issue, please assign the JIRA to > yourself. Otherwise I will look into it. > > -Alex > > On 12/15/16, 3:33

Re: [FlexJS] Compilation error - difficult to debug

2016-12-15 Thread Josh Tynjala
Indeed, Chris, those aren't a waste of time, and no one would disagree with that. When the compiler errors with a stack trace, that's a serious bug and should be reported on JIRA. - Josh On Dec 15, 2016 3:09 AM, "Christofer Dutz" wrote: Hi Carlos, unfortunately this type of problem often orig

Re: [FlexJS] Compilation error - difficult to debug

2016-12-15 Thread Josh Tynjala
Indeed, Chris, those definitely aren't a waste of time, and no one would disagree with this. When the compiler errors with a stack trace, that's a serious bug and should be reported on JIRA ASAP. - Josh On Dec 15, 2016 3:09 AM, "Christofer Dutz" wrote: Hi Carlos, unfortunately this type of pr

Re: [FlexJS] Getting started code example snippets!

2016-12-15 Thread Josh Tynjala
- Josh On Dec 15, 2016 12:21 AM, "Evyatar Ben Halevi-Arbib" wrote: > Hey, > > Looking good, but I think these wiki pages must include a working example, > as it currently all seems only theoretical. > Good luck! > > Regards, > Evyatar > > On Thu, Dec 15

Re: [FlexJS] Removing bead

2016-12-14 Thread Josh Tynjala
Would it keep something in memory that should be garbage collected, though? - Josh On Dec 14, 2016 8:43 PM, "Alex Harui" wrote: > > > On 12/14/16, 1:30 PM, "piotrz" wrote: > > >Hi All, > > > >While I was moving forward with implementation of MdlColor bead I have > >found > >that UIBase class c

[FlexJS] Getting started code example snippets!

2016-12-14 Thread Josh Tynjala
share it sooner rather than later! Josh Tynjala

[FlexJS] Update Closure compiler?

2016-12-13 Thread Josh Tynjala
Hey all, I notice that the default Closure compiler version is 20151015. Can we update to a newer build? I think their externs have been updated, and it's good to be more up-to-date with those. I also discovered an interesting change related to how Closure compiler generates source maps. Right now

Re: Avoiding goog renaming

2016-12-12 Thread Josh Tynjala
ill preserve to configure the Closure compiler, it seems like a reasonable approach to me. - Josh On Mon, Dec 12, 2016 at 9:39 AM, Alex Harui wrote: > > > On 12/12/16, 9:13 AM, "Josh Tynjala" wrote: > > >Yeah, if we could make it work without creating a SWC, I think that wou

Re: Avoiding goog renaming

2016-12-12 Thread Josh Tynjala
re complex configuration, metadata is more like setting properties on an object: [Metadata(option1="true",option2="hello world")]. I've been meaning to ask you about this for a while, but I kept forgetting. - Josh On Mon, Dec 12, 2016 at 8:46 AM, Alex Harui wrote: > > >

Re: Avoiding goog renaming

2016-12-12 Thread Josh Tynjala
Yes, it should be that simple. If we could make the compc compiler able to (optionally) generate externs from ActionScript files somehow, that would make using third-party libraries easier. I think most developers would be more comfortable writing a few classes in ActionScript for a third-party lib

Re: Flex as an operating system

2016-12-08 Thread Josh Tynjala
Some historical context for this behavior: https://sourceforge.net/adobe/flexsdk/wiki/Marshall%20Plan/ - Josh On Dec 8, 2016 7:17 AM, "flex capacitor" wrote: > Was Flex going to be an operating system at some point? The way it's setup > allows you to load multiple applications into a system ma

Re: Click event issues in Android build

2016-12-08 Thread Josh Tynjala
It might help if you could provide some example code that demonstrates the issue on Android. If others can't easily run the code to reproduce on their own devices, we can only guess what might be wrong. By the way, have you tried connecting the debugger to the app while it's running on Android? Th

Re: [FALCONJX][FLEXJS} SWF Subclass (and other) Overrides

2016-12-06 Thread Josh Tynjala
sing it. - Josh On Tue, Dec 6, 2016 at 8:25 AM, Alex Harui wrote: > > > On 12/6/16, 8:06 AM, "Josh Tynjala" wrote: > > >It's a really big issue that all the Flash display list APIs show up in > >the > >completion list for FlexJS components. Peopl

Re: [FALCONJX][FLEXJS} SWF Subclass (and other) Overrides

2016-12-06 Thread Josh Tynjala
It's a really big issue that all the Flash display list APIs show up in the completion list for FlexJS components. People are going to get extremely (EXTREMELY!) frustrated that they can't tell at a glance which subset of properties is available in JS or not. - Josh On Tue, Dec 6, 2016 at 1:12 AM

Re: [FlexJS] last git code doesn't work as of 2016 NOV 29

2016-12-04 Thread Josh Tynjala
I am able to reproduce the error with get__MXMLDescriptor using the latest nightly. https://issues.apache.org/jira/browse/FLEX-35192 - Josh On Thu, Dec 1, 2016 at 9:20 AM, Alex Harui wrote: > OK. If it shows up again, file a JIRA issue with a test case. > > Thanks, > -Alex > > On 12/1/16, 3:0

[FlexJS] Unexpected TextButton word wrapping

2016-12-02 Thread Josh Tynjala
I noticed that the default behavior for a TextButton is kind of weird. Depending on how long the text is and how large the font size, it starts wrapping to the next line for no particular reason. You don't even need to set the width or max-width. This doesn't look great, and I found it unintuitive.

Re: [1/2] git commit: [flex-asjs] [refs/heads/develop] - SliderTrackView: ignore coercion of WrappedHTMLElement

2016-12-02 Thread Josh Tynjala
aeb79c3a38976a > Parents: 4e7c736 > Author: Josh Tynjala > Authored: Fri Dec 2 15:05:40 2016 -0800 > Committer: Josh Tynjala > Committed: Fri Dec 2 15:05:40 2016 -0800 > > -- > .../src/main/flex/org/

[FlexJS] Unclear exception when valuesImpl is not set in

2016-12-02 Thread Josh Tynjala
I'm trying to write some better beginner docs for FlexJS components this afternoon. I don't actually have any time to do this, but it absolutely needs to be done for the good of FlexJS so I'll try to get something started. Anyway, as a semi-beginner with the framework, I'm paying close attention to

Re: Snippets for FlexJS

2016-12-02 Thread Josh Tynjala
This just goes to show again that we need a dedicated page for each of the Basic components with simple examples of the component's most common tasks. Set the text on a button, and listen for some kind of click/tap event. Populate a list's data provider, listen for a selection change event, and cha

Re: [FlexJS] get rid of inline styles (was Re: [FlexJS]Layout problems)

2016-12-02 Thread Josh Tynjala
Alex's first point about using the same beads, but not subclassing sounds cleaner to me, Carlos. Kind of the same idea from the other day where all components should be possible to recreate from UIBase with the right set of beads. You should consider trying that out for MDL. - Josh On Dec 1, 2016

Re: How Apache manages FlexJS version in flex-sdk-description?

2016-12-01 Thread Josh Tynjala
It's impossible for us to put the real version number for FlexJS in the element because Flash Builder thinks 0.8.0 is not a valid version for a Flex SDK. We're basically tricking Flash Builder into thinking our SDK is Flex 4. Adobe no longer updates Flash Builder, so we can't convince them to add

Re: [FlexJS] allow "-" in ids

2016-11-30 Thread Josh Tynjala
Remember that an MXML object with an id becomes a member property of the class in Actionscript. Actionscript identifiers cannot contain the "-" character. If this were allowed by the compiler, the only way to access the property from Actionscript would need to be with bracket syntax: this["complex

Re: [FlexJS] className manipulation

2016-11-28 Thread Josh Tynjala
Yeah, js.swc exposes APIs that may not work in all browsers. Be careful what you use when you go low-level. At the same time, if someone isn't interested in IE9 at all, it wouldn't be a very good experience for them if we completely blocked those low-level APIs that are fully supported on more mod

Re: [FlexJS] className manipulation

2016-11-26 Thread Josh Tynjala
https://developer.mozilla.org/en-US/docs/Web/API/Element/classList classList should probably be used, when available. Basically, anything except IE9. - Josh On Nov 26, 2016 4:54 AM, "Carlos Rovira" wrote: > Hi. > > with CSS class we need to insert and remove class without affect the rest > of

Re: [FlexJS] List Structure

2016-11-23 Thread Josh Tynjala
> In fact, for every Basic component, we should try to prove that you can use composition to create the very same component from a UIBase. This explanation and the UIBase example code that follows it is probably good to bring up more frequently. I think it's better than a simple reminder that Basi

Re: Sublime Text and FlexJS

2016-11-23 Thread Josh Tynjala
asconfig.json has a "type" field that you can set to "lib" (if omitted, it defaults to "app"). asconfigc will use the appropriate compc compiler instead. - Josh On Nov 23, 2016 3:05 AM, "Harbs" wrote: > Cool. I’ll have to check that out. > > I have the VS Code extension building a project as we

Re: Node problems (was Re: [FlexJS]missing css)

2016-11-22 Thread Josh Tynjala
externs/child_process.js:114: WARNING - accessing name > child_process in externs has no effect. Perhaps you forgot to add a var > keyword? > module.exports = child_process; > ^ > On Nov 22, 2016, at 11:09 PM, Josh Tynjala wrote: > > > Yes, I probably should

Re: Node problems (was Re: [FlexJS]missing css)

2016-11-22 Thread Josh Tynjala
Yes, I probably should have made those automatically generated require() calls work similarly to "internal" classes that appear after the package block, where they end up being stored statically on the class in the generated JS instead of globally. The redeclared variable warnings should be safe to

Re: [FlexJS]missing css

2016-11-22 Thread Josh Tynjala
I've been meaning to create a JIRA issue for another MXML parsing issue that I recently discovered. If you have an un-closed XML comment

Re: [Bindable] and private setters (was Re: [Falcon])

2016-11-22 Thread Josh Tynjala
That works for me. I wonder if we can show a different error if there's a non-public setter. I remember being confused for a bit the first time I saw that error about the property being read-only. - Josh On Tue, Nov 22, 2016 at 10:01 AM, Alex Harui wrote: > > > On 11/22/16,

Re: [Bindable] and private setters (was Re: [Falcon])

2016-11-22 Thread Josh Tynjala
If they make the getter public and the setter private, it's probably on purpose. If the compiler then forces the setter to be public for [Bindable], it should at least tell them that something probably unexpected is happening. I think a warning makes sense. [Bindable(eventName)] is definitely the

Re: [Bindable] and private setters (was Re: [Falcon])

2016-11-22 Thread Josh Tynjala
Perhaps Falcon should have a specific compiler error or warning that says that setters must be public when using [Bindable]. I assume that the current error is kind of generic, so something more specific would help make it clear what's wrong and how to fix it. - Josh On Mon, Nov 21, 2016 at 9:48

Re: Newb making mxmlc unhappy: -define's not going through

2016-11-21 Thread Josh Tynjala
\""; Basically, anything that isn't a boolean or a number probably needs to be quoted like this. - Josh On Mon, Nov 21, 2016 at 3:54 PM, Josh Tynjala wrote: > Actually, I was mistaken. To define a string constant, it needs to be in > one of the following formats: > > -define

Re: Newb making mxmlc unhappy: -define's not going through

2016-11-21 Thread Josh Tynjala
; [hi,josh- how goes it] > > % foo=hi,'josh- how goes it' > % echo [${foo}] > [hi,josh- how goes it] > > % foo='hi,"josh- how goes it"' > % echo [${foo}] > [hi,"josh- how goes it”] > > % foo=“hi,'josh- how goes it'"

Re: Newb making mxmlc unhappy: -define's not going through

2016-11-21 Thread Josh Tynjala
t; > > There’s no difference in behaviour. > > Keep in mind, it’s not even registering that CONFIG::AIR is set to true, > nor is it complaining about my command line format. > > =-ddt-> > > > On Nov 21, 2016, at 2:31 PM, Josh Tynjala wrote: > > > &g

Re: Newb making mxmlc unhappy: -define's not going through

2016-11-21 Thread Josh Tynjala
> '-define=CONFIG::GAME_NAME,A Name With Spaces In It' I suspect that the opening single quote should be in a different location.. Try putting it after the comma. - Josh On Mon, Nov 21, 2016 at 2:22 PM, Dave Taylor wrote: > Hi, my name’s Dave. This will likely sound backwards, but I’m migrati

Re: [FlexJS, MDL] Help with MDL

2016-11-18 Thread Josh Tynjala
n null, which is internal to VSCode. - Josh On Fri, Nov 18, 2016 at 1:22 PM, OmPrakash Muppirala wrote: > Maybe you can share your relevant config files so I can just copy them and > see if they work? > > Thanks, > Om > > On Fri, Nov 18, 2016 at 1:07 PM, Josh Tynjala > wrote: &

Re: [FlexJS, MDL] Help with MDL

2016-11-18 Thread Josh Tynjala
look at the windows build, > that would be great as well. > I would like to get into some MD action myself :-) > I have some ideas on the Table component that I would like to make it into > the library. > > Thanks, > Om > > On Fri, Nov 18, 2016 at 11:35 AM, Josh Tynjala

Re: [FlexJS, MDL] Help with MDL

2016-11-18 Thread Josh Tynjala
I'm almost ready to release a build of the VSCode extension that supports MXML. I finished up the most critical features earlier this week. I just need to put on some finishing touches. Next week is the US Thanksgiving holiday, and I have family visiting all week, so I may not have time to look at

Re: [FlexJS]Promises

2016-11-17 Thread Josh Tynjala
The compiler outputs ES5 syntax. You don't need to use ES6 syntax to use ES6 APIs, though. - Josh On Thu, Nov 17, 2016 at 1:46 PM, Alex Harui wrote: > > > On 11/17/16, 11:21 AM, "Harbs" wrote: > > >> It looks like Promise does implement Ithenable. > >Yes. I know. > > > >I did not word that ver

Re: [FlexJS]Promises

2016-11-16 Thread Josh Tynjala
Based on that really strange @template tag, Object is definitely the correct response from externc. Google seems to be doing something advanced there that I'm not even sure is documented. I also don't think we want to try to parse that mess. If we want it to return IThenable or something, then we

Re: [FlexJS]Promises

2016-11-16 Thread Josh Tynjala
And here's the source for the Promise class in the Flex SDK: https://git-wip-us.apache.org/repos/asf?p=flex-sdk.git;a=blob;f=frameworks/projects/apache/src/org/apache/flex/promises/Promise.as;h=ef39926e03bc9c58a0b41d2d0e00c539659fd752;hb=HEAD I think it may need some updates to support stuff like

Re: [FlexJS] Compiler stack trace in nightly related to Closure library

2016-11-11 Thread Josh Tynjala
Okay, I committed a fix that I think will work for all three cases. - Josh On Thu, Nov 10, 2016 at 5:20 PM, Alex Harui wrote: > > > On 11/10/16, 4:02 PM, "Josh Tynjala" wrote: > > >Used the installer to get the nightly. The compiler appears to be unable > >t

[FlexJS] Compiler stack trace in nightly related to Closure library

2016-11-10 Thread Josh Tynjala
Used the installer to get the nightly. The compiler appears to be unable to find Closure library. I don't have the closure-lib argument set because I want to use the default, but the call to getJarThatContainsClasspathResources() appears to return null. Using Falcon codebase: /Users/joshtynjala/De

Re: [FlexJS/Falcon] Build concerns

2016-11-07 Thread Josh Tynjala
ler from a downloaded sdk or the compiler from maven in .m2 > repository. So people could choose one flavor or another. Could this be > possible? > > thanks > > > > 2016-11-07 15:37 GMT+01:00 Josh Tynjala : > > > The only build that happens is triggered by tasks.json. I

Re: [FlexJS] Supporting classes added to window

2016-11-07 Thread Josh Tynjala
engine check window if a global is > not defined? > > On Nov 8, 2016, at 12:44 AM, Harbs wrote: > > > I’m pretty sure window is required here, but I’ll check. > > > > On Nov 8, 2016, at 12:21 AM, Josh Tynjala wrote: > > > >> You can usually omit &quo

Re: [FlexJS] Supporting classes added to window

2016-11-07 Thread Josh Tynjala
> > > /** > > * @const > > * @type {!jQuery} > > */ > > var $ = jQuery; > > > > /** > > */ > > jQuery.prototype.add = function(arg1, context) {}; > > > > So wouldn't CEP look like: > > > > > > /** > > * @constructor

Re: [FlexJS] Supporting classes added to window

2016-11-07 Thread Josh Tynjala
As far as I know, there's no way to do it without compiling a new SWC using the sources from js.swc and including your additional APIs. That's not necessarily a bad thing. In fact, I'd say it's a best practice. Ideally, I would have built node.swc to also include a subset of what's in js.swc, inst

Re: MDL Tweet

2016-11-07 Thread Josh Tynjala
Hey Piotr, That could be tricky. To debug the original ActionScript for the FlexJS components (while running the generated JavaScript), you would need to generate source maps somehow. The SDK doesn't generate any source maps by default and it also uses compiled SWCs. You probably need to add the F

Re: [FlexJS] Stuck with Images vía CSS

2016-11-07 Thread Josh Tynjala
clean the output folder. > > Thoughts? > -Alex > > On 11/7/16, 6:41 AM, "Josh Tynjala" wrote: > > >A flag that tells the compiler not to delete the contents of the output > >directory might be useful for other things too. I've sometimes wanted to > &

Re: [FlexJS] Stuck with Images vía CSS

2016-11-07 Thread Josh Tynjala
A flag that tells the compiler not to delete the contents of the output directory might be useful for other things too. I've sometimes wanted to copy files there and just leave them instead of recopying every time (or having to write a script to recopy). - Josh On Nov 7, 2016 12:12 AM, "Christofe

Re: [FlexJS/Falcon] Build concerns

2016-11-07 Thread Josh Tynjala
The only build that happens is triggered by tasks.json. Ideally, you'd use the asconfigc utility so that it uses the same compiler settings as the VSCode extension. However, you're free to run the compiler directly, or a build script like Maven or Ant instead. The extension looks for asconfig.json

Re: [FlexJS/Falcon] Build concerns

2016-11-06 Thread Josh Tynjala
When you mention building through a plugin the second time, which plugin are you referring to? I'm not sure that I follow. - Josh On Sun, Nov 6, 2016 at 1:32 PM, piotrz wrote: > Josh, > > I was thinking in that way, but let's say that I will run maven pom through > tasks.json - Will it means th

Re: [FlexJS/Falcon] Build concerns

2016-11-06 Thread Josh Tynjala
27;t get > quick info. > > 2016-11-06 21:26 GMT+01:00 Josh Tynjala : > > > Your asconfig.json looks good to me! Sometimes people follow my HTML > > tutorials, and then the options are wrong for using FlexJS components. > You > > have it configured correctly, thoug

Re: FlexJS node modules

2016-11-06 Thread Josh Tynjala
The compiler checks if a class has [JSModule] metadata. If you create a typedef SWC for the node-zip module, and include that metadata, the compiler will automatically add require() calls when you use the module. The externc utility in the SDK has a named-module option that you can use to specify

Re: [github] Authentication failed

2016-11-06 Thread Josh Tynjala
You should probably be pushing to Apache servers instead of Github. No need for Subversion, unless you're working on the website. - Josh On Nov 6, 2016 11:55 AM, "OK" wrote: > Hi, > I've tried to push the FontAwesome update to the release4.16.0 branch but I > end up with a auth/403 error. > I

Re: [FlexJS/Falcon] Build concerns

2016-11-06 Thread Josh Tynjala
Your asconfig.json looks good to me! Sometimes people follow my HTML tutorials, and then the options are wrong for using FlexJS components. You have it configured correctly, though. I guess something must be wrong or missing in the SDK. - Josh On Nov 6, 2016 9:30 AM, "piotrz" wrote: > Hi Josh,

Re: [FlexJS/Falcon] Build concerns

2016-11-06 Thread Josh Tynjala
What does your asconfig.json look like? - Josh On Nov 6, 2016 8:08 AM, "piotrz" wrote: > Chris, > > You are right. Typedefs swcs are in externs folder, so there is something > else missing which occurs that VS Code plugin do not recognize FlexJS as an > framework. > > Piotr > > > > - > Apac

Re: [FlexJS][Maven] Missing assets in target folder

2016-11-03 Thread Josh Tynjala
s like CSS and images. - Josh On Thu, Nov 3, 2016 at 4:55 PM, Alex Harui wrote: > > > On 11/3/16, 3:54 PM, "Josh Tynjala" wrote: > > >Could the -html-template be expanded to support more than a single file? > >More like the Flex SDK? That would be a good wa

Re: [FlexJS][Maven] Missing assets in target folder

2016-11-03 Thread Josh Tynjala
Could the -html-template be expanded to support more than a single file? More like the Flex SDK? That would be a good way to include images, CSS, and other stuff. - Josh On Thu, Nov 3, 2016 at 3:34 PM, Alex Harui wrote: > > > On 11/3/16, 3:10 PM, "carlos.rov...@gmail.com on behalf of Carlos Rov

Re: Installer.xml changes needed (was Re: New Flex SDK release)

2016-11-03 Thread Josh Tynjala
I also see a ZIP for the Windows SDKs on that page. The only EXE that I see is for the Windows AIR runtime, which isn't what the installer downloads. - Josh On Thu, Nov 3, 2016 at 11:13 AM, OmPrakash Muppirala wrote: > Hmm, I see a dmg for mac and a zip for windows (in the Flex Developers > sec

Re: MDL Tweet

2016-11-02 Thread Josh Tynjala
IntelliJ IDEA creates different types of breakpoints for different languages. An ActionScript breakpoint is designed to work with the SWF debugger only. If you use source maps, IntelliJ IDEA will understand them just fine, but it will still think that any breakpoints added in an ActionScript file a

Re: [FlexJS] Getting new warnings in ANTLR generation

2016-11-01 Thread Josh Tynjala
I tracked down an older commit from December 2015 when they were introduced: 3971196a4478853e1fd443e21e011ee1b8ea14c8 Alex, it looks like some changes that you made. Can you take a look? When I initially ran the Ant build, I didn't see any warnings. In order to get the Ant build to reproduce the

Re: [FlexJS] Optimizing the maven build ... success ...

2016-10-29 Thread Josh Tynjala
Nice. Good work, Chris! - Josh On Oct 29, 2016 12:37 PM, "Christofer Dutz" wrote: > Hi, > > the last few days I invested quite some time in optimizing the compilation > for Maven. > > So far the compile-times for the entire framework part including all > examples has dropped from 17:38 to 3:10

Re: [FlexJS] CSS (was Re: [FlexJS] Mobile Apps)

2016-10-24 Thread Josh Tynjala
way. > > > > Thanks > > > > just my 2... > > > > C. > > > > > > > > > > > > 2016-10-24 22:09 GMT+02:00 OmPrakash Muppirala : > > > > > +1 for implementing it based on beads. > > > > >

Re: [FlexJS] CSS (was Re: [FlexJS] Mobile Apps)

2016-10-24 Thread Josh Tynjala
I like Alex's suggestion of making beads for each variation you can add (fab, ripple, etc.). Feels like the FlexJS way to do it. - Josh On Oct 24, 2016 11:18 AM, "Carlos Rovira" wrote: Ok, I see, right now I'm using something like you say: while the base class selectors are asigned in AS3 MDL

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-10-19 Thread Josh Tynjala
"Despite the fact that we’re putting an emphasis on HTML performance, HTML objects are wrapped. (I think it’s a completely reasonable approach for HTML.) This causes none of the HTML APIs to leak through. The same should apply to Flash objects and any other future platforms we might have in the fut

Re: [FlexJS] enabled property

2016-10-18 Thread Josh Tynjala
You should be able to set the disabled property on your HTMLButtonElement or HTMLInputElement (or any other type of element that can be disabled) to true. This should have the same effect as setting the disabled attribute on the HTML tag. - Josh 2016-10-18 8:37 GMT-07:00 Carlos Rovira : > Hi Ale

Re: [FlexJS] Form component?

2016-10-17 Thread Josh Tynjala
Other JS frameworks use a real HTML form to preserve semantics. You can call preventDefault() on the submit event to stop the browser from sending data to the server and navigating to a new page. - Josh On Mon, Oct 17, 2016 at 8:59 AM, Alex Harui wrote: > If I understand this thread, we actuall

[FlexJS] A thread about FlexJS on the front page of Hacker News

2016-10-16 Thread Josh Tynjala
FYI https://news.ycombinator.com/item?id=12718330 - Josh

<    1   2   3   4   5   6   7   8   >