Re: Building FlexJS/Falcon

2016-03-19 Thread OmPrakash Muppirala
I figured out what the problem was.  I was using playerglobal.swc 21.0,
whereas 11.0 is hardcoded in compiler.tests build.xml.
I have applied a fix to the env-template.properties so others will
hopefully not run into this issue.

Thanks,
Om

On Sat, Mar 19, 2016 at 3:49 AM, Christofer Dutz <christofer.d...@c-ware.de>
wrote:

> Hi Om,
>
> You might have to wrap the environment variables with double quotes as
> they have spaces in them.
> Inside the build a lot of string-concatenation is done, and if they
> contain spaces they might mess up the command line.
>
> Chris
>
> 
> Von: omup...@gmail.com <omup...@gmail.com> im Auftrag von OmPrakash
> Muppirala <bigosma...@gmail.com>
> Gesendet: Samstag, 19. März 2016 11:30
> An: dev@flex.apache.org
> Betreff: Building FlexJS/Falcon
>
> >
> >
> > But compiler.jx.tests needs "Ant extern.swcs" first so I think it is more
> > like:
> >
> > ant clean (or wipe or wipe-all)
> > cd compiler
> > ant
> > cd ../compiler.tests
> > ant
> > cd ../compiler.jx
> > ant
> > cd ..
> > ant extern.swcs
> > cd compiler.jx.tests
> > ant
> >
>
> So, I am trying these steps to compile Falcon (to compile FlexJS)   In the
> ant compiler.tests step, it is failing with this error:
>
> Buildfile: C:\p\flexroot\git\flex-falcon\compiler.tests\build.xml
>
> download:
>
> prepare:
>
> junit-jar-check:
>
> junit-jar:
>
> main:
>
> compile.unit.tests:
> [mkdir] Created dir:
> C:\p\flexroot\git\flex-falcon\compiler.tests\classes
> [javac] Compiling 71 source files to
> C:\p\flexroot\git\flex-falcon\compiler.
> tests\classes
>
> unit.tests:
> [mkdir] Created dir:
> C:\p\flexroot\git\flex-falcon\compiler.tests\results
> [junit] Running
> org.apache.flex.compiler.internal.css.CSSArrayPropertyValueT
> ests
> [junit] environment property - FLEX_HOME = C:\p\flexroot\git\flex-sdk
> [junit] environment property - PLAYERGLOBAL_HOME = C:\Program
> Files\Adobe\Ad
> obe Flash Builder 4.7 (64
> Bit)\sdks\4.14.1_with_AIR_20Beta\frameworks\libs\playe
> r
> [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
> [junit] environment property - TLF_HOME = C:\p\flexroot\git\flex-tlf
> [junit] environment property - AIR_HOME = C:\Program Files\Adobe\Adobe
> Flash
>  Builder 4.7 (64 Bit)\sdks\4.14.1_with_AIR_20Beta
> [junit] environment property - FLASHPLAYER_DEBUGGER =
> C:\p\flexroot\flash_pl
> ayer_debugger\flashplayer_17_sa_debug.exe
> [junit] environment property - ASJS_HOME = C:\p\flexroot\git\flex-asjs
> [junit]
> C:\p\flexroot\git\flex-falcon\compiler.tests\temp\CSSArrayPropertyVa
> lueTests5327416715292952454.mxml(0): This tag could not be resolved to an
> Action
> Script class. It will be ignored.
> [junit]
> C:\p\flexroot\git\flex-falcon\compiler.tests\temp\CSSArrayPropertyVa
> lueTests4570695150001796803.mxml(0): This tag could not be resolved to an
> Action
> Script class. It will be ignored.
> [junit] Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed:
> 0.61
> 8 sec
>
> BUILD FAILED
> C:\p\flexroot\git\flex-falcon\compiler.tests\build.xml:103: Tests failed
>
> Total time: 5 seconds
>
>
> Any idea what's going wrong?
>
> Thanks,
> Om
>


Re: [2/2] git commit: [flex-falcon] [refs/heads/develop] - apparently, parseInt in JS should always specify the radix

2016-03-19 Thread OmPrakash Muppirala
On Wed, Mar 16, 2016 at 7:03 PM, Andy Dufilie <andy.dufi...@gmail.com>
wrote:

> The latest browsers do not support the octal case anymore so I'm inclined
> to say it should be left alone.  I doubt it would ever be an issue.
>

In that case, Alex's option 2 will ensure that it will work the same way
across Flash, older browsers and newer browsers.

Thanks,
Om


>
> On Tue, Mar 15, 2016 at 7:55 PM, Alex Harui <aha...@adobe.com> wrote:
>
> >
> >
> > On 3/15/16, 3:57 PM, "omup...@gmail.com on behalf of OmPrakash
> Muppirala"
> > <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
> >
> > >I think the problematic part is where strings start with "0".  There
> might
> > >be some browsers adding a radix of 8.  This is a supposedly deprecated
> > >feature.  There is no way of knowing what the browser would do by
> default
> > >in this case.
> >
> > OK, so this is all about radix=8?
> >
> > I guess that leaves us two choices:
> > 1) Do what Andy says and just make the second param optional and see if
> > anyone gets burned if they are assuming a leading 0 will not be
> translated
> > as radix=8 because that's how I understand Flash/AIR works
> > 2) Map parseInt to Language.parseInt and have Language.parseInt check for
> > leading 0 not followed by "x" and set radix = 10 to guarantee exact match
> > with Flash/AIR?
> >
> > Either one is fine with me.
> >
> > Thoughts?
> > -Alex
> >
> >
>


Building FlexJS/Falcon

2016-03-19 Thread OmPrakash Muppirala
>
>
> But compiler.jx.tests needs "Ant extern.swcs" first so I think it is more
> like:
>
> ant clean (or wipe or wipe-all)
> cd compiler
> ant
> cd ../compiler.tests
> ant
> cd ../compiler.jx
> ant
> cd ..
> ant extern.swcs
> cd compiler.jx.tests
> ant
>

So, I am trying these steps to compile Falcon (to compile FlexJS)   In the
ant compiler.tests step, it is failing with this error:

Buildfile: C:\p\flexroot\git\flex-falcon\compiler.tests\build.xml

download:

prepare:

junit-jar-check:

junit-jar:

main:

compile.unit.tests:
[mkdir] Created dir:
C:\p\flexroot\git\flex-falcon\compiler.tests\classes
[javac] Compiling 71 source files to
C:\p\flexroot\git\flex-falcon\compiler.
tests\classes

unit.tests:
[mkdir] Created dir:
C:\p\flexroot\git\flex-falcon\compiler.tests\results
[junit] Running
org.apache.flex.compiler.internal.css.CSSArrayPropertyValueT
ests
[junit] environment property - FLEX_HOME = C:\p\flexroot\git\flex-sdk
[junit] environment property - PLAYERGLOBAL_HOME = C:\Program
Files\Adobe\Ad
obe Flash Builder 4.7 (64
Bit)\sdks\4.14.1_with_AIR_20Beta\frameworks\libs\playe
r
[junit] environment property - PLAYERGLOBAL_VERSION = 11.1
[junit] environment property - TLF_HOME = C:\p\flexroot\git\flex-tlf
[junit] environment property - AIR_HOME = C:\Program Files\Adobe\Adobe
Flash
 Builder 4.7 (64 Bit)\sdks\4.14.1_with_AIR_20Beta
[junit] environment property - FLASHPLAYER_DEBUGGER =
C:\p\flexroot\flash_pl
ayer_debugger\flashplayer_17_sa_debug.exe
[junit] environment property - ASJS_HOME = C:\p\flexroot\git\flex-asjs
[junit]
C:\p\flexroot\git\flex-falcon\compiler.tests\temp\CSSArrayPropertyVa
lueTests5327416715292952454.mxml(0): This tag could not be resolved to an
Action
Script class. It will be ignored.
[junit]
C:\p\flexroot\git\flex-falcon\compiler.tests\temp\CSSArrayPropertyVa
lueTests4570695150001796803.mxml(0): This tag could not be resolved to an
Action
Script class. It will be ignored.
[junit] Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed:
0.61
8 sec

BUILD FAILED
C:\p\flexroot\git\flex-falcon\compiler.tests\build.xml:103: Tests failed

Total time: 5 seconds


Any idea what's going wrong?

Thanks,
Om


Re: [2/2] git commit: [flex-falcon] [refs/heads/develop] - apparently, parseInt in JS should always specify the radix

2016-03-15 Thread OmPrakash Muppirala
I think the problematic part is where strings start with "0".  There might
be some browsers adding a radix of 8.  This is a supposedly deprecated
feature.  There is no way of knowing what the browser would do by default
in this case.

Thanks,
Om

On Tue, Mar 15, 2016 at 3:33 PM, Andy Dufilie 
wrote:

> All these return the same result, so I don't think we need to specify the
> second param.  I think instead the extern file should be updated to make
> the second param optional.
>
> parseInt("0xFF00FF", 0)
> parseInt("0xFF00FF", undefined)
> parseInt("0xFF00FF")
>
>
> On Tue, Mar 15, 2016 at 4:52 PM, Alex Harui  wrote:
>
> >
> >
> > On 3/15/16, 1:49 PM, "Alex Harui"  wrote:
> >
> > >
> > >
> > >On 3/15/16, 1:35 PM, "Andy Dufilie"  wrote:
> > >
> > >>It's not a good idea to make built-in functions behave differently in
> JS
> > >>versus AS.
> > >>
> > >>It's not a required param in AS, and this change makes the following
> > >>evaluate to true in AS but false in the cross-compiled JS:
> > >>Number("0xFF00FF") == parseInt("0xFF00FF")
> > >
> > >Ah, good point.  I didn't think about that case.  So what do you suggest
> > >we do?  We could map it to a new org.apache.flex.utils.Language.parseInt
> > >that checks the string for a leading "0x" and calls JS parseInt with the
> > >right radix.   Or should we trust that all browsers we will actually use
> > >will "do the right thing"?
> >
> > Actually, reading the MDN article again, maybe we should set the second
> > param to 0 instead of 10?
> >
> > -Alex
> >
> >
> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Ob
> > jects/parseInt
> >
> >
>


Re: [2/2] git commit: [flex-falcon] [refs/heads/develop] - apparently, parseInt in JS should always specify the radix

2016-03-15 Thread OmPrakash Muppirala
>
> apparently, parseInt in JS should always specify the radix


I don't think that is the case.  ParseInt does this by default [1] :

If the radix parameter is omitted, JavaScript assumes the following:

   - If the string begins with "0x", the radix is 16 (hexadecimal)
   - If the string begins with "0", the radix is 8 (octal). This feature is
   deprecated
   - If the string begins with any other value, the radix is 10 (decimal)


[1] http://www.w3schools.com/jsref/jsref_parseint.asp

On Tue, Mar 15, 2016 at 10:22 AM,  wrote:

> apparently, parseInt in JS should always specify the radix
>
>
> Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
> Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/46d54f82
> Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/46d54f82
> Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/46d54f82
>
> Branch: refs/heads/develop
> Commit: 46d54f829d026f55359e652038d5135dd08378e4
> Parents: aa6de08
> Author: Alex Harui 
> Authored: Tue Mar 15 10:22:29 2016 -0700
> Committer: Alex Harui 
> Committed: Tue Mar 15 10:22:29 2016 -0700
>
> --
>  .../codegen/js/flexjs/TestFlexJSGlobalFunctions.java | 15 +++
>  .../internal/codegen/js/flexjs/JSFlexJSEmitter.java  | 11 +++
>  2 files changed, 26 insertions(+)
> --
>
>
>
> http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/46d54f82/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalFunctions.java
> --
> diff --git
> a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalFunctions.java
> b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalFunctions.java
> index aaa9c92..f1be070 100644
> ---
> a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalFunctions.java
> +++
> b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalFunctions.java
> @@ -90,6 +90,21 @@ public class TestFlexJSGlobalFunctions extends
> TestGoogGlobalFunctions
>  assertOut("var /** @type {Array} */ a = Array(['Hello',
> 'World'])");
>  }
>
> +@Test
> +public void testParseInt()
> +{
> +IVariableNode node = getVariable("var a:int = parseInt('1.8');");
> +asBlockWalker.visitVariable(node);
> +assertOut("var /** @type {number} */ a = parseInt('1.8', 10)");
> +}
> +
> +@Test
> +public void testParseIntTwoArgs()
> +{
> +IVariableNode node = getVariable("var a:int = parseInt('1.8',
> 16);");
> +asBlockWalker.visitVariable(node);
> +assertOut("var /** @type {number} */ a = parseInt('1.8', 16)");
> +}
>
>  @Override
>  @Test
>
>
> http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/46d54f82/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
> --
> diff --git
> a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
> b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
> index d4325a7..c4c72da 100644
> ---
> a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
> +++
> b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
> @@ -573,6 +573,17 @@ public class JSFlexJSEmitter extends JSGoogEmitter
> implements IJSFlexJSEmitter
> }
> }
> }
> +   else if (def != null &&
> def.getBaseName().equals("parseInt"))
> +   {
> +   IDefinition parentDef = def.getParent();
> +   if (parentDef == null)
> +   {
> +   if (nameNode instanceof IdentifierNode)
> +   {
> +   write(", 10");
> +   }
> +   }
> +   }
> }
>  }
>
>
>


Re: Apache FlexJS is now available as a npm package!

2016-03-13 Thread OmPrakash Muppirala
On Mar 13, 2016 7:23 AM, "Alex Harui" <aha...@adobe.com> wrote:
>
> Cool!  I will actually try it later.
>
> Would trying to allow nightly builds via NPM be good practice for a 0.6.0
> release?

Yes,  it would.   But there is a catch.  NPM insists on Semantic
Versioning.  It simply blocks me from publishing the same version twice.

We might want to add a -nightly.XX to the nightly builds name.
http://semver.org/#spec-item-9

>
> IMO, the page is probably going to need trademark symbols and attributions
> like we did for the SF event.

Will add that in the next rev.

Thanks,
Om

>
> Thanks,
> -Alex
>
> On 3/13/16, 1:48 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >Install via npm as: npm install flexjs -g
> >
> >Package listing, Readme and usage details are here:
> >https://www.npmjs.com/package/flexjs
> >
> >Please go through this page and let me know if there are some changes
> >still
> >need to be made.
> >
> >The code for the npm packager/installer is here:
> >
> >https://github.com/apache/flex-utilities/tree/develop/npm-flexjs
> >
> >P.S. I am ready for the FlexJS 0.6 release.
> >
> >Thanks,
> >Om
>


Apache FlexJS is now available as a npm package!

2016-03-13 Thread OmPrakash Muppirala
Install via npm as: npm install flexjs -g

Package listing, Readme and usage details are here:
https://www.npmjs.com/package/flexjs

Please go through this page and let me know if there are some changes still
need to be made.

The code for the npm packager/installer is here:

https://github.com/apache/flex-utilities/tree/develop/npm-flexjs

P.S. I am ready for the FlexJS 0.6 release.

Thanks,
Om


Re: LAST CALL] Release FlexJS/FalconJX 0.6.0

2016-03-11 Thread OmPrakash Muppirala
On Mar 11, 2016 8:49 AM, "Alex Harui"  wrote:
>
>
>
> On 3/10/16, 11:49 PM, "Justin Mclean"  wrote:
>
> >Hi,
> >
> >Is there a dummy/test release to look at so the LICENSE/NOTICE, release
> >notes etc etc can be checked?
>
> There are the nightly builds.  I haven't worked on RELEASE_NOTES or
> double-checked LICENSE and NOTICE yet, but the more eyes on it sooner, the
> better off we are.
>
> I'm wondering if we need to have a release branch.  I don't think there is
> anything due to land in the develop branch that "shouldn't" go out in
> these releases.  It saves time by not having to set up release branches
> and merge them back in.

I think we should follow the tried and tested release process no matter
what.   Otherwise, IMHO it would set a bad precedent.

Thanks,
Om

>
> -Alex
>


Re: [DRAFT] Apache Flex March 2015 Board Report

2016-03-09 Thread OmPrakash Muppirala
On Wed, Mar 9, 2016 at 12:30 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 3/9/16, 12:11 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >Just a few notes:
> >
> >1.  I see several releases that did not happen in the last quarter.  Is
> >that necessary?
>
> We've been doing this for several reports.  The board likes to see the
> latest release date and because we have several releases, I list them all.
>  IMO, it makes us look like an active project and makes us think about if
> any release is getting too stale.
>
> >2.  I would like to see a note about work towards flexjs npm module
>
> Will add.
>
> >3.  The numbers look okay to me.  For TDF, I'd say get the numbers just
> >for
> >this quarter.  If you get the uniques, they will be only for the date
> >range
> >you specify.
>
> Not sure what you meant here.  I'm not sure how much the board cares about
> TDF traffic.  It was a useful data point when TDF was a recent release,
> but now I'm wondering if it is worth reporting at all.  The 65,000 number
> is for the uniques since the first TDF release.  Should the numbers for a
> quarter be the uniques or not and why will the board care?  How does TDF
> traffic today help us gauge the health of the project?
>

Okay I see what you mean.  Unless they will go back and see the previous
report's numbers, it is better if we make it easier and say - XXX hits
since release.
I think it is a pretty good indicator because it is our kitchen sink app,
which folks would be most likely want to see if they are interested in the
product.


>
> >4.  Most importantly, can we get some feedback on what the Board has to
> >say
> >about the report and Apache Flex project?  Would be nice to see this
> >feedback shared with the community.  Right now, the board meetings are a
> >bit of a black box.
>
> Hmm.  I wonder if board comments are public or if I have to ask first?
>

I think it's best to ask first.


> Any actionable responses result in some email from me on the dev@ list at
> some point in time.  The two comments on the last report were about using
> JIRA to track any code adoptions, and that one board member liked the
> format of the report.
>
>
I guess what I am trying to see if the board has any suggestions or
feedback for us as a whole.  It would be nice for the community to see what
the ASF actually thinks about this project and its health.

Thanks,
Om


> -Alex
>
>


Re: [DRAFT] Apache Flex March 2015 Board Report

2016-03-09 Thread OmPrakash Muppirala
Just a few notes:

1.  I see several releases that did not happen in the last quarter.  Is
that necessary?
2.  I would like to see a note about work towards flexjs npm module
3.  The numbers look okay to me.  For TDF, I'd say get the numbers just for
this quarter.  If you get the uniques, they will be only for the date range
you specify.
4.  Most importantly, can we get some feedback on what the Board has to say
about the report and Apache Flex project?  Would be nice to see this
feedback shared with the community.  Right now, the board meetings are a
bit of a black box.

Thanks,
Om

On Wed, Mar 9, 2016 at 11:45 AM, Alex Harui  wrote:

> No comments?  I'm going to post it later today.
>
> If I'm doing this right (I'm new to using GA):
>
> -Latest analytics include a little over 1000 hits per day on the
> website during the work week
>
> -There were almost 3000 installs of Apache Flex 4.15.0 since its
> release in January.
>
> -Almost 65,000 people have run the Tour De Flex application
>
>
> Note that 65,000 is a smaller number than last reports.  I think we might
> have made a mistake and added quarterly numbers to past reports, but
> unique page views in a quarter might overlap unique page views from the
> prior quarter?  Instead, I got the unique page views since 8/1/14 which is
> the month we released TDF.  Do we even need to report this?  Might be
> better to drop it until the number surpasses the last reported number
> (83,000).
>
> Thanks,
> -Alex
>
> On 3/7/16, 9:32 PM, "Alex Harui"  wrote:
>
> >Hi folks,
> >
> >Time for another board report (actually a little behind schedule since
> >they want it by Wednesday).
> >
> >Please review and comment.
> >
> >Thanks,
> >-Alex
> >--
> >
> >Apache Flex is an application framework for easily building Flash-based
> >applications for mobile devices, the browser and desktop.
> >
> >RELEASES
> >-Apache Flex SDK 4.15.0 was released on 1/9/16.
> >
> >-Apache FlexJS 0.5.0 was released on 11/14/15.
> >-Apache Flex FalconJX 0.5.0 was released on 11/14/15.
> >-Apache Flex BlazeDS 4.7.2 was released on 11/16/15.
> >-Apache Flex Tour De Flex Component Explorer 1.2 was released on 11/28/14.
> >-Apache Flex Tool API 1.0.0 was released on 11/20/14
> >-Apache Flex Squiggly 1.1 was released on 10/26/14
> >-Apache Flex Installer 3.2.0 was released on 6/23/15.
> >
> >
> >ACTIVITY
> >The past three months saw the release of Apache Flex SDK 4.15.0.  Bug fix
> >activity continues on even after the release.  There seems to be gradually
> >increasing interest in FlexJS, a version of Flex that is independent from
> >the Adobe Flash Platform.  We continue to see new names with new
> >questions.  Some potential committers are hopefully among them.  Three
> >members of the PMC are hosting a FlexJS education and training event in
> >San Francisco on April 4. Work on Maven integration continues.
> >
> >3 PMC members had presentations accepted for ApacheCon NA.  The Flex
> >community tried to coordinate a Client Track for ApacheCon with folks from
> >the Cordova community, but apparently the Linux Foundation wasn't
> >interested in having such a track since some presentations were rejected.
> >
> >A revamp of the flex.a.o website is underway.  It isn't ready for branding
> >review just yet.
> >
> >CODE ADOPTION
> >In the prior report we discussed the adoption of non-ASF code bases that
> >are already licensed under ALv2.  I think the community will eventually
> >undertake one or more of the adoptions utilizing advice from the board but
> >it didn't happen this quarter simply from lack of a volunteer to make it
> >happen.
> >
> >COMMUNITY
> >-Andy Dufilie was added as a committer.
> >-No new PMC members this quarter.
> >-Last PMC addition was Josh Tynjala on Wed Sep 16 2015
> >
> >-A few PMC members were nominated for ASF membership.
> >-Latest analytics include a little less than XXX hits per day on the
> >website during the work week (less on weekends).
> >-There were more than XXX installs of Apache Flex 4.15.0 since its
> >release in January.
> >-Almost  people have run the Tour De Flex application.  Tour De Flex
> >is a set of examples folks use to learn how to develop Flex applications.
> >
> >TRADEMARKS
> >-In the last report, we reported that  a company is promoting a software
> >product called Flex that appears to be related to themes/styles for
> >website visuals. Despite several attempts to contact them, they have not
> >responded.  We will start a thread on trademarks@ shortly to determine
> the
> >next steps.
> >-A trademark issue with an com.br website was handled and closed.
> >
> >
> >
> >
>
>


Re: ApacheCon NA 2016

2016-03-05 Thread OmPrakash Muppirala
Yes, my talk - Object Oriented Programming for the Web using Apache FlexJS
has been accepted as well.  I think March 8th is when they will be
releasing the schedule details.

Thanks,
Om

On Sat, Mar 5, 2016 at 4:20 PM, Justin Mclean 
wrote:

> Hi,
>
> Looks like talks have started being accepted.  All 3 of my submissions got
> accepted so Flex wise you can come along and hear me give a talk on Flex
> mobile applications.
>
> I don’t know how the talks are being organised track wise I guess we have
> to wait a few days to find that out and the official schedule released. [1]
>
> Anyone else got their talk accepted or is planning on going?
>
> Thanks,
> Justin
>
> 1.
> http://events.linuxfoundation.org/events/apachecon-north-america/program/http--eventslinuxfoundationorg-events-apachecon-north-america-program-cfp


Re: Apache Flex website reviewed!

2016-03-03 Thread OmPrakash Muppirala
Lol.  We should contact him and ask him to fix the attributions ;-)

On Thu, Mar 3, 2016 at 3:40 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 3/3/16, 3:26 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >Someone did a branding review of our flex.apache.org website.  It
> >generally
> >has positive comments.
> >
> >
> https://communityovercode.com/2016/02/what-is-apache-flex-website-branding
> >-review/
> >
> >(Nice job Nick!)
>
> Interesting.  Didn't the author fail to conform to branding requirements
> for this post? ;-)
>
> -Alex
>
>


Apache Flex website reviewed!

2016-03-03 Thread OmPrakash Muppirala
Someone did a branding review of our flex.apache.org website.  It generally
has positive comments.

https://communityovercode.com/2016/02/what-is-apache-flex-website-branding-review/

(Nice job Nick!)

Thanks,
Om


Re: Forking the Falcon compiler for Starling/Feathers MXML generation

2016-03-01 Thread OmPrakash Muppirala
On Tue, Mar 1, 2016 at 2:24 PM, Alex Harui <aha...@adobe.com> wrote:

> That's a valid approach as well, but probably has the overhead of wrapping
> a lot of their classes to conform to IUIBase.


Do you mean work overhead?  That would be a one time thing, right?
Or runtime overhead? I doubt if porting over stuff to conform IUIBase would
cause runtime overhead...



> You would probably get a lot
> of other things like Binding and States for free though.
>

Yes, biggest advantage is you get MXML support for free since everything is
already set up.

Thanks,
Om


>
> -Alex
>
> On 3/1/16, 2:16 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >If I may, there might be a better approach by just doing it within the
> >FlexJS framework.  You should be able to create a
> >org.apache.flex.starling.Application.as class where a starling display
> >list
> >is used instead of the regular display list.  You can follow the pattern
> >that the org.apache.flex.jquery.Application.as or
> >org.apache.flex.createjs.Application.as follows.
> >
> >Once you have the basic application setup, you should be able to construct
> >individual components and use the Starling display list as you go.  You
> >might have to create a new version of UIBase (and possible other classes)
> >to use the starling display list instead.
> >
> >And theoretically, for each of these starling based classes, you could
> >have
> >the COMPILE::JS versions that do the same/similar thing on Canvas/WebGL.
> >Something along the lines of https://github.com/matrix3d/spriteflexjs
> >
> >Just a thought.  I might be missing something big here.
> >
> >Thanks,
> >Om
> >
> >On Tue, Mar 1, 2016 at 1:35 PM, Alex Harui <aha...@adobe.com> wrote:
> >
> >> I don't know what Josh did to MXMLC to get it to work for
> >> Starling/Feathers.  I have encouraged him in the past to try to work
> >> directly with the Falcon output.  IMO, MXMLC should be abandoned.
> >>
> >> Falcon supposedly has no real ties to any particular ActionScript
> >> framework.  MXMLC generated code that expected the Flex SDK to be
> >>around.
> >>
> >> Maybe the best place to start is with a simple Starling/Feathers app
> >> written with some MXML and AS.  Run it through Falcon with
> >> -mxml-children-as-data and see what you get.  It won't run right away,
> >>but
> >> will give us tangible issues to discuss.  In theory, you won't need to
> >> touch any of the JBurg stuff at all.  The MXML reduction does not use
> >> JBurg except for any AS code in event handlers and script blocks.
> >>
> >> What Falcon currently does is add one method and a few new properties to
> >> the subclass.  So for some MXML like
> >>
> >>  MyApp.mxml 
> >> 
> >>   
> >> 
> >>  MyApp.mxml 
> >>
> >> The effective output (because there is no generated AS output from
> >>Falcon)
> >> is something like:
> >>
> >> public class MyApp extends StarlingApp
> >> {
> >>public function MyApp()
> >>{
> >> super();
> >> generateMXMLAttributes([2, "width", false, 900, "height", false,
> >> 600]);
> >>}
> >>
> >>override public function get MXMLDescriptor():Array
> >>{
> >>return [1, FeathersComponent, 2, "id", false, "foo", "label",
> >> false, "bar"];
> >>}
> >> }
> >>
> >> IOW, any base-class for an MXML file must support:
> >>
> >> public function generateMXMLAttributes(data:Array):void
> >>
> >> public function get MXMLDescriptor():Array;
> >>
> >>
> >> Another property called mxmlsd is added for state-dependent nodes.  Not
> >> sure if you will need that.
> >>
> >> There might even be a better way to do this, and better names.  The
> >>reason
> >> it is this way is because I think it is better to have some requirements
> >> on the base classes of the framework rather than have the output assume
> >> other kinds of lifecycle calls: addElement vs addChild, when to
> >> instantiate child nodes, etc.  By passing in MXML as data, the framework
> >> gets to decide when to actually apply properties, map them to different
> >> things, etc.
> >>
> >> HTH,
> >> -

Re: Forking the Falcon compiler for Starling/Feathers MXML generation

2016-03-01 Thread OmPrakash Muppirala
If I may, there might be a better approach by just doing it within the
FlexJS framework.  You should be able to create a
org.apache.flex.starling.Application.as class where a starling display list
is used instead of the regular display list.  You can follow the pattern
that the org.apache.flex.jquery.Application.as or
org.apache.flex.createjs.Application.as follows.

Once you have the basic application setup, you should be able to construct
individual components and use the Starling display list as you go.  You
might have to create a new version of UIBase (and possible other classes)
to use the starling display list instead.

And theoretically, for each of these starling based classes, you could have
the COMPILE::JS versions that do the same/similar thing on Canvas/WebGL.
Something along the lines of https://github.com/matrix3d/spriteflexjs

Just a thought.  I might be missing something big here.

Thanks,
Om

On Tue, Mar 1, 2016 at 1:35 PM, Alex Harui  wrote:

> I don't know what Josh did to MXMLC to get it to work for
> Starling/Feathers.  I have encouraged him in the past to try to work
> directly with the Falcon output.  IMO, MXMLC should be abandoned.
>
> Falcon supposedly has no real ties to any particular ActionScript
> framework.  MXMLC generated code that expected the Flex SDK to be around.
>
> Maybe the best place to start is with a simple Starling/Feathers app
> written with some MXML and AS.  Run it through Falcon with
> -mxml-children-as-data and see what you get.  It won't run right away, but
> will give us tangible issues to discuss.  In theory, you won't need to
> touch any of the JBurg stuff at all.  The MXML reduction does not use
> JBurg except for any AS code in event handlers and script blocks.
>
> What Falcon currently does is add one method and a few new properties to
> the subclass.  So for some MXML like
>
>  MyApp.mxml 
> 
>   
> 
>  MyApp.mxml 
>
> The effective output (because there is no generated AS output from Falcon)
> is something like:
>
> public class MyApp extends StarlingApp
> {
>public function MyApp()
>{
> super();
> generateMXMLAttributes([2, "width", false, 900, "height", false,
> 600]);
>}
>
>override public function get MXMLDescriptor():Array
>{
>return [1, FeathersComponent, 2, "id", false, "foo", "label",
> false, "bar"];
>}
> }
>
> IOW, any base-class for an MXML file must support:
>
> public function generateMXMLAttributes(data:Array):void
>
> public function get MXMLDescriptor():Array;
>
>
> Another property called mxmlsd is added for state-dependent nodes.  Not
> sure if you will need that.
>
> There might even be a better way to do this, and better names.  The reason
> it is this way is because I think it is better to have some requirements
> on the base classes of the framework rather than have the output assume
> other kinds of lifecycle calls: addElement vs addChild, when to
> instantiate child nodes, etc.  By passing in MXML as data, the framework
> gets to decide when to actually apply properties, map them to different
> things, etc.
>
> HTH,
> -Alex
>
> On 3/1/16, 9:40 AM, "Michael Schmalle"  wrote:
>
> >Would I even need to fork it?
> >
> >I mentioned to Josh that I use MXML and Feathers extensively for these
> >audio apps I am about to release on Android which means I have a high
> >stake
> >in the tech at the moment.
> >
> >That tinkerer side of me feels I could do something about this but I am at
> >a loss of what I need to do to get the ball rolling.
> >
> >If I could get this project to work, this would be huge for the project
> >since the Falcon compiler could actually start to be used in production.
> >It
> >also means I would have a monetary reason to be able to contribute to the
> >development and learning deeper of the compiler.
> >
> >Alex, I need some advice man. :) Where would I even begin?
> >
> >Below is what I posted on Josh's Feathers SDK issue, just me talking to
> >myself.
> >
> >Mike
> >
> >"
> >
> >I'm putting this here just so if anybody else reads it and wants to chime
> >in.
> >
> >Background; I have worked extensively with the Falcon compiler mainly in
> >creating/writing the FalconJX compiler FlexJS uses to cross compile
> >AS/MXML
> >to JS.
> >
> >The problem I see is that I wrote a traversing framework that was a
> >visitor
> >and walker implementation which was an abstraction outside of the actual
> >AST Falcon produces when it parses AS3.
> >
> >The actual MXML compiler uses JBurg and is completely outside of my
> >knowledge base. I don't off the top of my head know of any hooks to extend
> >MXML generation or even how to start.
> >
> >I do understand "what" the original compiler does as far as setting up AS
> >to be compiled again so the theory is there for me but I am totally
> >lacking
> >in the vision from start to end of what I need to do to get Falcon to
> >produce different byte code since there is no code 

Re: flexjs eat json tilesets

2016-02-17 Thread OmPrakash Muppirala
On Feb 17, 2016 10:38 PM, "Alex Harui"  wrote:
>
> Hi Lizhi,
>
> Your email did not format well, but IMO, you are seeing expected behavior
> in the Google Closure Compiler optimization.  Unless you specify
> otherwise, the GCC will rename variables, properties, etc.  Using straight
> up JSON can be tricky in such situations.  You may have to specify and
> even use a class definition for the JSON data structure.

This is interesting.   Is there an example of this kind of pattern
somewhere in the FlexJS examples?

Thanks,
Om

>
> -Alex
>
> On 2/16/16, 6:59 PM, "lizhi"  wrote:
>
> >package {  import flash.display.Bitmap;import
flash.display.Loader;import
> >flash.display.LoaderInfo;  import flash.display.Sprite;import
> >flash.display.StageAlign;  import flash.display.StageScaleMode;
import
> >flash.events.Event;import flash.geom.Matrix;   import
flash.net.URLLoader;
> >import flash.net.URLRequest;   import flash.text.TextField;import
> >spriteflexjs.Stats;/**  * ...   * @author lizhi */
 public class TestTMX
> >extends Sprite {   private var tmxloader:URLLoader;
  private var
> >pngs:Array =
> >[];private var tmxobj:Object;  public function
TestTMX()
> >   {   tmxloader =
> >new URLLoader(new URLRequest("../../assets/tmx/sewers.json"));
> >tmxloader.addEventListener(Event.COMPLETE, tmxloader_complete);
> >stage.align = StageAlign.TOP_LEFT; stage.scaleMode =
> >StageScaleMode.NO_SCALE;   addChild(new Stats);
  }   private function
> >tmxloader_complete(e:Event):void   {
 tmxobj = JSON.parse(tmxloader.data
> >+
> >"");   loadNextTile(); }
   private function loadNextTile():void{
   if
> >(pngs.length >Loader;
> >loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
> >loader_complete);
> >var tset:Object = tmxobj.tilesets[pngs.length];
  var url:String =
> >tset.image;url =
url.slice(url.lastIndexOf(\/)+1);
> >loader.load(new URLRequest(../../assets/tmx/+url));
  }else
> >{
> >init();}   }
   private function loader_complete(e:Event):void  {
> >pngs.push(((e.currentTarget as LoaderInfo).content as
> >Bitmap).bitmapData);
> >loadNextTile();}   private
function init():void{   var tw:Number =
> >tmxobj.tilewidth;  var th:Number =
tmxobj.tileheight;  for each(var
> >layer:Object in tmxobj.layers) {   for (var
i:int = 0; i 
> >layer.data.length; i++ ) { var
id:int =
> >layer.data[i]; if(id>0){
> >var tset:Object = tmxobj.tilesets[0];
  var fg:int =
> >tset.firstgid;
> >var x:int = int(i % layer.width);
  var y:int = int(i /
> >layer.width);
> >var ttw:int = tset.tilewidth;
var tth:int = tset.tileheight;  var
> >numCols:int = tset.imagewidth/ttw;
   var tx:int = int((id-fg) %
> >numCols);
> >var ty:int = int((id - fg) / numCols);
> >graphics.beginBitmapFill(pngs[0],new
> >Matrix(1,0,0,1,x*tw-tx*ttw,y*th-ty*tth));
  graphics.drawRect(x * tw,
> >y *
> >th, tw, th);   }
   }   }   }   }}
> >and i can not find "tilesets" in the js-release/
> >
> >
> >
> >--
> >View this message in context:
> >
http://apache-flex-development.247.n4.nabble.com/flexjs-eat-json-tiles
> >ets-tp51581.html
> >Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: AW: [FALCONJX]Compiling Falcon with externs problems

2016-02-17 Thread OmPrakash Muppirala
On Tue, Feb 16, 2016 at 11:04 PM, Christofer Dutz  wrote:

> Ok ... if it's all about YOUR priorities I can wait
>

It is reasonable for him to get frustrated about having to work only on
uncool things (like build stuff)  I know many of us are like that.

In any case, I am scampering to finish up the npm flexjs package before the
April 4th FlexJS conference.  I truly believe this will help folks get off
the ground with FlexJS in minutes.

I would love to look at your slides at my own time instead of selecting one
day and trying to squeeze everything in it.  Would you be able to share
your presentations with us?


>
> I know I had Falcon building with Maven quite some time ago, but dropped
> the ball on that cause I had the crazy Idea about migrating everything to
> Antlr4 at the same time. I did create a JBurg Maven plugin and it is now
> possible to also do the JBurg stuff.
>
> But as long as things are as they are and Environment variables keep
> others from working ... I won't touch the thing (unless to bring it to
> Maven)
>
> At least I will not conrtribute a single line of code till then (and
> without Falcon being available as Maven artifacts, working on ASJS doesn't
> make any sense)
>

I suggest you use the Ant plugin for Falcon for now and create Falcon
artifacts to unblock yourself so that you can proceed with mavenizing
FlexJS first.  And then come back to Falcon.

I think Alex has already taken time off his list of priorities to fix the
FlexJS folder structure to be more Maven like - per your request.  We need
to work with each other and be more flexible, don't you agree?

Thanks,
Om


>
> Chris
>
> 
> Von: Alex Harui 
> Gesendet: Mittwoch, 17. Februar 2016 07:25
> An: dev@flex.apache.org
> Betreff: Re: AW: [FALCONJX]Compiling Falcon with externs problems
>
> On 2/16/16, 3:01 PM, "Christofer Dutz"  wrote:
>
> >Hi,
> >
> >these are exactly the type of problems I was so sick of :-( Probably I
> >was cursed by them more often, cause I didn't update my project that
> >often. How about we do the same update of the directory structure as with
> >some of the ASJS directories in Falcon too? This way we could make sure
> >all generated and compiled stuff is located underneath a "target"
> >directory and a simple delete would make sure that any legacy content is
> >removed.
>
> I've been pondering what Falcon should look like and how much work it will
> take to get there.  flex-asjs was relatively easy because it was
> essentially all AS producing SWCs and cross-compiled JS files.  Falcon has
> Eclipse configurations, Jburg, Jflex, etc.  Again, I am concerned about
> arriving at the San Francisco event with no new features, just a bunch of
> files moved around.  Actually execution of the plan might need to wait
> until after SF, but I am ready to discuss what goes where now.
>
> >
> >And ... I am currently giving a 3-day Maven training for two insurance
> >companies ... so my tutorials and slides are fresh and up-to-date. Think
> >I'd be able to compress everything into a one day Maven bootcamp
> >crash-course. If one of my Talks is selected for ApacheCon, then I'd be
> >able to take the trip and I'd be glad to give a free Maven training, if
> >there is any Interest in this. I would specially be delighted to give
> >Alex and Om such a training so we could achieve a more common
> >understanding for the topic, which would definitely benefit the project
> >greatly cause we could actually start working in the same direction.
>
> Thanks for the offer, but again, it is a question of priorities.  How many
> days should I invest in learning build systems vs developing new features?
>  My preference would be to help reorganize the folders but let you do the
> maven implementation and try to learn as I need to instead of blocking a
> whole day right now.
>
> -Alex
>
>


Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-02-15 Thread OmPrakash Muppirala
Alex,

The way I am reading this thread, I don't think folks are asking you to
make the changes.  They are generally asking if it is okay to make these
kind of changes.  It would be good if you are okay with the changes since
you are one of the affected parties.

Thanks,
Om

On Mon, Feb 15, 2016 at 1:36 PM, Alex Harui  wrote:

>
>
> On 2/15/16, 1:32 PM, "Michael Schmalle"  wrote:
>
> >Alex, if I had time I wouldn't do it. :) I hate build stuff and this is
> >exactly why I set that template file up.
>
> Well, I'm glad it worked for you, and it worked for me, but now I am
> spending time trying to implement something else to make others happy.
> Yes, we want to make it easier for others to contribute, but I don't like
> it that it always falls on me to try to figure it out for others.
>
> -Alex
>
>


Re: AW: [ApacheCon NA] Whose going and what topics?

2016-02-09 Thread OmPrakash Muppirala
I've submitted my talk: "Object Oriented Programming for the Web using
Apache FlexJS".

Thanks,
Om

On Mon, Feb 8, 2016 at 1:23 PM, Alex Harui  wrote:

> I submitted my "FlexJS:  Apache's Structured Language, Cross-platform
> Solution for Clients" session.
>
> -Alex
>
> On 2/8/16, 1:19 PM, "Christofer Dutz"  wrote:
>
> >Ok ... so I just submitted two talks:
> >
> >- Building FlexJS applications with Maven
> >- Controlling Cyborgs with Apache Flex
> >
> >Don't forgett to post yours :-)
> >
> >Chris
> >
> >
> >-Ursprüngliche Nachricht-
> >Von: Christofer Dutz [mailto:christofer.d...@c-ware.de]
> >Gesendet: Freitag, 5. Februar 2016 00:34
> >An: dev@flex.apache.org
> >Betreff: AW: [ApacheCon NA] Whose going and what topics?
> >
> >Well I currently lay a lot of emphasis on the Ecmascript 4 factor.
> >Current JavaScript being EcmaScript 3.0 or 3.1 (which was renamed to 5.0
> >but has no real changes in it). Sort of "Write Ecmascript 4 without
> >breaking the internet" cause this was the major reason for not going down
> >the 4.0 road and that's exactly what we are doing now ... writing
> >Ecmascript 4 code having it cross compiled to 3.1 alias 5.0. I think its
> >worth mentioning this.
> >
> >Chris
> >
> >
> >Von: Alex Harui 
> >Gesendet: Donnerstag, 4. Februar 2016 19:24
> >An: dev@flex.apache.org
> >Betreff: Re: [ApacheCon NA] Whose going and what topics?
> >
> >On 2/4/16, 1:47 AM, "Justin Mclean"  wrote:
> >>
> >>The organiser it more likely to pick talks that are topical, dare I say
> >>fashionable, and will attract an audience so it does matter somewhat.
> >>They I believe make the final selection.
> >
> >What buzz words do we think are topical or fashionable?  Or maybe
> >controversial?
> >
> >I'm thinking of changing the title of my talk to include "cross-platform".
> > So maybe:
> >"FlexJS:  Apache's Structured Language, Cross-platform Solution for
> >Clients"
> >
> >
> >Thoughts?
> >-Alex
> >
>
>


Re: [FLEXJS] FlexJS Event: Monday April 4, 2016 in San Francisco

2016-02-09 Thread OmPrakash Muppirala
On Mon, Feb 8, 2016 at 8:53 PM, Alex Harui <aha...@adobe.com> wrote:

> Actually I just saw one thing:  It says "TECHNOLOGY, MOBILE".  Can we get
> more categories (Web, Desktop)?
>

They were the only relevant categories available.  Although I have added a
few custom tags now.

Thanks,
Om


>
> Thanks,
> -Alex
>
> On 2/8/16, 8:45 PM, "Alex Harui" <aha...@adobe.com> wrote:
>
> >Om,
> >
> >Looks ok. Thanks for choosing a registration service.
> >
> >-Alex
> >
> >On 2/8/16, 6:20 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> ><omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
> >
> >>Okay, looks like folks are able to register and/or follow the event.  I
> >>am
> >>going to go ahead and add more details before starting to publicize it
> >>more
> >>widely.  Please give me feedback on the page
> >>https://www.conferize.com/conferences/flexjs-world-tour---sf-bay-area at
> >>any time and I will make the appropriate changes.
> >>
> >>Thanks,
> >>Om
> >>
> >>On Mon, Feb 8, 2016 at 11:24 AM, OmPrakash Muppirala
> >><bigosma...@gmail.com>
> >>wrote:
> >>
> >>> I quickly created an event here:
> >>> https://www.conferize.com/conferences/flexjs-world-tour---sf-bay-area
> >>>
> >>> Can a couple of folks try to register (using LinkedIn, Twitter or
> >>> Facebook) and let's tweak it as needed.
> >>>
> >>> Once we figure out registration details, I will go in add more details.
> >>> Then we can start publicizing the event.
> >>>
> >>> Thanks,
> >>> Om
> >>>
> >>> On Mon, Feb 8, 2016 at 11:07 AM, OmPrakash Muppirala
> >>><bigosma...@gmail.com
> >>> > wrote:
> >>>
> >>>> If no one has objections, I will set up a Conferize event where folks
> >>>>can
> >>>> sign up.
> >>>>
> >>>> Thanks,
> >>>> Om
> >>>>
> >>>> On Mon, Feb 8, 2016 at 10:42 AM, Alex Harui <aha...@adobe.com> wrote:
> >>>>
> >>>>> It's on!  The conference room is booked and I've got my plane
> >>>>>tickets.
> >>>>> Even if you already said you will attend, please reply again to
> >>>>>confirm.
> >>>>>
> >>>>> The event will be held in the ATS Training Room at Adobe's San
> >>>>>Francisco
> >>>>> office located at 601 Townsend St.
> >>>>>
> >>>>> The current agenda is:
> >>>>>  9:30am Doors Open
> >>>>> 10:00am Introduction to FlexJS - Alex Harui
> >>>>> 11:00am Writing JavaScript in ActionScript - Omprakash Muppirala
> >>>>> 12:00pm - 5:00pm (or later) Hackathon/Hands-on Training/Open
> >>>>>Discussion
> >>>>>
> >>>>> There will be lunch as part of the afternoon session.  Impromptu
> >>>>> presentations on other aspects of FlexJS may be put together and
> >>>>> presented
> >>>>> in the afternoon as discussion topics arise.
> >>>>>
> >>>>> At the end of the morning sessions, you will have seen how FlexJS
> >>>>>works
> >>>>> and how you can use MXML and ActionScript to write applications that
> >>>>>run
> >>>>> in browser and as desktop and mobile apps with or without the
> >>>>>Flash/AIR
> >>>>> runtime.  And you will have an understanding of how ActionScript is
> >>>>>being
> >>>>> used to write JavaScript with greater developer productivity.  Did
> >>>>>you
> >>>>> know:  there are no longer any .js files in the FlexJS code base.
> >>>>>All
> >>>>> JavaScript we need is written in ActionScript and cross-compiled.  No
> >>>>> more
> >>>>> forgetting to type 'this.' or mis-typing a property name and finding
> >>>>>out
> >>>>> at run-time.
> >>>>>
> >>>>> At the end of the afternoon session, you will have installed the
> >>>>>FlexJS
> >>>>> SDK and written (at least) a simple application and, if interested,
> >>>>>set
> >>>>> up
> >>>>> the FlexJS development environment so you can contribute to the
> >>>>>future of
> >>>>> Flex.
> >>>>>
> >>>>> Hope to see you there.
> >>>>> -Alex
> >>>>>
> >>>>> PS:  If this event proves to be successful, we might stage other
> >>>>>events
> >>>>> in
> >>>>> other regions during the year.  Seattle is certainly a possibility.
> >>>>>
> >>>>>
> >>>>
> >>>
> >
>
>


Re: [FLEXJS] FlexJS Event: Monday April 4, 2016 in San Francisco

2016-02-08 Thread OmPrakash Muppirala
Okay, looks like folks are able to register and/or follow the event.  I am
going to go ahead and add more details before starting to publicize it more
widely.  Please give me feedback on the page
https://www.conferize.com/conferences/flexjs-world-tour---sf-bay-area at
any time and I will make the appropriate changes.

Thanks,
Om

On Mon, Feb 8, 2016 at 11:24 AM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> I quickly created an event here:
> https://www.conferize.com/conferences/flexjs-world-tour---sf-bay-area
>
> Can a couple of folks try to register (using LinkedIn, Twitter or
> Facebook) and let's tweak it as needed.
>
> Once we figure out registration details, I will go in add more details.
> Then we can start publicizing the event.
>
> Thanks,
> Om
>
> On Mon, Feb 8, 2016 at 11:07 AM, OmPrakash Muppirala <bigosma...@gmail.com
> > wrote:
>
>> If no one has objections, I will set up a Conferize event where folks can
>> sign up.
>>
>> Thanks,
>> Om
>>
>> On Mon, Feb 8, 2016 at 10:42 AM, Alex Harui <aha...@adobe.com> wrote:
>>
>>> It's on!  The conference room is booked and I've got my plane tickets.
>>> Even if you already said you will attend, please reply again to confirm.
>>>
>>> The event will be held in the ATS Training Room at Adobe's San Francisco
>>> office located at 601 Townsend St.
>>>
>>> The current agenda is:
>>>  9:30am Doors Open
>>> 10:00am Introduction to FlexJS - Alex Harui
>>> 11:00am Writing JavaScript in ActionScript - Omprakash Muppirala
>>> 12:00pm - 5:00pm (or later) Hackathon/Hands-on Training/Open Discussion
>>>
>>> There will be lunch as part of the afternoon session.  Impromptu
>>> presentations on other aspects of FlexJS may be put together and
>>> presented
>>> in the afternoon as discussion topics arise.
>>>
>>> At the end of the morning sessions, you will have seen how FlexJS works
>>> and how you can use MXML and ActionScript to write applications that run
>>> in browser and as desktop and mobile apps with or without the Flash/AIR
>>> runtime.  And you will have an understanding of how ActionScript is being
>>> used to write JavaScript with greater developer productivity.  Did you
>>> know:  there are no longer any .js files in the FlexJS code base.  All
>>> JavaScript we need is written in ActionScript and cross-compiled.  No
>>> more
>>> forgetting to type 'this.' or mis-typing a property name and finding out
>>> at run-time.
>>>
>>> At the end of the afternoon session, you will have installed the FlexJS
>>> SDK and written (at least) a simple application and, if interested, set
>>> up
>>> the FlexJS development environment so you can contribute to the future of
>>> Flex.
>>>
>>> Hope to see you there.
>>> -Alex
>>>
>>> PS:  If this event proves to be successful, we might stage other events
>>> in
>>> other regions during the year.  Seattle is certainly a possibility.
>>>
>>>
>>
>


Re: [FLEXJS] FlexJS Event: Monday April 4, 2016 in San Francisco

2016-02-08 Thread OmPrakash Muppirala
I quickly created an event here:
https://www.conferize.com/conferences/flexjs-world-tour---sf-bay-area

Can a couple of folks try to register (using LinkedIn, Twitter or Facebook)
and let's tweak it as needed.

Once we figure out registration details, I will go in add more details.
Then we can start publicizing the event.

Thanks,
Om

On Mon, Feb 8, 2016 at 11:07 AM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> If no one has objections, I will set up a Conferize event where folks can
> sign up.
>
> Thanks,
> Om
>
> On Mon, Feb 8, 2016 at 10:42 AM, Alex Harui <aha...@adobe.com> wrote:
>
>> It's on!  The conference room is booked and I've got my plane tickets.
>> Even if you already said you will attend, please reply again to confirm.
>>
>> The event will be held in the ATS Training Room at Adobe's San Francisco
>> office located at 601 Townsend St.
>>
>> The current agenda is:
>>  9:30am Doors Open
>> 10:00am Introduction to FlexJS - Alex Harui
>> 11:00am Writing JavaScript in ActionScript - Omprakash Muppirala
>> 12:00pm - 5:00pm (or later) Hackathon/Hands-on Training/Open Discussion
>>
>> There will be lunch as part of the afternoon session.  Impromptu
>> presentations on other aspects of FlexJS may be put together and presented
>> in the afternoon as discussion topics arise.
>>
>> At the end of the morning sessions, you will have seen how FlexJS works
>> and how you can use MXML and ActionScript to write applications that run
>> in browser and as desktop and mobile apps with or without the Flash/AIR
>> runtime.  And you will have an understanding of how ActionScript is being
>> used to write JavaScript with greater developer productivity.  Did you
>> know:  there are no longer any .js files in the FlexJS code base.  All
>> JavaScript we need is written in ActionScript and cross-compiled.  No more
>> forgetting to type 'this.' or mis-typing a property name and finding out
>> at run-time.
>>
>> At the end of the afternoon session, you will have installed the FlexJS
>> SDK and written (at least) a simple application and, if interested, set up
>> the FlexJS development environment so you can contribute to the future of
>> Flex.
>>
>> Hope to see you there.
>> -Alex
>>
>> PS:  If this event proves to be successful, we might stage other events in
>> other regions during the year.  Seattle is certainly a possibility.
>>
>>
>


Re: [FLEXJS] FlexJS Event: Monday April 4, 2016 in San Francisco

2016-02-08 Thread OmPrakash Muppirala
If no one has objections, I will set up a Conferize event where folks can
sign up.

Thanks,
Om

On Mon, Feb 8, 2016 at 10:42 AM, Alex Harui <aha...@adobe.com> wrote:

> It's on!  The conference room is booked and I've got my plane tickets.
> Even if you already said you will attend, please reply again to confirm.
>
> The event will be held in the ATS Training Room at Adobe's San Francisco
> office located at 601 Townsend St.
>
> The current agenda is:
>  9:30am Doors Open
> 10:00am Introduction to FlexJS - Alex Harui
> 11:00am Writing JavaScript in ActionScript - Omprakash Muppirala
> 12:00pm - 5:00pm (or later) Hackathon/Hands-on Training/Open Discussion
>
> There will be lunch as part of the afternoon session.  Impromptu
> presentations on other aspects of FlexJS may be put together and presented
> in the afternoon as discussion topics arise.
>
> At the end of the morning sessions, you will have seen how FlexJS works
> and how you can use MXML and ActionScript to write applications that run
> in browser and as desktop and mobile apps with or without the Flash/AIR
> runtime.  And you will have an understanding of how ActionScript is being
> used to write JavaScript with greater developer productivity.  Did you
> know:  there are no longer any .js files in the FlexJS code base.  All
> JavaScript we need is written in ActionScript and cross-compiled.  No more
> forgetting to type 'this.' or mis-typing a property name and finding out
> at run-time.
>
> At the end of the afternoon session, you will have installed the FlexJS
> SDK and written (at least) a simple application and, if interested, set up
> the FlexJS development environment so you can contribute to the future of
> Flex.
>
> Hope to see you there.
> -Alex
>
> PS:  If this event proves to be successful, we might stage other events in
> other regions during the year.  Seattle is certainly a possibility.
>
>


Re: AW: AW: [ApacheCon NA] Whose going and what topics?

2016-02-03 Thread OmPrakash Muppirala
On Mon, Feb 1, 2016 at 5:31 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 2/1/16, 11:17 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >On Mon, Feb 1, 2016 at 8:44 AM, Alex Harui <aha...@adobe.com> wrote:
> >
> >> 12 days to go.  I pinged the Cordova person this morning.  I think it
> >> might be time to send an email to committers@ to see if there is more
> >> interest in a Client track from other groups.  Thoughts?
> >>
> >
> >+1
> >
> >
> >>
> >> I'm thinking of proposing a talk called something like: "FlexJS and
> >> ActionScript:  Apache's Structured Language Solution for Clients".  I
> >> would try to show how we can build web apps, desktop apps and mobile
> >>apps
> >> all with or without Flash.
> >>
> >
> >+1
> >
> >I was thinking of doing something along the lines of 'True OOP on the web
> >using Apache FlexJS and Apache Flex Falcon'.  I want to cover the basics
> >of
> >Classes, Interfaces, Design Patterns, Web Components, Shadow DOM, etc.
> >using ActionScript3.
> >
> >I am open to suggestions about this talk, including a better title ;-)
>
> Sounds like a good topic.
>
> Given the bias of ApacheCon to server-side folks, we should probably try
> to think of titles that will make them curious enough to attend with hope
> that they'd go back and tell their client-side people to check it out.
> I'm not really expecting this client track to draw a new client-side
> demographic to ApacheCon, but I could certainly be wrong and would love to
> be wrong about it.
>
> For example, I seriously considered the title of my talk to be "What?  You
> are still coding in JavaScript?"  And yours could be "Anything you can do
> in JavaScript, you can do with FlexJS and ActionScript".
>

Except that you can't do everything in AS3 that you can do in JS.  You
can't create global variables in AS3 :-)

In any case, any updates on the Client Track?  Is there a discussion going
on somewhere?

Thanks,
Om


>
> -Alex
>
>


Re: [ApacheCon NA] Whose going and what topics?

2016-02-03 Thread OmPrakash Muppirala
On Wed, Feb 3, 2016 at 5:59 PM, Justin Mclean 
wrote:

> Hi,
>
> > I think it would.  Would you be open to doing a talk on Flex Mobile
> > instead?
>
> Could do, most of the Flex mobile stuff I’ve done was several years ago so
> I’m a bit rusty in that department.
>
> Perhaps someone else with more recent experience could submit something?
>

You (or anyone else) can feel free to re-purpose these slides from my
ApacheCon 2015 presentation:
http://www.slideshare.net/bigosmallm/flex-mobile-apachecon-2015


>
> Two talks are usually doable, but several times I’ve got 4 (out of 4
> submitted) and that's a bit too much.
>

More than one is too much stress for me :-)

Thanks,
Om


>
> Thanks,
> Justin


Re: AW: AW: [ApacheCon NA] Whose going and what topics?

2016-02-03 Thread OmPrakash Muppirala
Okay, you can't do this in AS3 :-)

function foo()
{
  var var1 = "hello";
  var2 = "world"; // global variable
}

In other words, AS3 is always in "use strict" mode!

On Wed, Feb 3, 2016 at 6:07 PM, Josh Tynjala <joshtynj...@gmail.com> wrote:

> Can't you?
>
> package
> {
> public var globalVar:String = "global";
> }
>
> - Josh
>
> On Wed, Feb 3, 2016 at 6:34 PM, OmPrakash Muppirala <bigosma...@gmail.com>
> wrote:
>
> > On Mon, Feb 1, 2016 at 5:31 PM, Alex Harui <aha...@adobe.com> wrote:
> >
> > >
> > >
> > > On 2/1/16, 11:17 AM, "omup...@gmail.com on behalf of OmPrakash
> > Muppirala"
> > > <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
> > >
> > > >On Mon, Feb 1, 2016 at 8:44 AM, Alex Harui <aha...@adobe.com> wrote:
> > > >
> > > >> 12 days to go.  I pinged the Cordova person this morning.  I think
> it
> > > >> might be time to send an email to committers@ to see if there is
> more
> > > >> interest in a Client track from other groups.  Thoughts?
> > > >>
> > > >
> > > >+1
> > > >
> > > >
> > > >>
> > > >> I'm thinking of proposing a talk called something like: "FlexJS and
> > > >> ActionScript:  Apache's Structured Language Solution for Clients".
> I
> > > >> would try to show how we can build web apps, desktop apps and mobile
> > > >>apps
> > > >> all with or without Flash.
> > > >>
> > > >
> > > >+1
> > > >
> > > >I was thinking of doing something along the lines of 'True OOP on the
> > web
> > > >using Apache FlexJS and Apache Flex Falcon'.  I want to cover the
> basics
> > > >of
> > > >Classes, Interfaces, Design Patterns, Web Components, Shadow DOM, etc.
> > > >using ActionScript3.
> > > >
> > > >I am open to suggestions about this talk, including a better title ;-)
> > >
> > > Sounds like a good topic.
> > >
> > > Given the bias of ApacheCon to server-side folks, we should probably
> try
> > > to think of titles that will make them curious enough to attend with
> hope
> > > that they'd go back and tell their client-side people to check it out.
> > > I'm not really expecting this client track to draw a new client-side
> > > demographic to ApacheCon, but I could certainly be wrong and would love
> > to
> > > be wrong about it.
> > >
> > > For example, I seriously considered the title of my talk to be "What?
> > You
> > > are still coding in JavaScript?"  And yours could be "Anything you can
> do
> > > in JavaScript, you can do with FlexJS and ActionScript".
> > >
> >
> > Except that you can't do everything in AS3 that you can do in JS.  You
> > can't create global variables in AS3 :-)
> >
> > In any case, any updates on the Client Track?  Is there a discussion
> going
> > on somewhere?
> >
> > Thanks,
> > Om
> >
> >
> > >
> > > -Alex
> > >
> > >
> >
>


Re: [ApacheCon NA] Whose going and what topics?

2016-02-03 Thread OmPrakash Muppirala
I think this would be equivalent of having a Node.js talk at a client
conference.  i.e. someone immersed in client side technologies will be
interested in seeing what is a viable option among the server side
technologies.  Node.js seems familiar because it is Javascript based which
means that client side folks can quickly ramp up with it.

In the same way, we can highlight the fact that AS3 is closer to a language
like Java which means that server side folks (who know java) can rapidly
build web applications without having to learn a brand new type of
language.  Heck, this is why Flex got famous in the the first place.
Enterprise Java developers could suddenly build cool looking front end apps!

With FlexJS, it is the same.  The jump for a Java dev to go to FlexJS/AS3
is much smaller than the one to Javascript/AngularJS etc.  I guess this
this is how we need to project Flex and FlexJS.

And of course, we need some cool titles to attract people.  Justin gave a
talk titled - 'Treat your codebase like a crime scene'.  I am sure it got a
lot of attention :-)

I think if there are enough number of people interested in creating a
track, it wont be hard to make it happen.  And then it is a matter of
having sufficient number of talks in the track to fill the day(s)

I hope Chris can shed more light on this process.

Thanks,
Om

On Wed, Feb 3, 2016 at 10:37 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 2/3/16, 5:49 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >On Wed, Feb 3, 2016 at 5:46 PM, Justin Mclean <jus...@classsoftware.com>
> >wrote:
> >
> >> Hi,
> >>
> >> Just worked out that I should be able to make it, not 100% sure what
> >>I’ll
> >> submit as a talk however. Would an Introduction to Flex fit into the
> >>client
> >> side track?
> >>
> >
> >I think it would.  Would you be open to doing a talk on Flex Mobile
> >instead?  I would like to do it, but I wont have bandwidth for two talks
> >in
> >this conference.
>
> You guys would know better since you've been to ApacheCons in 2015, but I
> still find myself wondering what it will take to either 1) cause someone
> who wouldn't normally attend ApacheCon to show up to learn more about
> client-side stuff, or 2) cause someone who came to ApacheCon to learn
> about server-side stuff to attend a client-oriented talk.  I also wonder
> if attendance numbers really matter.  Are we competing for rooms against
> other tracks and won't get accepted based on past attendance records or
> will the conference organizers accept just about any track because they
> have space?  If the former, we need to figure out how to get more folks to
> attend.
>
> I saw Justin do an introductory Flex presentation at ApacheCon in
> Portland.  Justin does a really good job, but the question remains whether
> it is the right topic for the demographic we expect.  Justin's
> presentation would be great at any 360|Flex, where people came to learn
> about Flex, but the people at the two ApacheCons I've attended seem
> different.  Maybe making it more of an overview of the project by mixing
> in more about Mobile and AIR might make it more interesting to the
> server-side guy.  IMO, it is unlikely the server-side person will become a
> Flex coder.  But what could we present in an overview such that he/she
> learns something worth taking back to his client folks?  Or maybe the
> server-oriented folks who attend still hear the echoes of negative news
> about Flash/AIR stuff and are less likely to show up unless we talk more
> about targeting JS.  Or maybe the angle really should be that the
> server-side folks should learn Flex so they don't have to wait on the
> client team?  Or maybe the content of the presentation is fine, but
> instead of a title like "Introduction to Flex" it should be something like
> "Rapid Cross-Platform Client and App Development with Apache Flex".   I
> don't really know, just brainstorming.
>
> We keep hearing that AIR is winning as a runtime in many places.  Are
> folks using Flex to create those AIR apps?  Have we tried to tell folks
> about that at ApacheCon?  I've seen other Apache projects not choose Flex
> for their cross-platform UI.  Why is that?  What could we say at ApacheCon
> that might make them choose Flex to build an AIR app?
>
> Anyway, I don't know how talks are selected for tracks, but I would
> imagine anything Justin wants to talk about that relates to Apache Flex
> would fit in the client category.
>
> Thoughts?
> -Alex
>
>


Re: Positive development in the Tour De Flex Mobile app front

2016-02-01 Thread OmPrakash Muppirala
FYI, I have started this process:
https://issues.apache.org/jira/browse/INFRA-11183

Thanks,
Om

2016-01-30 0:36 GMT-08:00 Carlos Rovira <carlos.rov...@codeoscopic.com>:

> Great! :)
>
> 2016-01-29 21:36 GMT+01:00 Andrew Wetmore <cottag...@gmail.com>:
>
> > too cool.
> >
> > On Fri, Jan 29, 2016 at 4:34 PM, OmPrakash Muppirala <
> bigosma...@gmail.com
> > >
> > wrote:
> >
> > > Looks like our Infra team has managed to clear the legal hurdles with
> > Apple
> > > Inc. so that we can officially publish Apache signed apps to the iOS
> App
> > > stores.  Details here [1]
> > >
> > > If no one has any issues, I will go ahead and create an Apple developer
> > > account with my Apache email id and start the process of releasing Tour
> > De
> > > Flex.
> > >
> > > Thanks,
> > > Om
> > >
> > > [1]
> > >
> > >
> >
> https://issues.apache.org/jira/browse/LEGAL-174?focusedCommentId=15123628=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15123628
> > >
> >
> >
> >
> > --
> > Andrew Wetmore
> >
> > http://cottage14.blogspot.com/
> > http://annapolisndp.ca
> > http://www.lenore4leader.com
> >
>
>
>
> --
>
> Carlos Rovira
> Director General
> M: +34 607 22 60 05
> http://www.codeoscopic.com
> http://www.avant2.es
>
>
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o confidencial. Si ha recibido este mensaje por
> error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> proceda a su destrucción.
>
> De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> servicio o información solicitados, teniendo usted derecho de acceso,
> rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> necesaria.
>


Re: AW: AW: [ApacheCon NA] Whose going and what topics?

2016-02-01 Thread OmPrakash Muppirala
On Mon, Feb 1, 2016 at 8:44 AM, Alex Harui <aha...@adobe.com> wrote:

> 12 days to go.  I pinged the Cordova person this morning.  I think it
> might be time to send an email to committers@ to see if there is more
> interest in a Client track from other groups.  Thoughts?
>

+1


>
> I'm thinking of proposing a talk called something like: "FlexJS and
> ActionScript:  Apache's Structured Language Solution for Clients".  I
> would try to show how we can build web apps, desktop apps and mobile apps
> all with or without Flash.
>

+1

I was thinking of doing something along the lines of 'True OOP on the web
using Apache FlexJS and Apache Flex Falcon'.  I want to cover the basics of
Classes, Interfaces, Design Patterns, Web Components, Shadow DOM, etc.
using ActionScript3.

I am open to suggestions about this talk, including a better title ;-)

Thanks,
Om


>
> Thoughts?
> -Alex
>
> On 1/25/16, 4:57 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >On Mon, Jan 25, 2016 at 2:04 AM, Christofer Dutz
> ><christofer.d...@c-ware.de>
> >wrote:
> >
> >> But a cordova track would exclude my planned IoT + Mobile + Flex talk as
> >> it currently relies on Flex
> >>
> >
> >The proposal is to create a 'Client Track' that includes any and all
> >topics
> >under Flex and Cordova (and any other Apache 'Client' projects that decide
> >to jump in)  In this approach you have a good chance of your talk included
> >as well.
> >
> >Thanks,
> >Om
> >
> >
> >>
> >> Chris
> >>
> >> -Ursprüngliche Nachricht-
> >> Von: Alex Harui [mailto:aha...@adobe.com]
> >> Gesendet: Samstag, 9. Januar 2016 16:26
> >> An: dev@flex.apache.org
> >> Betreff: Re: AW: AW: [ApacheCon NA] Whose going and what topics?
> >>
> >>
> >>
> >> On 1/9/16, 2:03 AM, "Christofer Dutz" <christofer.d...@c-ware.de>
> wrote:
> >>
> >> >+1
> >> >
> >> >Would the FlexJS/Flex & Maven talk fit to that? I think it would.
> >> >
> >>
> >> Yes, because it is about integrating your client build environment with
> >> the rest of your builds, right?
> >>
> >> I will ping some Cordova people this weekend or next week.
> >>
> >> -Alex
> >>
> >>
>
>


Re: Updating the Website with the new ASF logo?

2016-01-27 Thread OmPrakash Muppirala
On Wed, Jan 27, 2016 at 1:21 PM, Nicholas Kwiatkowski <
nicholaskwiatkow...@gmail.com> wrote:

> But speaking of the new logo -- did anybody notice that Flex was
> specifically called out in the press-release as "best in class software
> project"?
>
>
> https://blogs.apache.org/foundation/entry/the_apache_software_foundation_announces86


Haha nice.  But why do you sound so surprised? ;-)

Om


>
>
>
>
> On Wed, Jan 27, 2016 at 9:28 AM, Christofer Dutz <
> christofer.d...@c-ware.de>
> wrote:
>
> > Hi,
> >
> > as it's now official ... how about changing the Logo on our website?
> > I would do it, but I guess there are enough people here that actually
> know
> > how to do it ;-)
> >
> > Chris
> >
>


Re: AW: AW: [ApacheCon NA] Whose going and what topics?

2016-01-25 Thread OmPrakash Muppirala
On Mon, Jan 25, 2016 at 2:04 AM, Christofer Dutz 
wrote:

> But a cordova track would exclude my planned IoT + Mobile + Flex talk as
> it currently relies on Flex
>

The proposal is to create a 'Client Track' that includes any and all topics
under Flex and Cordova (and any other Apache 'Client' projects that decide
to jump in)  In this approach you have a good chance of your talk included
as well.

Thanks,
Om


>
> Chris
>
> -Ursprüngliche Nachricht-
> Von: Alex Harui [mailto:aha...@adobe.com]
> Gesendet: Samstag, 9. Januar 2016 16:26
> An: dev@flex.apache.org
> Betreff: Re: AW: AW: [ApacheCon NA] Whose going and what topics?
>
>
>
> On 1/9/16, 2:03 AM, "Christofer Dutz"  wrote:
>
> >+1
> >
> >Would the FlexJS/Flex & Maven talk fit to that? I think it would.
> >
>
> Yes, because it is about integrating your client build environment with
> the rest of your builds, right?
>
> I will ping some Cordova people this weekend or next week.
>
> -Alex
>
>


Re: js mul line

2016-01-24 Thread OmPrakash Muppirala
Alex, looks like the email client is eating some text.

Check the link:
http://apache-flex-development.247.n4.nabble.com/js-mul-line-td51370.html
for the full email

Thanks,
Om

On Sun, Jan 24, 2016 at 11:20 PM, Alex Harui  wrote:

> I'm not sure I understand.  Are you saying the AS compiler let you declare
> a var with an "=" and no actually assigned value?
>
> -Alex
>
> On 1/24/16, 7:39 PM, "lizhi"  wrote:
>
> >CONFIG::as_only{
> >   var vcode:String =
> >
> >   var fcode:String =
> >   }
> >
> >the as can code like that.
> >but this code can not run with js
> >
> >
> >
> >
> >--
> >View this message in context:
> >
> http://apache-flex-development.247.n4.nabble.com/js-mul-line-tp51370.h
> >tml
> >Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>


Re: flexjs game hugryhero

2016-01-21 Thread OmPrakash Muppirala
Any reason we want to embed images?  It makes sense in a swf because it is
a compact file format.

For the HTML version if we stick a big base 64 image in the minified code,
we are unnecessarily making the initial download size bigger.

A better approach would be to use spritesheets when dealing with image
data.   These spritesheets should be downloaded on demand like all other
assets.

Thanks,
Om
On Jan 21, 2016 8:43 AM, "Alex Harui"  wrote:

>
>
> On 1/21/16, 8:24 AM, "Michael Schmalle"  wrote:
>
> >If/when you have time, could you make a JIRA that sort of outlined the
> >process for the base64 encoding? I am good at somethings but something
> >like
> >this I really don't have any experience, I know the hooks in the compiler
> >and such but what would actually be involved in getting the bytes to emit
> >out.
>
> I would have to do research as well.  Maybe Josh can provide more detail.
> My concern is, if overused, embeds could make the html file really huge.
>
> -Alex
>
>


Re: flexjs game hugryhero

2016-01-21 Thread OmPrakash Muppirala
On Thu, Jan 21, 2016 at 10:32 PM, jude <flexcapaci...@gmail.com> wrote:

> Even if the initial download size is bigger it can actually load faster.
> This is because:
>
> *Fetching resources over the network is both slow and expensive: the
> download may require multiple roundtrips between the client and server,
> which delays processing and may block rendering of page content, and also
> incurs data costs for the visitor. [1]*
>

Agreed that downloading assets individually is quite costly.  But Base64
encoding assets and sticking them in JS files is not a great way to solve
this problem.  You loose browser based caching for assets, sharing assets
across applications from same domain, along with an increased page load
time.  Also, Base64 encoded images are roughly 1.37 times the size of the
original image [1]

As I mentioned earlier, spritesheets are a much better alternative.  With
spritesheets, you incur only one additional download and it is pretty easy
to use. [2]
CSS even natively supports image sprites.


>
> So using data uri's can get you a faster TOF (time of flight) page render.
> Not sure if I'm using that right but it sounds cool.


I am not quite sure what that means ;-)




> The downside is that
> if you reload the page nothing is in the cache. But then again, if you plan
> it right you should only be downloading the changed content (a small JSON
> object).
>
> I'm using data URI's in a few places and for small graphics like lines and
> boxes and it's only a few lines of content. The reason I'm doing this is to
> translate an SVG graphic into something older browsers can render, for
> example, the webkit in AIR does not render SVG (in my tests) so converting
> those to data URI allows the page to render as expected.
>

Instead, I would suggest having an external stylesheet that has the
definitions of all the base 64 encoded images and load it separately.  At
least it would be cache-able then.  The performance of this would be better
than embedding it in code, but comparable to the spritesheet method.

The problem I see is not with the encoding of the image as base64, but the
fact that we have to dump it in a JS or HTML file, thereby losing the
browser cacheability that a png or jpg provides.

Thanks,
Om

[1] https://en.wikipedia.org/wiki/Base64
[2]
http://www.williammalone.com/articles/create-html5-canvas-javascript-sprite-animation/
[3] http://www.w3schools.com/css/css_image_sprites.asp


>
> Google has some good info but the information shouldn't be taken as gospel.
> They are still catching up to things we are used to. For example, Angular
> JS is being rewritten from the ground up.
>  [1]
> https://developers.google.com/speed/docs/insights/LeverageBrowserCaching
>
> On Thu, Jan 21, 2016 at 8:53 AM, OmPrakash Muppirala <bigosma...@gmail.com
> >
> wrote:
>
> > Any reason we want to embed images?  It makes sense in a swf because it
> is
> > a compact file format.
> >
> > For the HTML version if we stick a big base 64 image in the minified
> code,
> > we are unnecessarily making the initial download size bigger.
> >
> > A better approach would be to use spritesheets when dealing with image
> > data.   These spritesheets should be downloaded on demand like all other
> > assets.
> >
> > Thanks,
> > Om
> > On Jan 21, 2016 8:43 AM, "Alex Harui" <aha...@adobe.com> wrote:
> >
> > >
> > >
> > > On 1/21/16, 8:24 AM, "Michael Schmalle" <teotigraphix...@gmail.com>
> > wrote:
> > >
> > > >If/when you have time, could you make a JIRA that sort of outlined the
> > > >process for the base64 encoding? I am good at somethings but something
> > > >like
> > > >this I really don't have any experience, I know the hooks in the
> > compiler
> > > >and such but what would actually be involved in getting the bytes to
> > emit
> > > >out.
> > >
> > > I would have to do research as well.  Maybe Josh can provide more
> detail.
> > > My concern is, if overused, embeds could make the html file really
> huge.
> > >
> > > -Alex
> > >
> > >
> >
>


Re: flexjs game hugryhero

2016-01-20 Thread OmPrakash Muppirala
Haha, this is freaking amazing!  Its a bit buggy but it's great start.
Nice job!

Thanks,
Om

On Wed, Jan 20, 2016 at 8:29 PM, lizhi  wrote:

>
> http://matrix3d.github.io/assets/html5/flexjsstage3d/bin/js-release/#test_hugryhero
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/flexjs-game-hugryhero-tp51348.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: AW: AW: [ApacheCon NA] Whose going and what topics?

2016-01-19 Thread OmPrakash Muppirala
Sure, I can contact them.  Can you forward the details you sent to the
Cordova team member?  If that is not for public consumption, I can write a
new email to the Wicket folks.

Thanks,
Om

On Tue, Jan 19, 2016 at 2:28 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 1/19/16, 12:44 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >On Jan 19, 2016 10:58 AM, "Alex Harui" <aha...@adobe.com> wrote:
> >>
> >> OK, I finally got a response from a Cordova person.  They are interested
> >> in the client-side track idea.  Once they get approval from their dev
> >> list, we should submit talks and do more coordination.  I think instead
> >>of
> >> cross posting to both dev@ lists, maybe we should try the wider
> >> dev@community.a.o mailing list to see if other projects want to submit
> >>for
> >> this track.
> >
> >+1
> >
> >Although we should also sent private emails to protects like Wicket as
> >well.
>
> Well, I contacted the Cordova person off-list just to test the waters.  I
> don't have any contacts at Wicket.  I figure Wicket and other projects
> should be watching dev@community for ApacheCon news anyway.  But feel free
> to contact them if you want.
>
> -Alex
>
>


Re: Names for FlexJS MXML

2016-01-19 Thread OmPrakash Muppirala
FlexJS uses the same exact MXML that Flex SDK uses.  It just operates on a
different default namespace - Flex SDK, with mx, spark, etc.  and FlexJS
with basic, js etc.  Structurally they are (should) be the same.

Thanks,
Om

On Tue, Jan 19, 2016 at 1:18 PM, jude  wrote:

> Alex, et al,
>
> Is there a name or 3-4 letter acronym we can use for FlexJS MXML to
> differentiate it from Flex MXML? I'm drawing a blank and these don't seem
> to fit:
>
> FXML
> FXJSML
> FxJsML
> FalconML
>
> I don't think the JS part of the name fits because FlexJS also outputs SWF.
> It's a hybrid of Flex, MXML, AS with two different target platforms SWF and
> transpiled HTML / JS.
>
> For example, we have HTML, MXML, XAML but what would sound good for FlexJS?
>


Re: [Flex] Map Component

2016-01-19 Thread OmPrakash Muppirala
Does it have to be zoomed out so much?  If you zoom in a bit,  I think this
issue will get fixed.

Thanks,
Om
On Jan 19, 2016 10:04 PM, "Deepak MS" <megharajdee...@gmail.com> wrote:

> Is there any option to avoid multiple instances of the map? I did try using
> extent
>
> var et:MapExtent = new MapExtent(90, -90, 180, -180);
>   //  myMap.map.setExtent(et);
> myMap.extent = et;
>
> But there is no change in the map.
>
> The problem is, for US map, some part gets drawn on one instance and rest
> of the part gets drawn on another instance of the map.
>
> Screen shot for reference. Here, 'B' needs to be in 'A's location.
> http://snag.gy/43s6a.jpg
>
>
>
> On Tue, Jan 19, 2016 at 10:24 PM, Deepak MS <megharajdee...@gmail.com>
> wrote:
>
> > Well, I tried earlier approach for 4 days, but it didn't quite work as
> > expected. Entire map needs to be rendered using svg alone or based on
> > long/lat points. Its difficult to merge lat/long based custom regions
> over
> > svg.
> >
> > But modestmap worked well. Thank you so much for sharing those links.
> > On 15 Jan 2016 1:31 am, "OmPrakash Muppirala" <bigosma...@gmail.com>
> > wrote:
> >
> >> Also, if you have not already seen it, ModestMaps has a pretty cool AS3
> >> implementation.
> >>
> >> https://github.com/migurski/modestmaps-as3
> >>
> >> I have used it for desktop, web and iOS apps.  You can draw markers,
> >> polygons etc. just like you would on google maps.
> >>
> >> If you dont have a lot of success figuring out the earlier approach, see
> >> if
> >> this works.
> >>
> >> There is a Flex wrapper for this as well:
> >> https://github.com/igorcosta/flex-maps
> >>
> >> Thanks,
> >> Om
> >>
> >> On Thu, Jan 14, 2016 at 11:55 AM, OmPrakash Muppirala <
> >> bigosma...@gmail.com>
> >> wrote:
> >>
> >> > Cool.  I see the UK map rendering fine.
> >> >
> >> > The next step is to figure out why the co-ordinates are not rendering.
> >> > The key is to get the correct projection.  I am pretty sure GeoJSON
> >> > co-ordinates are in Mercator projection.
> >> >
> >> > Here is a nice article that seems to be solving a similar problem.
> See
> >> if
> >> > this helps:
> >> > http://mikefowler.me/2014/06/10/drawing-geojson-in-a-canvas/
> >> >
> >> > Thanks,
> >> > Om
> >> >
> >> > On Wed, Jan 13, 2016 at 9:59 PM, Deepak MS <megharajdee...@gmail.com>
> >> > wrote:
> >> >
> >> >> Oh I really didn't knew that those values are swapped. Generally it
> >> would
> >> >> be lat\lng. Sorry for that. That was a sample data I got from the
> team
> >> and
> >> >> yes that is Oz data(NSW boundary).
> >> >>
> >> >> Anyway, to make it simple. I have created a project including the
> >> library:
> >> >>
> >>
> http://apache-flex-users.246.n4.nabble.com/file/n11744/StaticMap.zip
> >> >>
> >> >> It has data which is a rectangular region surrounding London.
> >> >>
> >> >> We can get lat\lng points of custom regions here(by drawing
> >> >> circles\rectangles\lines on the map):
> >> >> http://geojson.io/
> >> >>
> >> >> In attached code, UK map gets plotted, only thing now is to
> >> draw\highlight
> >> >> region on top of the map based on the lat\long data.
> >> >>
> >> >
> >> >
> >>
> >
>


Re: [Flex] Map Component

2016-01-19 Thread OmPrakash Muppirala
Hmm this looks like a big in the mapping component, and probably not just
the AS3 version.   I think contacting the Modest Map folks might be the
best option.

Thanks,
Om
On Jan 19, 2016 10:38 PM, "Deepak MS" <megharajdee...@gmail.com> wrote:

> Nope. Zoom value is 4 and this is how it's shown on load(which is as
> intended):
> http://snag.gy/VzeMN.jpg
>
> But still those highlighted regions(Island towards left of Alaska) are
> drawn on right side(another instance) of the map.
>
> I thought extent would create the boundary that we would need. Shouldn't
> it?
>
> On Wed, Jan 20, 2016 at 11:40 AM, OmPrakash Muppirala <
> bigosma...@gmail.com>
> wrote:
>
> > Does it have to be zoomed out so much?  If you zoom in a bit,  I think
> this
> > issue will get fixed.
> >
> > Thanks,
> > Om
> > On Jan 19, 2016 10:04 PM, "Deepak MS" <megharajdee...@gmail.com> wrote:
> >
> > > Is there any option to avoid multiple instances of the map? I did try
> > using
> > > extent
> > >
> > > var et:MapExtent = new MapExtent(90, -90, 180, -180);
> > >   //  myMap.map.setExtent(et);
> > > myMap.extent = et;
> > >
> > > But there is no change in the map.
> > >
> > > The problem is, for US map, some part gets drawn on one instance and
> rest
> > > of the part gets drawn on another instance of the map.
> > >
> > > Screen shot for reference. Here, 'B' needs to be in 'A's location.
> > > http://snag.gy/43s6a.jpg
> > >
> > >
> > >
> > > On Tue, Jan 19, 2016 at 10:24 PM, Deepak MS <megharajdee...@gmail.com>
> > > wrote:
> > >
> > > > Well, I tried earlier approach for 4 days, but it didn't quite work
> as
> > > > expected. Entire map needs to be rendered using svg alone or based on
> > > > long/lat points. Its difficult to merge lat/long based custom regions
> > > over
> > > > svg.
> > > >
> > > > But modestmap worked well. Thank you so much for sharing those links.
> > > > On 15 Jan 2016 1:31 am, "OmPrakash Muppirala" <bigosma...@gmail.com>
> > > > wrote:
> > > >
> > > >> Also, if you have not already seen it, ModestMaps has a pretty cool
> > AS3
> > > >> implementation.
> > > >>
> > > >> https://github.com/migurski/modestmaps-as3
> > > >>
> > > >> I have used it for desktop, web and iOS apps.  You can draw markers,
> > > >> polygons etc. just like you would on google maps.
> > > >>
> > > >> If you dont have a lot of success figuring out the earlier approach,
> > see
> > > >> if
> > > >> this works.
> > > >>
> > > >> There is a Flex wrapper for this as well:
> > > >> https://github.com/igorcosta/flex-maps
> > > >>
> > > >> Thanks,
> > > >> Om
> > > >>
> > > >> On Thu, Jan 14, 2016 at 11:55 AM, OmPrakash Muppirala <
> > > >> bigosma...@gmail.com>
> > > >> wrote:
> > > >>
> > > >> > Cool.  I see the UK map rendering fine.
> > > >> >
> > > >> > The next step is to figure out why the co-ordinates are not
> > rendering.
> > > >> > The key is to get the correct projection.  I am pretty sure
> GeoJSON
> > > >> > co-ordinates are in Mercator projection.
> > > >> >
> > > >> > Here is a nice article that seems to be solving a similar problem.
> > > See
> > > >> if
> > > >> > this helps:
> > > >> > http://mikefowler.me/2014/06/10/drawing-geojson-in-a-canvas/
> > > >> >
> > > >> > Thanks,
> > > >> > Om
> > > >> >
> > > >> > On Wed, Jan 13, 2016 at 9:59 PM, Deepak MS <
> > megharajdee...@gmail.com>
> > > >> > wrote:
> > > >> >
> > > >> >> Oh I really didn't knew that those values are swapped. Generally
> it
> > > >> would
> > > >> >> be lat\lng. Sorry for that. That was a sample data I got from the
> > > team
> > > >> and
> > > >> >> yes that is Oz data(NSW boundary).
> > > >> >>
> > > >> >> Anyway, to make it simple. I have created a project including the
> > > >> library:
> > > >> >>
> > > >>
> > >
> http://apache-flex-users.246.n4.nabble.com/file/n11744/StaticMap.zip
> > > >> >>
> > > >> >> It has data which is a rectangular region surrounding London.
> > > >> >>
> > > >> >> We can get lat\lng points of custom regions here(by drawing
> > > >> >> circles\rectangles\lines on the map):
> > > >> >> http://geojson.io/
> > > >> >>
> > > >> >> In attached code, UK map gets plotted, only thing now is to
> > > >> draw\highlight
> > > >> >> region on top of the map based on the lat\long data.
> > > >> >>
> > > >> >
> > > >> >
> > > >>
> > > >
> > >
> >
>


Re: [FLEXJS] POC MXML "Live" Editing

2016-01-15 Thread OmPrakash Muppirala
Hmm, I followed all the steps.  But when I changed the width of the label
in MyInitialView.mxml and try to save the file, I am getting this error:

Could not write file:
C:\p\flexroot\workspace\DataBindingTest\src\MyInitialView.mxml.
C:\p\flexroot\workspace\DataBindingTest\src\MyInitialView.mxml (The process
cannot access the file because it is being used by another process)

Looks like the watch is causing this issue.  When I close that AIR app, I
am able to save the file fine.

This is on Windows, btw.

Thanks,
Om




On Fri, Jan 15, 2016 at 12:27 PM, OK  wrote:

> Alex Harui wrote
> > Anyway, let me know what you think.  I'm off to work on other things.
>
> Hey Alex,
> I've just followed your instructions and tested your POC by using FlexJS
> 0.6.0 and it just works!
> Awesome, very impressive!
> IMO a live editing feature would be a big plus. In competition to other
> transpiling JS frameworks this could be a key feature.
>
> Thanks,
> Olaf
>
>
>
>
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/FLEXJS-POC-MXML-Live-Editing-tp51278p51291.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: [FLEXJS] POC MXML "Live" Editing

2016-01-15 Thread OmPrakash Muppirala
One really cool feature would be to have a website where we can invite
users to 'try out' FlexJS.  Essentially like JSFiddle, where you can type
mxml/as3 code and see the results in the adjacent panel.  Is that possible?

Thanks,
Om

On Fri, Jan 15, 2016 at 5:56 PM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> Hmm, I followed all the steps.  But when I changed the width of the label
> in MyInitialView.mxml and try to save the file, I am getting this error:
>
> Could not write file:
> C:\p\flexroot\workspace\DataBindingTest\src\MyInitialView.mxml.
> C:\p\flexroot\workspace\DataBindingTest\src\MyInitialView.mxml (The
> process cannot access the file because it is being used by another process)
>
> Looks like the watch is causing this issue.  When I close that AIR app, I
> am able to save the file fine.
>
> This is on Windows, btw.
>
> Thanks,
> Om
>
>
>
>
> On Fri, Jan 15, 2016 at 12:27 PM, OK <okrue...@edscha.com> wrote:
>
>> Alex Harui wrote
>> > Anyway, let me know what you think.  I'm off to work on other things.
>>
>> Hey Alex,
>> I've just followed your instructions and tested your POC by using FlexJS
>> 0.6.0 and it just works!
>> Awesome, very impressive!
>> IMO a live editing feature would be a big plus. In competition to other
>> transpiling JS frameworks this could be a key feature.
>>
>> Thanks,
>> Olaf
>>
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-flex-development.247.n4.nabble.com/FLEXJS-POC-MXML-Live-Editing-tp51278p51291.html
>> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>>
>
>


Re: [Flex] Map Component

2016-01-14 Thread OmPrakash Muppirala
Cool.  I see the UK map rendering fine.

The next step is to figure out why the co-ordinates are not rendering.  The
key is to get the correct projection.  I am pretty sure GeoJSON
co-ordinates are in Mercator projection.

Here is a nice article that seems to be solving a similar problem.  See if
this helps:
http://mikefowler.me/2014/06/10/drawing-geojson-in-a-canvas/

Thanks,
Om

On Wed, Jan 13, 2016 at 9:59 PM, Deepak MS  wrote:

> Oh I really didn't knew that those values are swapped. Generally it would
> be lat\lng. Sorry for that. That was a sample data I got from the team and
> yes that is Oz data(NSW boundary).
>
> Anyway, to make it simple. I have created a project including the library:
> http://apache-flex-users.246.n4.nabble.com/file/n11744/StaticMap.zip
>
> It has data which is a rectangular region surrounding London.
>
> We can get lat\lng points of custom regions here(by drawing
> circles\rectangles\lines on the map):
> http://geojson.io/
>
> In attached code, UK map gets plotted, only thing now is to draw\highlight
> region on top of the map based on the lat\long data.
>


Re: Flex in a week data services

2016-01-14 Thread OmPrakash Muppirala
I know that the chart examples here
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf6568f-7ffe.html
tries to access a now non-existent adobe webserver.  I have managed to grab
all those data files here:

http://bigosmallm.github.io/flex/chartexamples/budget.xml
http://bigosmallm.github.io/flex/chartexamples/expenses.xml
http://bigosmallm.github.io/flex/chartexamples/medals.xml
http://bigosmallm.github.io/flex/chartexamples/networth.xml
http://bigosmallm.github.io/flex/chartexamples/stocks.xml
http://bigosmallm.github.io/flex/chartexamples/widgets.xml

If we are fixing the examples, we should point to these urls for the data.

Thanks,
Om

On Thu, Jan 14, 2016 at 9:59 AM, Alex Harui  wrote:

> Most of the written content for "Flex in a Week" was donated to Apache
> Flex.  The plan has been to tweak the examples to use different backend
> services.  The person working on it might need help.  Any volunteers?
>
> -Alex
>
> On 1/14/16, 7:23 AM, "Jeffrey May"  wrote:
>
> >Hello,
> >
> >I am writing at the request of Twitter handle @ApacheFlex regarding the
> >"Flex in a Week Training" series, which I am currently participating in.
> >
> >Many of the exercises require the trainee to make http service calls to a
> >server that was hosted by adobe but is no longer online (
> >http://www.adobetes.com).  There were several services here that are
> >necessary to complete the exercises, but I unable specifically what most
> >of
> >them are.
> >
> >I have discovered an individual who hosted similar services for the
> >purpose
> >of completing these exercises, but the data is not complete.  For
> >instance,
> >a Cold Fusion database service used by some of the exercises is provided ,
> >but the database does not seem to contain any data.  This makes it
> >impossible to complete the exercises with the same results described in
> >the
> >training videos/exercise documents.  You can access these service here:
> >
> >http://adobetes.beammath.com/.
> >
> >Since Apache continues to promote the Flex in a Week training series on
> >the
> >Flex website, I believe that you would have interest in correcting this so
> >that those wishing to learn Flex can derive full utility from this
> >otherwise incomplete training series.
> >
> >I look forward to your response.  Please let me know if I may be able to
> >provide any additional information that may be useful, and I will attempt
> >to do so. Thank you.
> >
> >Sincerely,
> >
> >
> >
> >
> >Jeff A. May
> >MS Geographic Information Science | Idaho State University
> >GIS Training and Research Center | Pocatello, ID 83209
>
>


Re: [Flex] Map Component

2016-01-14 Thread OmPrakash Muppirala
Also, if you have not already seen it, ModestMaps has a pretty cool AS3
implementation.

https://github.com/migurski/modestmaps-as3

I have used it for desktop, web and iOS apps.  You can draw markers,
polygons etc. just like you would on google maps.

If you dont have a lot of success figuring out the earlier approach, see if
this works.

There is a Flex wrapper for this as well:
https://github.com/igorcosta/flex-maps

Thanks,
Om

On Thu, Jan 14, 2016 at 11:55 AM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> Cool.  I see the UK map rendering fine.
>
> The next step is to figure out why the co-ordinates are not rendering.
> The key is to get the correct projection.  I am pretty sure GeoJSON
> co-ordinates are in Mercator projection.
>
> Here is a nice article that seems to be solving a similar problem.  See if
> this helps:
> http://mikefowler.me/2014/06/10/drawing-geojson-in-a-canvas/
>
> Thanks,
> Om
>
> On Wed, Jan 13, 2016 at 9:59 PM, Deepak MS <megharajdee...@gmail.com>
> wrote:
>
>> Oh I really didn't knew that those values are swapped. Generally it would
>> be lat\lng. Sorry for that. That was a sample data I got from the team and
>> yes that is Oz data(NSW boundary).
>>
>> Anyway, to make it simple. I have created a project including the library:
>> http://apache-flex-users.246.n4.nabble.com/file/n11744/StaticMap.zip
>>
>> It has data which is a rectangular region surrounding London.
>>
>> We can get lat\lng points of custom regions here(by drawing
>> circles\rectangles\lines on the map):
>> http://geojson.io/
>>
>> In attached code, UK map gets plotted, only thing now is to draw\highlight
>> region on top of the map based on the lat\long data.
>>
>
>


Re: [Flex] Map Component

2016-01-13 Thread OmPrakash Muppirala
Yes, it is lat and long. Out is the output point which should get updated
during the projection.

Thanks,
Om
On Jan 13, 2016 3:10 AM, "Deepak MS" <megharajdee...@gmail.com> wrote:

> Thanks Om.
>
> I tried that library with following code:
> var mc:MercatorProjection = new MercatorProjection();
> for(var i:int = 0; i < a.length; i++) // a here is array of
> arrays - [ [ 151.25, -33.74 ],[ 151.25, -33.74 ] ..]
>{
> var ltlg:Array = a[i];
> var p:Point = mc.project(ltlg[0],ltlg[1], new Point());
> //p.x will always be same as lat value - 151.25 and p.y
> will always be NaN
>
> }
>
> I looked at MercatorProjection.project() method:
> override public function project(lam:Number, phi:Number, out:Point):Point
> {
> if (spherical) {   //spherical = false
> out.x = scaleFactor * lam;  //scaleFactor  = 1
> out.y = scaleFactor * Math.log(Math.tan(MapMath.QUARTERPI +
> 0.5 * phi));
> } else {
> out.x = scaleFactor * lam;
> out.y = -scaleFactor * Math.log(MapMath.tsfn(phi,
> Math.sin(phi), e));
> }
> return out;
> }
>
> I'm not sure what Iam, phi and out parameters are. I assumed Iam is lat and
> phi would be lng. out is used to return the value. I don't know why is it
> an input parameter here as out itself is the return value.
>
> Am I passing lat, lng values correctly to project() ?
>
>
>
>
> On Wed, Jan 13, 2016 at 1:09 PM, OmPrakash Muppirala <bigosma...@gmail.com
> >
> wrote:
>
> > Moving thread to dev@.  Users@ in bcc in case someone else is interested
> > in
> > this.
> >
> > The d in the path node is a stringified set of points which are connected
> > by lines.  M is for moveTo, L is for lineTo and Z signifies closing the
> > path back to the first point.
> >
> > Each country (or region) has its own shape which is denoted by the d
> > string.  The series of path objects is sufficient to draw all the
> countries
> > using a stroke and a fill.
> >
> > Looking at your coordinates, it looks like a closed polygon.
> > You might want to try to use Mercator projection to project the lat long
> > coordinates to cartesian coordinates.
> > Here is a very straightforward implementation of this in AS3:
> > *
> >
> https://bitbucket.org/gka/as3-proj/src/ec91cdd098a15ab1e2cbf5bbd3a3221a36507685/net/vis4/map/proj/MercatorProjection.as?at=default=file-view-default
> > <
> >
> https://bitbucket.org/gka/as3-proj/src/ec91cdd098a15ab1e2cbf5bbd3a3221a36507685/net/vis4/map/proj/MercatorProjection.as?at=default=file-view-default
> > >*
> >
> > Basically for each lat/long co-ordinate in your 'coordinates' array, call
> > MercatorProjection.project(), which should give you a Point object.  Use
> > these series of Points to draw a shape, which represents your
> State/region.
> >
> > Do let me know if you need any further help
> >
> > Thanks,
> > Om
> > On Jan 12, 2016 10:06 PM, "Deepak MS" <megharajdee...@gmail.com> wrote:
> >
> > > Moving following conversation to this separate thread.
> > >
> > >
> > >
> >
> http://apache-flex-development.247.n4.nabble.com/FlexJS-US-States-Map-example-pure-AS3-td48006.html
> > >
> > > Hi Om,
> > > I had one question.
> > > I could see the following path in the worldmap.xml file:
> > >  > > d="M25.4,206.4 L25.4,206.4 L25.3,206.4 L25.4,206.4 Z">
> > > 
> > > United States Minor Outlying Islands
> > > 5
> > > U.S. MOI
> > > Seven seas (open ocean)
> > > East Asia  Pacific
> > > UMI
> > > UM
> > > 28289407
> > > North America
> > > 0.57
> > > 0.58
> > > um
> > > UM
> > > 
> > > 
> > >
> > > What is the path data in there?
> > >
> > > I would be getting the boundary data in form of geojson which would
> have
> > > latitude\longitude points. Something like this:
> > >
> > > { "type": "Feature", "properties": { "BrickCode_": "21000", "State":
> > "NSW",
> > > "ML_Code": "ML108" }, "geomet

Re: [Flex] Map Component

2016-01-13 Thread OmPrakash Muppirala
Give me the list of lat/long co-ordinates and the end result shape they
should look like.  I will try out a few things and see we can make this
work.

Thanks,
Om

On Wed, Jan 13, 2016 at 7:36 AM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

>
> On Jan 13, 2016 4:36 AM, "Deepak MS" <megharajdee...@gmail.com> wrote:
> >
> > Ok. But it isn't converting lat\long values to expected path data
> > coordinates I believe.
>
> What's happening?  Can you post the relevant code and output?
>
> Thanks,
> Om
>
> >
> > On Wed, Jan 13, 2016 at 5:37 PM, OmPrakash Muppirala <
> bigosma...@gmail.com>
> > wrote:
> >
> > > Yes, it is lat and long. Out is the output point which should get
> updated
> > > during the projection.
> > >
> > > Thanks,
> > > Om
> > > On Jan 13, 2016 3:10 AM, "Deepak MS" <megharajdee...@gmail.com> wrote:
> > >
> > > > Thanks Om.
> > > >
> > > > I tried that library with following code:
> > > > var mc:MercatorProjection = new MercatorProjection();
> > > > for(var i:int = 0; i < a.length; i++) // a here is array
> of
> > > > arrays - [ [ 151.25, -33.74 ],[ 151.25, -33.74 ] ..]
> > > >{
> > > > var ltlg:Array = a[i];
> > > > var p:Point = mc.project(ltlg[0],ltlg[1], new
> Point());
> > > > //p.x will always be same as lat value - 151.25 and
> p.y
> > > > will always be NaN
> > > >
> > > > }
> > > >
> > > > I looked at MercatorProjection.project() method:
> > > > override public function project(lam:Number, phi:Number,
> out:Point):Point
> > > > {
> > > > if (spherical) {   //spherical = false
> > > > out.x = scaleFactor * lam;  //scaleFactor  = 1
> > > > out.y = scaleFactor *
> > > Math.log(Math.tan(MapMath.QUARTERPI +
> > > > 0.5 * phi));
> > > > } else {
> > > > out.x = scaleFactor * lam;
> > > > out.y = -scaleFactor * Math.log(MapMath.tsfn(phi,
> > > > Math.sin(phi), e));
> > > > }
> > > > return out;
> > > > }
> > > >
> > > > I'm not sure what Iam, phi and out parameters are. I assumed Iam is
> lat
> > > and
> > > > phi would be lng. out is used to return the value. I don't know why
> is it
> > > > an input parameter here as out itself is the return value.
> > > >
> > > > Am I passing lat, lng values correctly to project() ?
> > > >
> > > >
> > > >
> > > >
> > > > On Wed, Jan 13, 2016 at 1:09 PM, OmPrakash Muppirala <
> > > bigosma...@gmail.com
> > > > >
> > > > wrote:
> > > >
> > > > > Moving thread to dev@.  Users@ in bcc in case someone else is
> > > interested
> > > > > in
> > > > > this.
> > > > >
> > > > > The d in the path node is a stringified set of points which are
> > > connected
> > > > > by lines.  M is for moveTo, L is for lineTo and Z signifies
> closing the
> > > > > path back to the first point.
> > > > >
> > > > > Each country (or region) has its own shape which is denoted by the
> d
> > > > > string.  The series of path objects is sufficient to draw all the
> > > > countries
> > > > > using a stroke and a fill.
> > > > >
> > > > > Looking at your coordinates, it looks like a closed polygon.
> > > > > You might want to try to use Mercator projection to project the lat
> > > long
> > > > > coordinates to cartesian coordinates.
> > > > > Here is a very straightforward implementation of this in AS3:
> > > > > *
> > > > >
> > > >
> > >
> https://bitbucket.org/gka/as3-proj/src/ec91cdd098a15ab1e2cbf5bbd3a3221a36507685/net/vis4/map/proj/MercatorProjection.as?at=default=file-view-default
> > > > > <
> > > > >
> > > >
> > >
> https://bitbucket.org/gka/as3-proj/src/ec91cdd098a15ab1e2cbf5bbd3a3221a36507685/net/vis4/map/proj/MercatorProjection.as?at=default=file-view-default
> > > > > >*
> > > > >
> > > > &

Re: [Flex] Map Component

2016-01-13 Thread OmPrakash Muppirala
I took the coordinates from your earlier code and tried it out:

override protected function createMap():void
{
var mc:MercatorProjection  = new MercatorProjection();
mc.initialize();
var a:Array =  [
[151.2571536004, -33.743317043500042 ],
[151.2598582717,-33.74384022351 ],
[151.26121619200012, -33.74746011849993 ],
[151.269228, -33.7499010084 ],
[151.2688710082, -33.757243991500047],
[ 151.2752446078, -33.756977721 ],
[ 151.28052790400011,-33.75872719199981 ],
[ 151.27875936, -33.768415808499981 ],
[151.2728225612, -33.76762191775 ],
[ 151.2702498568,-33.7746235014 ],
[ 151.2755205447, -33.779516363499738 ],
[151.27530051200017, -33.781854430499834 ],
[ 151.2653054402,-33.780174667499921 ],
[ 151.2609552001, -33.777029796999898 ],
[151.259648416, -33.779054695999776 ],
[ 151.2559747524,-33.779087477999894 ],
[ 151.2555614406, -33.783829046499761 ],
[151.2433790083, -33.781951999499825 ],
[ 151.2382950082,-33.778761008499828 ],
[ 151.23245721600017, -33.762912705999895 ],
[151.2338858883, -33.754605225500029 ],
[ 151.24911699200015,-33.75670499304 ],
[ 151.2498397124, -33.752049450499953 ],
[151.24830732800024, -33.75182643319 ],
[ 151.2483393605,-33.748172997499921 ],
[ 151.2515962877, -33.7499421338 ],
[151.2505437448, -33.746457899499944 ],
[ 151.2537732813,-33.74692559762 ],
[ 151.2536995205, -33.7428363572 ],
[151.2571536004, -33.743317043500042 ]]
this.graphics.clear();
this.graphics.lineStyle(2,0xFF);
this.graphics.beginFill(0x99);
for(var i:int = 0; i < a.length-1; i++)
{
var ltlg:Array = a[i];
var p:Point = new Point();
p = mc.project(ltlg[0],ltlg[1], p);
this.graphics.lineTo(p.x,p.y);
}
this.graphics.endFill();
}

The resultant shape looks pretty much like a straight line, though.

Are you sure 151.2571536004, -33.743317043500042 is actually a valid
lat/long co-ordinate?  I am not able to plot it on google maps.

Thanks,
Om


On Wed, Jan 13, 2016 at 1:31 PM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> Give me the list of lat/long co-ordinates and the end result shape they
> should look like.  I will try out a few things and see we can make this
> work.
>
> Thanks,
> Om
>
> On Wed, Jan 13, 2016 at 7:36 AM, OmPrakash Muppirala <bigosma...@gmail.com
> > wrote:
>
>>
>> On Jan 13, 2016 4:36 AM, "Deepak MS" <megharajdee...@gmail.com> wrote:
>> >
>> > Ok. But it isn't converting lat\long values to expected path data
>> > coordinates I believe.
>>
>> What's happening?  Can you post the relevant code and output?
>>
>> Thanks,
>> Om
>>
>> >
>> > On Wed, Jan 13, 2016 at 5:37 PM, OmPrakash Muppirala <
>> bigosma...@gmail.com>
>> > wrote:
>> >
>> > > Yes, it is lat and long. Out is the output point which should get
>> updated
>> > > during the projection.
>> > >
>> > > Thanks,
>> > > Om
>> > > On Jan 13, 2016 3:10 AM, "Deepak MS" <megharajdee...@gmail.com>
>> wrote:
>> > >
>> > > > Thanks Om.
>> > > >
>> > > > I tried that library with following code:
>> > > > var mc:MercatorProjection = new MercatorProjection();
>> > > > for(var i:int = 0; i < a.length; i++) // a here is
>> array of
>> > > > arrays - [ [ 151.25, -33.74 ],[ 151.25, -33.74 ] ..]
>> > > >{
>> > > > var ltlg:Array = a[i];
>> > > > var p:Point = mc.project(ltlg[0],ltlg[1], new
>> Point());
>> > > > //p.x will always be same as lat value - 151.25 and
>> p.y
>> > > > will always be NaN
>> > > >
>> > > > }
>> > > >
>> > > > I looked at MercatorProjection.project() method:
>> > > > override public function project(lam:Number, phi:Number,
>> out:Point):Point
>> > > > {
>> > > > if (spherical) {   //spherical = false
>> > > > out.x = scaleFactor * lam;  //scaleFactor  = 1
>> > > > out.y = scaleFactor *
>> > > Math.log(Math.tan(MapMath.QUARTERPI +
>> > > > 0.5 * phi));
>> > > >     } else {
>> > > > out.x = scaleFactor * lam;
>> > > > out.y = -scaleFactor * Math.log(MapMath.tsfn(phi,
>> > > > Math.sin(phi), e));
>> > > > }
>> > > > return out;
>> > > &g

Re: [Flex] Map Component

2016-01-13 Thread OmPrakash Muppirala
On Wed, Jan 13, 2016 at 2:02 PM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> I took the coordinates from your earlier code and tried it out:
>
> override protected function createMap():void
> {
> var mc:MercatorProjection  = new MercatorProjection();
> mc.initialize();
> var a:Array =  [
> [151.2571536004, -33.743317043500042 ],
> [151.2598582717,-33.74384022351 ],
> [151.26121619200012, -33.74746011849993 ],
> [151.269228, -33.7499010084 ],
> [151.2688710082, -33.757243991500047],
> [ 151.2752446078, -33.756977721 ],
> [ 151.28052790400011,-33.75872719199981 ],
> [ 151.27875936, -33.768415808499981 ],
> [151.2728225612, -33.76762191775 ],
> [ 151.2702498568,-33.7746235014 ],
> [ 151.2755205447, -33.779516363499738 ],
> [151.27530051200017, -33.781854430499834 ],
> [ 151.2653054402,-33.780174667499921 ],
> [ 151.2609552001, -33.777029796999898 ],
> [151.259648416, -33.779054695999776 ],
> [ 151.2559747524,-33.779087477999894 ],
> [ 151.2555614406, -33.783829046499761 ],
> [151.2433790083, -33.781951999499825 ],
> [ 151.2382950082,-33.778761008499828 ],
> [ 151.23245721600017, -33.762912705999895 ],
> [151.2338858883, -33.754605225500029 ],
> [ 151.24911699200015,-33.75670499304 ],
> [ 151.2498397124, -33.752049450499953 ],
> [151.24830732800024, -33.75182643319 ],
> [ 151.2483393605,-33.748172997499921 ],
> [ 151.2515962877, -33.7499421338 ],
> [151.2505437448, -33.746457899499944 ],
> [ 151.2537732813,-33.74692559762 ],
> [ 151.2536995205, -33.7428363572 ],
> [151.2571536004, -33.743317043500042 ]]
> this.graphics.clear();
> this.graphics.lineStyle(2,0xFF);
> this.graphics.beginFill(0x99);
> for(var i:int = 0; i < a.length-1; i++)
> {
> var ltlg:Array = a[i];
> var p:Point = new Point();
> p = mc.project(ltlg[0],ltlg[1], p);
> this.graphics.lineTo(p.x,p.y);
> }
> this.graphics.endFill();
> }
>
> The resultant shape looks pretty much like a straight line, though.
>
> Are you sure 151.2571536004, -33.743317043500042 is actually a valid
> lat/long co-ordinate?  I am not able to plot it on google maps.
>
>
Duh, it is long/lat and not lat/long.  So yes, the co-ordinates are valid
and can be seen on Google Maps.
I will continue to experiment with this when I get some time.

Thanks,
Om


> Thanks,
> Om
>
>
> On Wed, Jan 13, 2016 at 1:31 PM, OmPrakash Muppirala <bigosma...@gmail.com
> > wrote:
>
>> Give me the list of lat/long co-ordinates and the end result shape they
>> should look like.  I will try out a few things and see we can make this
>> work.
>>
>> Thanks,
>> Om
>>
>> On Wed, Jan 13, 2016 at 7:36 AM, OmPrakash Muppirala <
>> bigosma...@gmail.com> wrote:
>>
>>>
>>> On Jan 13, 2016 4:36 AM, "Deepak MS" <megharajdee...@gmail.com> wrote:
>>> >
>>> > Ok. But it isn't converting lat\long values to expected path data
>>> > coordinates I believe.
>>>
>>> What's happening?  Can you post the relevant code and output?
>>>
>>> Thanks,
>>> Om
>>>
>>> >
>>> > On Wed, Jan 13, 2016 at 5:37 PM, OmPrakash Muppirala <
>>> bigosma...@gmail.com>
>>> > wrote:
>>> >
>>> > > Yes, it is lat and long. Out is the output point which should get
>>> updated
>>> > > during the projection.
>>> > >
>>> > > Thanks,
>>> > > Om
>>> > > On Jan 13, 2016 3:10 AM, "Deepak MS" <megharajdee...@gmail.com>
>>> wrote:
>>> > >
>>> > > > Thanks Om.
>>> > > >
>>> > > > I tried that library with following code:
>>> > > > var mc:MercatorProjection = new MercatorProjection();
>>> > > > for(var i:int = 0; i < a.length; i++) // a here is
>>> array of
>>> > > > arrays - [ [ 151.25, -33.74 ],[ 151.25, -33.74 ] ..]
>>> > > >{
>>> > > > var ltlg:Array = a[i];
>>> > > > var p:Point = mc.project(ltlg[0],ltlg[1], new
>>> Point());
>>> > > > //p.x will always be same as lat value - 151.25
>>> and p.y
>>> > > > will always be NaN
>>> > > >
>>> > > > }
>>> > > >
>>> > > > I looked at MercatorProjection.project() method:
>>> > > > 

Re: Bug in mxmlc script

2016-01-12 Thread OmPrakash Muppirala
Ah, I see what's happening.  If I change the SDK by selecting 'Use a
specific SDK', it warns me about overwriting the html-template files.  But,
if I keep the 'Use default SDK' but change the default SDK in the
'Configurie Flex SDK's screen, then there is no such warnings.  The new
default SDK is immediately applied to all the projects in my workspace.
Everything else is intact.

Thanks,
Om

On Mon, Jan 11, 2016 at 11:52 PM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> On Mon, Jan 11, 2016 at 11:11 PM, Alex Harui <aha...@adobe.com> wrote:
>
>>
>>
>> On 1/5/16, 1:07 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
>> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>>
>> >On Tue, Jan 5, 2016 at 10:12 AM, Alex Harui <aha...@adobe.com> wrote:
>> >>
>> >> IIRC, if you change SDKs, it will copy the index.template.html file
>> from
>> >> the SDK folder.
>> >>
>> >
>> >I don't think so.  I've changed SDKs for a project several times; I never
>> >had to redo the customizations I had done on index.html.template.  At
>> >least
>> >FlashBuilder behaves this way.
>>
>> I was just switching FlexJS SDKs for a project in FB (on Mac).  (Project
>> menu, Properties, Flex Compiler, "Use a specific SDK").  Upon hitting OK,
>> I get the following alert "Warning. Because you have changed the options
>> for the HTML wrapper or the SDK version, all files in the "html-template"
>> folder of your project will be overwritten and/or deleted."
>>
>> Does this not happen to you?
>>
>>
> No, I don't recall seeing that message for a while.  What version of FB
> are you using?
>
> Thanks,
> Om
>
>
>> Thanks,
>> -Alex
>>
>>
>


Re: [FlexJS] US States Map example - pure AS3

2016-01-12 Thread OmPrakash Muppirala
Okay, I have created a map component from scratch in Flex.

Here is the basic code
https://github.com/bigosmallm/flexmapcomponent/tree/master/MapComponent

For now, this supports only a WorldMap.  You can follow the code and create
a UK map, it should be straightforward.

You can get your maps from wikipedia as svg files and load them as plain
xml files (like in WorldMap.as)

Hope this is a good starting point for you.

Thanks,
Om

On Tue, Jan 12, 2016 at 12:34 AM, Deepak MS <megharajdee...@gmail.com>
wrote:

> Hi Om,
> I need it ASAP, as I need to wrap it up by this month end. That's great to
> hear from you. Surely, I'll pitch in.
>
> For now, I wanted UK's map with its states\bricks highlighting based on
> data(For Ex: red\yellow\green). If it's for SDK, then I guess it needs to
> be generalised(for both web and mobile). Any ideas what can be the best
> approach for this?
>
> While searching some more, I came across this great place where there are
> so many flex libraries(at least I was not aware of many of them). May be
> this will be of some help to others too:
> https://github.com/uhub/awesome-actionscript
>
> In that list, I got this library which fits by needs.
>
> https://github.com/Srirangan/flex-choropleth-map-component/blob/master/ChoroplethMapExample.mxml
>
> However, it's purely in Flex 3. Need to check if converting it to 4 works
> as intended or if there shall be many changes to it. I'll be doing that
> now.
>
> I'm not quite sure how to get those lat\long points for the boundaries. I
> tried http://geojson.io/ , but that's for custom coordinates.
>
> On Tue, Jan 12, 2016 at 1:20 PM, OmPrakash Muppirala <bigosma...@gmail.com
> >
> wrote:
>
> > Deepak,
> >
> > I have been thinking of adding a similar Map component to the Flex SDK.
> > How urgently do you need this component?
> > Can you help out with adding this to the Flex SDK?  If I have some help,
> I
> > can build it faster.
> >
> > It should not be very hard and I can help you all the way, as needed.
> >
> > Thanks,
> > Om
> >
> > On Mon, Jan 11, 2016 at 8:55 PM, Deepak MS <megharajdee...@gmail.com>
> > wrote:
> >
> > > Hi there,
> > > We have a requirement to have a heat map for one of the application.
> It's
> > > required for both web and iPad(app). I have a common library for both
> and
> > > one of the views needs this heat map(of UK).
> > >
> > > Om,
> > > AS Code: https://gist.github.com/anonymous/d1d8d6d8c544f985e387
> > > That code seems to be FlexJS specific. Is there something similar which
> > is
> > > purely using Flex\AIR? I tried to search, but all of them seem to be
> > actual
> > > maps(like google, modestmap, ArcGIS etc) which needs network
> > connectivity.
> > > App would be offline, hence I just need to draw that country and
> > highlight
> > > specific parts of the country based on data.
> > >
> > > Kindly let me know how can I go about it.
> > >
> > > Cheers!
> > > Deepak
> > >
> > > On Sat, Jun 20, 2015 at 2:34 AM, OmPrakash Muppirala <
> > bigosma...@gmail.com
> > > >
> > > wrote:
> > >
> > > > Here is an updated version of the US states map example with
> animation
> > > > added:
> > > >
> > > > Demo: http://bigosmallm.github.io/flexjs/mapexample/
> > > > AS Code: https://gist.github.com/anonymous/d1d8d6d8c544f985e387
> > > > JS Code: https://gist.github.com/anonymous/08b471bae33a8ffba4d1
> > > >
> > > > The entire app was written in ActionScript3.  The compiler took care
> of
> > > > creating all the HTML, Javascript and CSS files.  The resulting app
> > runs
> > > on
> > > > all browsers (including iOS devices ;-) )
> > > >
> > > > Needless to say, this is a huge milestone.  Look forward to more cool
> > > > stuff!
> > > >
> > > > Thanks,
> > > > Om
> > > >
> > >
> >
>


Re: draft blog post for 4.15 release

2016-01-11 Thread OmPrakash Muppirala
On Mon, Jan 11, 2016 at 2:53 PM, Justin Mclean  wrote:

> Hi,
>
> All done (except the new ASDocs). someone mind tweeting about from the
> official account?
>

I can do that.

Thanks,
Om


>
> Thanks,
> Justin


Re: draft blog post for 4.15 release

2016-01-11 Thread OmPrakash Muppirala
Here is the link to the tweet:
https://twitter.com/ApacheFlex/status/686690759479656448

Please help publicize, by retweeting it.

Justin, thanks for shepherding this release!

Thanks,
Om

On Mon, Jan 11, 2016 at 3:04 PM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> On Mon, Jan 11, 2016 at 2:53 PM, Justin Mclean <justinmcl...@me.com>
> wrote:
>
>> Hi,
>>
>> All done (except the new ASDocs). someone mind tweeting about from the
>> official account?
>>
>
> I can do that.
>
> Thanks,
> Om
>
>
>>
>> Thanks,
>> Justin
>
>
>


Re: [FalconJX] -js-output-type=node

2016-01-11 Thread OmPrakash Muppirala
Whoaaa!

On Mon, Jan 11, 2016 at 5:25 PM, Josh Tynjala  wrote:

> FalconJX just got Node.js support today.
>
> //--- begin HelloNode.as
>
> package
> {
> public class HelloNode
> {
> public function HelloNode()
> {
> trace("Hello Node!");
> trace(process.version);
> }
> }
> }
> var process:Object = require("process");
>
> //--- end HelloNode.as
>
> //--- begin usage
>
> asnodec HelloNode.as
> node bin/js-debug/index.js
>
> //--- end usage
>
> I'm sure there are bugs. I probably forgot to add something important in
> the build script, but it works on my machine! :)
>
> - Josh
>


Re: Bug in mxmlc script

2016-01-11 Thread OmPrakash Muppirala
On Mon, Jan 11, 2016 at 11:11 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 1/5/16, 1:07 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >On Tue, Jan 5, 2016 at 10:12 AM, Alex Harui <aha...@adobe.com> wrote:
> >>
> >> IIRC, if you change SDKs, it will copy the index.template.html file from
> >> the SDK folder.
> >>
> >
> >I don't think so.  I've changed SDKs for a project several times; I never
> >had to redo the customizations I had done on index.html.template.  At
> >least
> >FlashBuilder behaves this way.
>
> I was just switching FlexJS SDKs for a project in FB (on Mac).  (Project
> menu, Properties, Flex Compiler, "Use a specific SDK").  Upon hitting OK,
> I get the following alert "Warning. Because you have changed the options
> for the HTML wrapper or the SDK version, all files in the "html-template"
> folder of your project will be overwritten and/or deleted."
>
> Does this not happen to you?
>
>
No, I don't recall seeing that message for a while.  What version of FB are
you using?

Thanks,
Om


> Thanks,
> -Alex
>
>


Re: Installer updated for 4.15

2016-01-11 Thread OmPrakash Muppirala
On Mon, Jan 11, 2016 at 12:26 PM, Justin Mclean  wrote:

> Hi,
>
> > Is there any reason why Flash/Air 18 is preselected instead of the latest
> > version?
>
> Versions 18 is the extended support release. But we could make it default
> to 20, what do others think?
>

+1


>
> There’s also this issue [2]
>
> Thanks,
> Justin
>
> 1.
> http://blogs.adobe.com/flashplayer/2015/05/upcoming-changes-to-flash-players-extended-support-release-2.html
> 2.
> http://blogs.adobe.com/flashplayer/2015/12/issues-downgrading-from-air-20-mac.html


Re: Updated Flash player / AIR hashes

2016-01-11 Thread OmPrakash Muppirala
On Sat, Jan 9, 2016 at 5:31 PM, Justin Mclean 
wrote:

> Hi,
>
> Just updated the hash and a few paths in the Flex installer and I’m
> testing out on OS X that everything is working. Someone mind testing on
> windows for me? In particular FP/AIR version 18, 19 and 20.
>

I just tested 4.15 with AIR/FP 18, 19 and 20 on Windows 7.  It seems to be
working fine.

Thanks,
Om


>
> Thanks,
> Justin


Re: Updated Flash player / AIR hashes

2016-01-11 Thread OmPrakash Muppirala
On Mon, Jan 11, 2016 at 1:36 PM, Justin Mclean 
wrote:

> Hi,
>
> > I just tested 4.15 with AIR/FP 18, 19 and 20 on Windows 7.  It seems to
> be
> > working fine.
>
> Thanks for that.
>
> Just looked at the google stats and there been 50+ installs of 4.15.0
> already with only a handful of installation errors. (Which is within normal
> range of errors.)
>
> However the install of the nightly is broken. What needs to be done to
> jerkin box to fix this?
>
> Here’s the log:
>
> Downloading Apache Flex SDK from:
> http://apacheflexbuild.cloudapp.net:8080/job/flex-sdk_nightly/lastSuccessfulBuild/artifact/out/apache-flex-sdk-4.16.0-bin.tar.gz
> Unable to download Apache Flex SDK
> Aborting Installation
>
> (My guess is that it's still building 4.15 not 4.16.)
>

You are right, it is still building 4.15.0
http://apacheflexbuild.cloudapp.net:8080/job/flex-sdk_nightly/lastSuccessfulBuild/artifact/out/apache-flex-sdk-4.15.0-bin.tar.gz
seems to be working.

I think flex-sdk-description.xml needs to be updated.

Thanks,
Om


>
> Thanks,
> Justin


Re: draft blog post for 4.15 release

2016-01-11 Thread OmPrakash Muppirala
The link from News to
https://blogs.apache.org/flex/entry/apache_flex_4_15_released is not active
yet?

Everything else looks good!

Thanks,
Om

On Mon, Jan 11, 2016 at 12:54 PM, Justin Mclean 
wrote:

> Hi,
>
> Someone mind checking these pages for the 4.5 update:
> http://flex.staging.apache.org
> http://flex.staging.apache.org/download-source.html
> http://flex.staging.apache.org/download-binaries.html
>
> Before we make everything live and send out the announcement.
>
> Is there anything else we have forgotten?
>
> I do notice that the news section seem to be missing the latest FlexJS
> release.
>
> Thanks,
> Justin


Re: draft blog post for 4.15 release

2016-01-11 Thread OmPrakash Muppirala
>
>
> I do notice that the news section seem to be missing the latest FlexJS
> release.
>

Mind adding a quick blurb for FlexJS 0.5.0 while you are there?

Thanks,
Om


Re: [FalconJX] Is it time to delete the FalconJS code?

2016-01-11 Thread OmPrakash Muppirala
Maybe this will work (based on this stackoverflow answer [1])

1.  Move the code to its own branch.

2.  Then tag the branch:
git tag archive/ 

3.  Then delete the branch
git branch -d 

To restore the branch:

git checkout -b  archive/

http://stackoverflow.com/questions/1307114/how-can-i-archive-git-branches

On Mon, Jan 11, 2016 at 1:05 PM, Michael Schmalle  wrote:

> Can't you just create a tag like "Last know existence of FalconJS" commit
> then delete. Or were other people saying they still wanted to code
> somewhere, seems to me that was some of the conversation.
>
> Mike
>
> On Mon, Jan 11, 2016 at 4:02 PM, Alex Harui  wrote:
>
> > Does anybody have an actual set of steps to create some sort of archival
> > branch or can I just delete this project?
> >
> > -Alex
> >
> > On 12/21/15, 7:50 AM, "Michael Schmalle" 
> > wrote:
> >
> > >Well garbage is relative. I didn't mean it in a derogatory way, only
> that
> > >the original authors were the ones that could understand it.
> > >
> > >As far as FlaconJX, I wrote that as a prototype based off of my prior
> > >experience with AST traversing and the visitor pattern. That was almost
> 3
> > >years ago now so as far as it actually getting refactored on an
> > >application
> > >level with compilation unit passes, it never happened! :)
> > >
> > >When iw rote the front and backend I was more using the Flex compiler
> as a
> > >template, and was slowing digesting how the multithreaded compilation
> > >worked in Falcon.
> > >
> > >It that compiler was a full time/part time paid job for myself I could
> > >easily put time into actually optimizing and documenting how the
> > >compiler(Falcon) end actually runs. But that is not the case so we have
> to
> > >guess right now what actually could be changed.
> > >
> > >Besides, my solution was just one and there may be other ways that the
> > >compiler could transpile as to js way faster but it's what I knew at the
> > >time and had already done it in a few other projects.
> > >
> > >Mike
> > >
> > >On Mon, Dec 21, 2015 at 10:44 AM, Alex Harui  wrote:
> > >
> > >> @Harbs,
> > >>
> > >> I don't know enough about Git and branching to know if this is the
> right
> > >> way to "archive" stuff before deleting, but I would think that branch
> > >> would need special handling after it is created because any attempt to
> > >> merge with that branch might result in the deletion of that code.
> > >>
> > >> @Mark & Mike,
> > >>
> > >> Where would you create such an archive folder such that it doesn't
> show
> > >>up
> > >> when grep-ing the code?  IMO, that's the goal: on GitHub and locally,
> I
> > >> don't want these files to be found by search tools.
> > >>
> > >> @Mike,
> > >>
> > >> I would caution against calling that code base "garbage".  It worked
> > >>well
> > >> enough to produce the early prototypes, and you never know when we
> might
> > >> want to seek the advice and participation of its author.  Yeah, some
> > >>parts
> > >> of it were really hard to learn, but it did do things that I had to go
> > >>fix
> > >> again in FalconJX, and I think FalconJX still runs several of the
> phases
> > >> of the CompilationUnit code that we may need to stop doing some day
> for
> > >> performance reasons and go through another round of bug fixing when we
> > >>do,
> > >> because semantic errors seem to be caught during reduction.  FalconJS
> > >>was
> > >> leveraging the CompilationUnit phases.
> > >>
> > >> -Alex
> > >>
> > >> On 12/21/15, 3:27 AM, "Michael Schmalle" 
> > >> wrote:
> > >>
> > >> >Yup, I agree, it doesn't really need to be deleted but it needs to be
> > >>so
> > >> >far away from FalconJX that a common dev wouldn't mistake it for
> > >>anything
> > >> >other than archived history.
> > >> >
> > >> >The code is garbage, another reason why FalconJX even exists, I hated
> > >>that
> > >> >code with a passion. :)
> > >> >
> > >> >Mike
> > >> >
> > >> >On Mon, Dec 21, 2015 at 6:03 AM, Kessler CTR Mark J <
> > >> >mark.kessler@usmc.mil> wrote:
> > >> >
> > >> >> Might as well make an archive folder that's generic and we can put
> > >> >> anything else we want to keep but don't want in the main source
> > >>areas.
> > >> >>
> > >> >>
> > >> >> -Mark
> > >> >>
> > >>
> > >>
> >
> >
>


Re: AW: [ApacheCon NA] Whose going and what topics?

2016-01-08 Thread OmPrakash Muppirala
On Jan 8, 2016 9:17 AM, "Alex Harui" <aha...@adobe.com> wrote:
>
> I've been wondering if there should be a "Client" track as an umbrella for
> both Flex and Cordova talks.  Especially since FlexJS Mobile is output via
> Cordova.  If folks think that's a good idea I will hit up the Cordova
> folks I know to see what they think.

+1 for a Client track.
Although we will be doing not just FlexJS, but also Flex web and  Flex
Mobile (which is kinda like a competitor to Cordova)

Apache Wicket might be a good target as well.

Thanks,
Om

>
> -Alex
>
> On 1/8/16, 1:56 AM, "Christofer Dutz" <christofer.d...@c-ware.de> wrote:
>
> >A track makes it easier to get at least enough talks for the track
> >selected. Without a track it has to sort of fit into another track.
> >Depending on how they cut the tracks this could be difficult. We we want
> >to go for a track, I could re-submit updated versions of my last
> >submissions regarding BlazeDS and FlexJS support in Maven.
> >
> >But my stomach sort of tells me that it could be difficult to get a track
> >as the attendee numbers weren't great last time. That's why I was
> >intending on submitting something Flexy under the hood of a different
> >track (After all ... the (mobile) frontend and backend (BlazeDS) will be
> >Apache Flex) ;-)
> >
> >If we want a track, I could try to take care of this ... but only if
> >there is interest in this ... I remember feeling left a little alone with
> >the content at first for ApacheCon EU last time (Thanks to Justin and Om
> >it wasn't a big problem though :-) )
> >
> >Chris
> >
> >
> >Von: omup...@gmail.com <omup...@gmail.com> im Auftrag von OmPrakash
> >Muppirala <bigosma...@gmail.com>
> >Gesendet: Freitag, 8. Januar 2016 00:57
> >An: dev@flex.apache.org
> >Betreff: Re: [ApacheCon NA] Whose going and what topics?
> >
> >On Thu, Jan 7, 2016 at 3:51 PM, Alex Harui <aha...@adobe.com> wrote:
> >
> >>
> >>
> >> On 1/7/16, 3:46 PM, "omup...@gmail.com on behalf of OmPrakash
Muppirala"
> >> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
> >>
> >> >I would like to propose something on FlexJS or Flex Mobile, depending
> >>on
> >> >what others are doing.
> >> >
> >> >Should we ask for a Flex track here as well?
> >>
> >> Don't we have to have a track to get Flex sessions accepted at all?
> >>
> >
> >Not necessarily.  If we have a track, there is a better chance of Flex
> >talks being accepted.  If we don't, then it is up in the air as to which
> >ones get selected.  At least, that's the impression I got from the
> >ApacheCon EU selection process.
> >
> >
> >>
> >> You seem a bit more interested in the JS.swc usage.  Do you want to do
a
> >> session on that?
> >>
> >
> >Sure, that would be fun.  We need to come up with a cool name for 'JS.swc
> >usage'.  We have been lumping everything under FlexJS, which seems wrong.
> >
> >It would be nice if someone else did a talk on Flex Mobile.  Any takers?
> >You don't have to be a committer or a PMC member to give a talk.
> >
> >Thanks,
> >Om
> >
> >
> >>
> >> -Alex
> >>
> >>
>


Re: [VOTE] Release Apache Flex SDK 4.15 RC1

2016-01-07 Thread OmPrakash Muppirala
+1 Binding

Tested the source kits on Windows 7, 64 Bit, Java version "1.8.0_65"
MD5 checksum matches
Good signature
Source kit build successful
Ran ant -f installer.xml -Dair.sdk.version=19.0 and ant frameworks-rsls.
Build successful.
Flash Builder likes the new SDK.
Recompiled existing large Flex web application, everything runs fine
Recompiled exisiting large Flex mobile application, everything runs fine

(App seems to be running faster.  What did we do??)

Thanks,
Om

On Thu, Jan 7, 2016 at 12:24 PM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> +0 Binding
>
> Testing the source kits on Windows 7, 64 Bit, Java version "1.8.0_65"
> MD5 checksum matches
> Good signature
> Source kit build successful
> Ran ant -f installer.xml -Dair.sdk.version=19.0.  Reports 'build
> successful,  C:\temp\4.15.0_test is now an IDE compatible folder', but
> Flash Builder complains saying 'Directory does not contain a Flex SDK' and
> AIR version 16.0 was downloaded.
>
> Thanks,
> Om
>
>
> On Mon, Jan 4, 2016 at 2:16 PM, Alex Harui <aha...@adobe.com> wrote:
>
>> +1
>> Package
>>
>> https://dist.apache.org/repos/dist/dev/flex/sdk/4.15.0/rc1/apache-flex-sdk-
>> 4.15.0-src.tar.gz
>> Java 1.7
>> OS: Mac OS X x86_64 10.9.5
>> Source kit signatures match: y
>> Source kit builds: y
>> README is ok: y
>> RELEASE_NOTES is ok: y
>> NOTICE is ok: y
>> LICENSE is ok: y
>> No unapproved licenses or archives: y
>> No unapproved binaries: y
>>
>> Package
>>
>> https://dist.apache.org/repos/dist/dev/flex/sdk/4.15.0/rc1/binaries/apache-
>> flex-sdk-4.15.0-bin.tar.gz
>> <https://dist.apache.org/repos/dist/dev/flex/sdk/4.15.0/rc1/binaries/apache-flex-sdk-4.15.0-bin.tar.gz>
>> Binary kit signatures match: y
>> NOTICE is ok: y
>> LICENSE is ok: y
>> No unapproved licenses or files in jars: y
>> No unapproved licenses or archives in binary package: y
>> No unapproved binaries in binary package: y
>>
>> Thanks for being the RM.
>>
>> -Alex
>>
>> On 1/4/16, 1:14 PM, "Justin Mclean" <jus...@classsoftware.com> wrote:
>>
>> >Hi,
>> >
>> >This is a  Apache Flex 4.15 release candidate 1. Please see the
>> >RELEASE_NOTES and the README.
>> >
>> >The release candidate can be found here;
>> >https://dist.apache.org/repos/dist/dev/flex/sdk/4.15.0/rc1/
>> ><https://dist.apache.org/repos/dist/dev/flex/sdk/4.15.0/rc1/>
>> >
>> >Before voting please review the section,"What are the ASF requirements on
>> >approving a release?", at:
>> >http://www.apache.org/dev/release.html#approving-a-release
>> ><http://www.apache.org/dev/release.html#approving-a-release>
>> >
>> >At a minimum you would be expected to check that:
>> >- MD5 and signed packages are correct
>> >- README, RELEASE_NOTES, NOTICE and LICENSE files are all fine
>> >- That you can compile from source package
>> >- That the SDK can be used in your IDE of choice
>> >- That the SDK can be used to make a mobile, desktop and browser
>> >application
>> >
>> >Please vote to approve this release:
>> >+1 Approve the release
>> >-1 Don’t approve the release (please provide specific comments to why)
>> >
>> >This vote will be open for 72 hours or until a result can be called.
>> >
>> >The vote passes if there is:
>> >- At least 3 +1 votes from the PMC
>> >- More positive votes than negative votes
>> >
>> >If you find an issue with the release that's a "show stopper" please
>> don't
>> >hold off voting -1. If someone votes -1 please continue testing we want
>> to
>> >try and catch as many issues as we can and cut down on the number of
>> >release candidates. Remember existing voters can change their vote during
>> >the voting process.
>> >
>> >People who are not in PMC are also encouraged to test out the release and
>> >vote, although their votes will not be binding, they can influence how
>> the
>> >PMC votes.
>> >
>> >When voting please indicate what OS, IDE, Flash Player version and AIR
>> >version you tested the SDK with.
>> >
>> >Please put all discussion about this release in the DISCUSSION thread not
>> >this VOTE thread.
>> >
>> >Thanks,
>> >Justin
>>
>>
>


Re: [ApacheCon NA] Whose going and what topics?

2016-01-07 Thread OmPrakash Muppirala
I would like to propose something on FlexJS or Flex Mobile, depending on
what others are doing.

Should we ask for a Flex track here as well?

Thanks,
Om

On Thu, Jan 7, 2016 at 6:16 AM, Christofer Dutz 
wrote:

> Hi,
>
> Well I'm currently building a little robot. On that I'll be running
> BlazeDS to communicate with a Mobile App ... hopefully I'll be finished
> with the hardware part in a Week or so. As soon as that's done I'll submit
> some Mobile, IoT related talk to the "ApacheCon NA - Core". If that talk is
> accepted, I'll be going. If not it would be hard for me to get that request
> past my employer ;-)
>
> Chris
>
> 
> Von: Alex Harui 
> Gesendet: Mittwoch, 6. Januar 2016 18:19
> An: dev@flex.apache.org
> Betreff: [ApacheCon NA] Whose going and what topics?
>
> Hi,
>
> There is one month to go to submit presentations for ApacheCon North
> America (in Vancouver, British Columbia May 12-13, 2016).
>
> I can do a FlexJS overview or deep-dive or something like that.  What have
> other's submitted in the Flex arena (or are planning to submit)?
>
> Thanks,
> -Alex
>
>


Re: [ApacheCon NA] Whose going and what topics?

2016-01-07 Thread OmPrakash Muppirala
On Thu, Jan 7, 2016 at 3:51 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 1/7/16, 3:46 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >I would like to propose something on FlexJS or Flex Mobile, depending on
> >what others are doing.
> >
> >Should we ask for a Flex track here as well?
>
> Don't we have to have a track to get Flex sessions accepted at all?
>

Not necessarily.  If we have a track, there is a better chance of Flex
talks being accepted.  If we don't, then it is up in the air as to which
ones get selected.  At least, that's the impression I got from the
ApacheCon EU selection process.


>
> You seem a bit more interested in the JS.swc usage.  Do you want to do a
> session on that?
>

Sure, that would be fun.  We need to come up with a cool name for 'JS.swc
usage'.  We have been lumping everything under FlexJS, which seems wrong.

It would be nice if someone else did a talk on Flex Mobile.  Any takers?
You don't have to be a committer or a PMC member to give a talk.

Thanks,
Om


>
> -Alex
>
>


Re: [Non-DoD Source] [DISCUSSION] Apache Flex SDK 4.15 release candidate 1

2016-01-07 Thread OmPrakash Muppirala
On Thu, Jan 7, 2016 at 1:06 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 1/7/16, 12:56 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
> >>
> >> I recall this seeing something similar before (previous version) and I
> >> think the issue was that the using an OS X made SDK on Windows. The
> >>scripts
> >> only downloads the version of AIR for a single platform. Perhaps the
> >> installer is grabbing the OS X version of AIR??
> >>
> >
> >How would I check and confirm if this is indeed the casel?
> >
>
> Post the Ant output somewhere.
>
> I just tried it on Mac and it worked fine.  Don't forget to follow the
> README instructions and run "ant frameworks-rsls" otherwise FB won't
> recognize the folder as a Flex SDK.
>

You are right, it was user error.  I did not run ant frameworks-rsls.
That's why FB did not like this SDK.

I retried everything from scratch, the correct AIR SDK (19.0) is being
downloaded as well.

Changing my vote to +1.

Thanks,
Om


>
> -Alex
>
>


Re: [FlexJS] Extending builtin HTML elements

2016-01-07 Thread OmPrakash Muppirala
On Wed, Jan 6, 2016 at 11:57 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 1/6/16, 11:36 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >>
> >> Add the following as the ASDoc for the WebProject1() method, then it
> >> should work:
> >>
> >> /**
> >>  * @flexjsignorecoercion MyButton
> >>  */
> >> >public function WebProject1() {
> >> >var button : MyButton = document.createElement("button") as MyButton;
> >> >button.innerHTML = "Press Me";
> >> >document.body.appendChild(button);
> >> >}
> >> >}
> >> >}
> >>
> >
> >That kind of worked.  Compiles fine and creates the button.  But
> >MyButton's
> >constructor does not get called.  Any code I write inside MyButton.as
> >seems
> >to be moot.
> >
> >I'm wondering if document.createElementNS might be useful here?
>
> Well, I doubt it.  IMO, you are trying to mix scripting APIs with
> object-oriented APIs.  Just like you wouldn't create a plain button by
> calling "new HTMLButtonElement()", you have to pick a pattern and stick
> with it.
>
> The FlexJS framework components internally call createElement for you and
> wrap the HTMLButtonElement since you can't actually subclass it and
> instantiate it.  If HTML had an extensible component/element API we
> probably wouldn't have bothered to create FlexJS.
>
> Then you can use all object-oriented APIs/patterns since that's what we're
> used to in ActionScript/Flash.  I suppose you could create another
> component set that even more thinly wraps HTMLButtonElement than we do
> already, and then make "new HTMLButtonElement()" work.  I've chosen to
> pack a bit more in org.apache.flex.html.Button so it can have more
> Flex-like APIs
>
> -Alex
>


Turns out that WebComponents provides exactly these kinds of APIs.  And
they seem to be working (almost) fine with FlexJS/Falcon :-)

Here is how I am making this work:

MyButton.as

package {
public class MyButton extends HTMLButtonElement {
public function MyButton(label) {
super();
}
public function createdCallback() {
var sr = this['createShadowRoot'](); //TODO:FIXME
HTMLElement.createShadowRoot is typed to be an Object instead of a Function
sr.innerHTML = 'Click M';
}
}
}

WebProject1.as

package {

public class WebProject1 {
public function WebProject1() {
var MyButtonClass = document['registerElement']('my-button', { //TODO:FIXME
HTMLElement.registerElement is typed to be an Object instead of a Function
 prototype: Object['create'](MyButton['prototype']), //TODO:FIXME
Object.create and Object.prototype is missing
 'extends': 'button'});

var button = new MyButtonClass();
button.addEventListener("click", button_clickListener,false);
document.body.appendChild(button);
}
private function button_clickListener(event : MouseEvent) : void {
alert("Hello World");
}
}
}

A few things to note:

1.  The extended component has a few lifecycle methods; createdCallback
being one.  All code that usually goes in the Constructor should go in
here.
2.  Before instantiating the new component, a call to
document.registerElement should be made.
3.  Works only one Chrome and Firefox (need to enable WebComponents in
chrome://flags/#enable-experimental-web-platform-features and Firefox:
about:config, dom.webcomponents.enabled)
4.  Seems like MS Edge and Safari will be supporting this soon:
http://caniuse.com/#feat=shadowdom

I don't know how useful all this is, but is very cool that we can support
WebComponents out of the box.

I am going to experiment more with this!

Thanks,
Om


Re: [VOTE] Release Apache Flex SDK 4.15 RC1

2016-01-07 Thread OmPrakash Muppirala
+0 Binding

Testing the source kits on Windows 7, 64 Bit, Java version "1.8.0_65"
MD5 checksum matches
Good signature
Source kit build successful
Ran ant -f installer.xml -Dair.sdk.version=19.0.  Reports 'build
successful,  C:\temp\4.15.0_test is now an IDE compatible folder', but
Flash Builder complains saying 'Directory does not contain a Flex SDK' and
AIR version 16.0 was downloaded.

Thanks,
Om


On Mon, Jan 4, 2016 at 2:16 PM, Alex Harui  wrote:

> +1
> Package
> https://dist.apache.org/repos/dist/dev/flex/sdk/4.15.0/rc1/apache-flex-sdk-
> 4.15.0-src.tar.gz
> Java 1.7
> OS: Mac OS X x86_64 10.9.5
> Source kit signatures match: y
> Source kit builds: y
> README is ok: y
> RELEASE_NOTES is ok: y
> NOTICE is ok: y
> LICENSE is ok: y
> No unapproved licenses or archives: y
> No unapproved binaries: y
>
> Package
> https://dist.apache.org/repos/dist/dev/flex/sdk/4.15.0/rc1/binaries/apache-
> flex-sdk-4.15.0-bin.tar.gz
> 
> Binary kit signatures match: y
> NOTICE is ok: y
> LICENSE is ok: y
> No unapproved licenses or files in jars: y
> No unapproved licenses or archives in binary package: y
> No unapproved binaries in binary package: y
>
> Thanks for being the RM.
>
> -Alex
>
> On 1/4/16, 1:14 PM, "Justin Mclean"  wrote:
>
> >Hi,
> >
> >This is a  Apache Flex 4.15 release candidate 1. Please see the
> >RELEASE_NOTES and the README.
> >
> >The release candidate can be found here;
> >https://dist.apache.org/repos/dist/dev/flex/sdk/4.15.0/rc1/
> >
> >
> >Before voting please review the section,"What are the ASF requirements on
> >approving a release?", at:
> >http://www.apache.org/dev/release.html#approving-a-release
> >
> >
> >At a minimum you would be expected to check that:
> >- MD5 and signed packages are correct
> >- README, RELEASE_NOTES, NOTICE and LICENSE files are all fine
> >- That you can compile from source package
> >- That the SDK can be used in your IDE of choice
> >- That the SDK can be used to make a mobile, desktop and browser
> >application
> >
> >Please vote to approve this release:
> >+1 Approve the release
> >-1 Don’t approve the release (please provide specific comments to why)
> >
> >This vote will be open for 72 hours or until a result can be called.
> >
> >The vote passes if there is:
> >- At least 3 +1 votes from the PMC
> >- More positive votes than negative votes
> >
> >If you find an issue with the release that's a "show stopper" please don't
> >hold off voting -1. If someone votes -1 please continue testing we want to
> >try and catch as many issues as we can and cut down on the number of
> >release candidates. Remember existing voters can change their vote during
> >the voting process.
> >
> >People who are not in PMC are also encouraged to test out the release and
> >vote, although their votes will not be binding, they can influence how the
> >PMC votes.
> >
> >When voting please indicate what OS, IDE, Flash Player version and AIR
> >version you tested the SDK with.
> >
> >Please put all discussion about this release in the DISCUSSION thread not
> >this VOTE thread.
> >
> >Thanks,
> >Justin
>
>


Re: [Non-DoD Source] Re: [DISCUSSION] Apache Flex SDK 4.15 release candidate 1

2016-01-07 Thread OmPrakash Muppirala
As I mentioned in the VOTE thread, the build is successful.
But when I ran ant -f installer.xml -Dair.sdk.version=19.0.  Reports 'build
successful,  C:\temp\4.15.0_test is now an IDE compatible folder', but
Flash Builder complains saying 'Directory does not contain a Flex SDK' and
AIR version 16.0 was downloaded.

Am I doing something wrong here?

Thanks,
Om

On Thu, Jan 7, 2016 at 3:26 AM, Kessler CTR Mark J <
mark.kessler@usmc.mil> wrote:

> I'll be able to vote on it tonight,  one of dev boxes is down for the
> count.   Has anything change since I looked at the 4.15 nightly?
>
> -Mark
>
> -Original Message-
> From: Justin Mclean [mailto:jus...@classsoftware.com]
> Sent: Thursday, January 07, 2016 12:54 AM
> To: dev@flex.apache.org
> Subject: [Non-DoD Source] Re: [DISCUSSION] Apache Flex SDK 4.15 release
> candidate 1
>
> Hi,
>
> Do any PMC members have time to look and vote on this release candidate?
>
> Thanks,
> Justin
>


Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-06 Thread OmPrakash Muppirala
On Wed, Jan 6, 2016 at 12:29 AM, OK <okrue...@edscha.com> wrote:

> OmPrakash Muppirala wrote
> > Are you using the command prompt or Cygwin?
>
> Command prompt. Is Cygwin needed or a better way?
>


Not necessarily.  I have Cygwin installed and it seems to work fine.  I
have not been able to test without Cygwin.  If we can use FlexJS on Windows
without Cygwin, that would be a big win.

What error do you get when you simply try to run asjsc without the full
path on Command Prompt?


>
>
> OmPrakash Muppirala wrote
> > I don't think mxmlc is supposed to work with this project.  We are having
> > a
> > lengthy discussion about this in another thread.  Try compiling any
> > project
> > under examples/flexjs with mxmlc.  Projects under examples/native will
> > work
> > fine with asjsc.
>
> I only followed your instructions like a monkey: ;-)
>

Not your fault.  The instructions were incorrect :-)


>
> OmPrakash Muppirala wrote
> > ...
> > Windows:
> > mxmlc
> >
> "C:\Users\omuppirala\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStatesMap\src\USStatesMap.as"
> > ...
>
> Just tested "examples/flexjs/DataBindingExample" and it works, great!
>

Awesome!



>
>
> OmPrakash Muppirala wrote
> > Not sure how to test this at this point.  Once we resolve the discussion
> > in
> > that other thread, we should be able to make progress on this use case.
>
> Probably we talk past each other.
> I'd like to simply call the generated .js file in a browser.
> I looked at the generated "examples/flexjs/DataBindingExample/index.html"
> and modify it.
> And this works for me, so the asjsc test is successful also:
>
> 
> 
> 
> 
> 
>
>
> 
> 
>
> 
> 
>

That's perfect. We are discussing if we should have asjsc generate this
simple html file by default so that newcomers like you have a better first
impression and an easier starting point with FlexJS.


>
> One last, perhaps stupid question:
> Is there a difference between the FlexJS installation that is installed by
> using the standard installer respectively your node module?
>

Techinically, there should be no difference.  They should exactly be the
same.  If there are differences, they would be considered bugs.  I have not
ported over the IDE based stuff from the Installer because this is intended
only for command prompt usage via node/npm.


>
> At least your node module encourage me to get in touch with FlexJS for the
> first time!
> Thanks for that and for providing this cool node module!!!
>

That is great to hear.  That is exactly the idea.  Installing via the
Apache Flex Installer seems like a cumbersome way to introduce newcomers to
FlexJS.  And managing projects using npm seems to be the in thing in the
JavaScript world today.  Hence this attempt :-)

Thanks again for trying this out!

Regards,
Om


>
> Olaf
>
>
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/FlexJS-Need-your-help-testing-the-flexjs-npm-module-tp50911p51048.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-06 Thread OmPrakash Muppirala
On Wed, Jan 6, 2016 at 1:26 AM, OK <okrue...@edscha.com> wrote:

> OmPrakash Muppirala wrote
> > If we can use FlexJS on Windows without Cygwin, that would be a big win.
>
> For me it seems that it works without Cygwin.
>
>
> OmPrakash Muppirala wrote
> > What error do you get when you simply try to run asjsc without the full
> > path on Command Prompt?
>
> "The system can't find the specified path" (Translated from german)
>

I am seeing this problem as well from Command Prompt.  I think we need to
use asjsc.cmd instead of asjsc for Command Prompt.  I will tinker with this
a bit and see if we can get this working.

Thanks,
Om


>
>
> OmPrakash Muppirala wrote
> > We are discussing if we should have asjsc generate this
> > simple html file by default so that newcomers like you have a better
> first
> > impression and an easier starting point with FlexJS.
>
> +1 (If there are no disadvantages with creating this html file)
>
> Thanks,
> Olaf
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/FlexJS-Need-your-help-testing-the-flexjs-npm-module-tp50911p51050.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-06 Thread OmPrakash Muppirala
On Wed, Jan 6, 2016 at 4:18 PM, Josh Tynjala <joshtynj...@gmail.com> wrote:

> That might be tricky. Maybe you could register a Node script instead.


This might work.  I will try it out.


> It
> might be able to tell if it's running in cmd/PowerShell versus Cygwin. Then
> it can choose to run either asjsc or asjsc.bat.
>
> I'm pretty sure that Windows will run asjsc.bat even if you omit the .bat
> extension, if you run it directly from cmd/PowerShell. However, I wonder if
> there's a difference because it's being run indirectly through Node.
>

Yeah, it's looking for sh.exe in some wrong location.  Which is the cause
of the 'The system cannot find the path specified.' error message.


>
> - Josh
>
> On Wed, Jan 6, 2016 at 3:37 PM, OmPrakash Muppirala <bigosma...@gmail.com>
> wrote:
>
> > On Wed, Jan 6, 2016 at 3:33 PM, Josh Tynjala <joshtynj...@gmail.com>
> > wrote:
> >
> > > Yes, on the Windows command prompt (and PowerShell), you need to run
> .bat
> > > version of the script. The shell script may work correctly in Cygwin,
> > > though.
> > >
> >
> > Is there a good way to npm to register asjsc for OSX/Cygwin and asjsc.bat
> > for Command Prompt/PowerShell?
> >
> > Thanks,
> > Om
> >
> >
> > >
> > > - Josh
> > >
> > > On Wed, Jan 6, 2016 at 3:23 PM, OmPrakash Muppirala <
> > bigosma...@gmail.com>
> > > wrote:
> > >
> > > > On Wed, Jan 6, 2016 at 1:26 AM, OK <okrue...@edscha.com> wrote:
> > > >
> > > > > OmPrakash Muppirala wrote
> > > > > > If we can use FlexJS on Windows without Cygwin, that would be a
> big
> > > > win.
> > > > >
> > > > > For me it seems that it works without Cygwin.
> > > > >
> > > > >
> > > > > OmPrakash Muppirala wrote
> > > > > > What error do you get when you simply try to run asjsc without
> the
> > > full
> > > > > > path on Command Prompt?
> > > > >
> > > > > "The system can't find the specified path" (Translated from german)
> > > > >
> > > >
> > > > I am seeing this problem as well from Command Prompt.  I think we
> need
> > to
> > > > use asjsc.cmd instead of asjsc for Command Prompt.  I will tinker
> with
> > > this
> > > > a bit and see if we can get this working.
> > > >
> > > > Thanks,
> > > > Om
> > > >
> > > >
> > > > >
> > > > >
> > > > > OmPrakash Muppirala wrote
> > > > > > We are discussing if we should have asjsc generate this
> > > > > > simple html file by default so that newcomers like you have a
> > better
> > > > > first
> > > > > > impression and an easier starting point with FlexJS.
> > > > >
> > > > > +1 (If there are no disadvantages with creating this html file)
> > > > >
> > > > > Thanks,
> > > > > Olaf
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> > > >
> > >
> >
> http://apache-flex-development.247.n4.nabble.com/FlexJS-Need-your-help-testing-the-flexjs-npm-module-tp50911p51050.html
> > > > > Sent from the Apache Flex Development mailing list archive at
> > > Nabble.com.
> > > > >
> > > >
> > >
> >
>


Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-06 Thread OmPrakash Muppirala
On Wed, Jan 6, 2016 at 3:33 PM, Josh Tynjala <joshtynj...@gmail.com> wrote:

> Yes, on the Windows command prompt (and PowerShell), you need to run .bat
> version of the script. The shell script may work correctly in Cygwin,
> though.
>

Is there a good way to npm to register asjsc for OSX/Cygwin and asjsc.bat
for Command Prompt/PowerShell?

Thanks,
Om


>
> - Josh
>
> On Wed, Jan 6, 2016 at 3:23 PM, OmPrakash Muppirala <bigosma...@gmail.com>
> wrote:
>
> > On Wed, Jan 6, 2016 at 1:26 AM, OK <okrue...@edscha.com> wrote:
> >
> > > OmPrakash Muppirala wrote
> > > > If we can use FlexJS on Windows without Cygwin, that would be a big
> > win.
> > >
> > > For me it seems that it works without Cygwin.
> > >
> > >
> > > OmPrakash Muppirala wrote
> > > > What error do you get when you simply try to run asjsc without the
> full
> > > > path on Command Prompt?
> > >
> > > "The system can't find the specified path" (Translated from german)
> > >
> >
> > I am seeing this problem as well from Command Prompt.  I think we need to
> > use asjsc.cmd instead of asjsc for Command Prompt.  I will tinker with
> this
> > a bit and see if we can get this working.
> >
> > Thanks,
> > Om
> >
> >
> > >
> > >
> > > OmPrakash Muppirala wrote
> > > > We are discussing if we should have asjsc generate this
> > > > simple html file by default so that newcomers like you have a better
> > > first
> > > > impression and an easier starting point with FlexJS.
> > >
> > > +1 (If there are no disadvantages with creating this html file)
> > >
> > > Thanks,
> > > Olaf
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-flex-development.247.n4.nabble.com/FlexJS-Need-your-help-testing-the-flexjs-npm-module-tp50911p51050.html
> > > Sent from the Apache Flex Development mailing list archive at
> Nabble.com.
> > >
> >
>


[FlexJS] Extending builtin HTML elements

2016-01-06 Thread OmPrakash Muppirala
Is this supposed to work?

MyButton.as
package {
public class MyButton extends HTMLButtonElement {
public function MyButton() {
super();
this.addEventListener("click", button_clickListener, false);
}
private function button_clickListener(event : MouseEvent) : void {
alert("Hello World");
}
}
}

WebProject1.as
package {
public class WebProject1 {
public function WebProject1() {
var button : MyButton = document.createElement("button") as MyButton;
button.innerHTML = "Press Me";
document.body.appendChild(button);
}
}
}

This code compiles fine, but when I run it, I am getting a null for
variable button.
Console log:
Uncaught TypeError: Cannot set property 'innerHTML' of null

Thanks,
Om


Re: [FlexJS] Extending builtin HTML elements

2016-01-06 Thread OmPrakash Muppirala
On Wed, Jan 6, 2016 at 8:54 PM, Alex Harui  wrote:

> On 1/6/16, 6:35 PM, "Andy Dufilie"  wrote:
>
> >button is null because document.createElement("button") is not an instance
> >of MyButton.
>
> Andy is right.  We have not tried to extend the type system into the
> built-in classes.  Not sure we could guarantee that would work.  More
> below...
>
>
> >Is this supposed to work?
> >
> >MyButton.as
> >package {
> >public class MyButton extends HTMLButtonElement {
> >public function MyButton() {
> >super();
> >this.addEventListener("click", button_clickListener, false);
> >}
> >private function button_clickListener(event : MouseEvent) : void {
> >alert("Hello World");
> >}
> >}
> >}
> >
> >WebProject1.as
> >package {
> >public class WebProject1 {
>
> Add the following as the ASDoc for the WebProject1() method, then it
> should work:
>
> /**
>  * @flexjsignorecoercion MyButton
>  */
> >public function WebProject1() {
> >var button : MyButton = document.createElement("button") as MyButton;
> >button.innerHTML = "Press Me";
> >document.body.appendChild(button);
> >}
> >}
> >}
>

That kind of worked.  Compiles fine and creates the button.  But MyButton's
constructor does not get called.  Any code I write inside MyButton.as seems
to be moot.

I'm wondering if document.createElementNS might be useful here?

Thanks,
Om


Re: Bug in mxmlc script

2016-01-05 Thread OmPrakash Muppirala
On Jan 5, 2016 3:03 AM, "Harbs" <harbs.li...@gmail.com> wrote:
>
> It’s not just for instant gratification. (and I do agree that first
impressions are really important)
>
> In the ideal world, the template HTML file can be modified. The primary
reason I have not historically modified the HTML template file is because
cleaning a project (which I do regularly in Flash Builder) destroys the
HTML file and rebuilds it.

I don't understand.   If you customize your index.html.template, how does
it matter if the app.html file gets destroyed and recreated each time?
This is how I have it setup.

>
> Besides for first impressions, the HTML file is important for one-click
testing of the functionality. Yeah. For production, you’re going to have a
custom HTML file around it, but a default one is generally useful for
testing.
>
> Ideally, if there is no HTML file, one will be created, but if the HTML
file already exists, it will not be overwritten.

I think a template is better for this purpose.

Thanks,
Om

>
> On Jan 5, 2016, at 11:15 AM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:
>
> > On Mon, Jan 4, 2016 at 8:49 PM, Alex Harui <aha...@adobe.com> wrote:
> >
> >> Well, the compiler could be upgraded to process a template like Flash
> >> Builder currently does.  I'm curious to know how many folks use Flash
> >> Builder and/or Ant tasks to process the html templates for SWFs vs
> >> plugging in some custom thing in their workflow.
> >>
> >
> > I remember in Flex 2 days where it was very cool to quickly write some
code
> > and hit the run button and see the browser pop-up with the app.  That
made
> > for a very good first impression.  If we don't have a quick way to
visually
> > see the JS code that got generated, there is not much of a first
> > impression, IMHO.
> >
> > Also, it is not very obvious that we need to create a html file with a
new
> > MainClass.start() on body load.  And it seems like we are
> > using goog.addDependency calls to load the required Javascript files.
Do
> > we really expect the users to handcraft this everytime?  That could be
tons
> > of JS files to be added by hand.  Kind of defeats the purpose of having
a
> > transpiler.
> >
> > That said, it will become annoying very quickly when one realizes that
the
> > index.html cannot be changed.
> >
> > I think having a very simple html file as a default template is a happy
> > medium.  It works for the instant gratification that new users would
seek
> > and more advanced users can dig in a bit deeper and swap out the default
> > with a custom template.
> >
> > Thanks,
> > Om
> >
> >
> >>
> >> But IMO, the main reason to have an option is so folks can save a step
in
> >> getting the SDK and trying it out.
> >>
> >> -Alex
> >>
> >> On 1/4/16, 7:56 PM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:
> >>
> >>> I should add that I'm not opposed to adding some kind of optional
flag to
> >>> asjsc that tells it to generate an HTML file similar to how mxmlc
does it.
> >>> That HTML file just doesn't seem especially useful to me, as I
consider
> >>> what it would be like to use asjsc in a real-world project. So I'm
trying
> >>> to get a better understanding of your perspective.
> >>>
> >>> - Josh
> >>>
> >>> On Mon, Jan 4, 2016 at 7:49 PM, Josh Tynjala <joshtynj...@gmail.com>
> >>> wrote:
> >>>
> >>>> Is it actually necessary for the compiler to create some kind of
> >>>> boilerplate HTML for you? It may be a little useful for quick demos,
> >>>> I'll
> >>>> concede, but many real world projects will need highly customized
HTML
> >>>> files. Many need things like analytics, CSS, and other static HTML
> >>>> content
> >>>> that isn't purely generated by JavaScript (for SEO and things).
> >>>>
> >>>> In fact, the compiler isn't really set up for customizing the HTML
that
> >>>> it
> >>>> currently generates with mxmlc. You can see it is mostly hard-coded
in
> >>>> JSGoogPublisher.java. It's actually very simple markup. Probably too
> >>>> simple
> >>>> to use in production for most people, especially if they want to use
> >>>> asjsc
> >>>> and integrate it into the rest of their web development workflow.
> >>>>
> >>>> - Josh
> >>>>
> >>>> On Mon, Jan 

Re: [GitHub] flex-falcon pull request: Compiler fixes related to js.swc

2016-01-05 Thread OmPrakash Muppirala
Have you tried making a commit with this magic line in the git comment?

*This closes #5*

This has worked for me in the past.

Thanks,
Om

On Tue, Jan 5, 2016 at 11:44 PM, aharui  wrote:

> Github user aharui commented on the pull request:
>
> https://github.com/apache/flex-falcon/pull/5#issuecomment-169259473
>
> I think the github integration scripts didn't quite work.  Can you
> manually close the pull request?
>
>
> ---
> If your project is set up for it, you can reply to this email and have your
> reply appear on GitHub as well. If your project does not have this feature
> enabled and wishes so, or if the feature is enabled but not working, please
> contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
> with INFRA.
> ---
>


Re: Bug in mxmlc script

2016-01-05 Thread OmPrakash Muppirala
On Jan 5, 2016 9:36 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:
>
> asjsc still generates all of the addDependency() calls required for a
debug
> build. No hand crafting needed. It generates them in a JS file named
> ProjectName-dependencies.js. Not coincidentally, that is the only JS file
> that you need to reference in a script tag in your HTML when running the
> debug build.

I suppose it does not work that way today?  I see all individual calls
loading each dependency in index.html.

>
> - Josh
> On Jan 5, 2016 1:15 AM, "OmPrakash Muppirala" <bigosma...@gmail.com>
wrote:
>
> > On Mon, Jan 4, 2016 at 8:49 PM, Alex Harui <aha...@adobe.com> wrote:
> >
> > > Well, the compiler could be upgraded to process a template like Flash
> > > Builder currently does.  I'm curious to know how many folks use Flash
> > > Builder and/or Ant tasks to process the html templates for SWFs vs
> > > plugging in some custom thing in their workflow.
> > >
> >
> > I remember in Flex 2 days where it was very cool to quickly write some
code
> > and hit the run button and see the browser pop-up with the app.  That
made
> > for a very good first impression.  If we don't have a quick way to
visually
> > see the JS code that got generated, there is not much of a first
> > impression, IMHO.
> >
> > Also, it is not very obvious that we need to create a html file with a
new
> > MainClass.start() on body load.  And it seems like we are
> > using goog.addDependency calls to load the required Javascript files.
Do
> > we really expect the users to handcraft this everytime?  That could be
tons
> > of JS files to be added by hand.  Kind of defeats the purpose of having
a
> > transpiler.
> >
> > That said, it will become annoying very quickly when one realizes that
the
> > index.html cannot be changed.
> >
> > I think having a very simple html file as a default template is a happy
> > medium.  It works for the instant gratification that new users would
seek
> > and more advanced users can dig in a bit deeper and swap out the default
> > with a custom template.
> >
> > Thanks,
> > Om
> >
> >
> > >
> > > But IMO, the main reason to have an option is so folks can save a
step in
> > > getting the SDK and trying it out.
> > >
> > > -Alex
> > >
> > > On 1/4/16, 7:56 PM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:
> > >
> > > >I should add that I'm not opposed to adding some kind of optional
flag
> > to
> > > >asjsc that tells it to generate an HTML file similar to how mxmlc
does
> > it.
> > > >That HTML file just doesn't seem especially useful to me, as I
consider
> > > >what it would be like to use asjsc in a real-world project. So I'm
> > trying
> > > >to get a better understanding of your perspective.
> > > >
> > > >- Josh
> > > >
> > > >On Mon, Jan 4, 2016 at 7:49 PM, Josh Tynjala <joshtynj...@gmail.com>
> > > >wrote:
> > > >
> > > >> Is it actually necessary for the compiler to create some kind of
> > > >> boilerplate HTML for you? It may be a little useful for quick
demos,
> > > >>I'll
> > > >> concede, but many real world projects will need highly customized
HTML
> > > >> files. Many need things like analytics, CSS, and other static HTML
> > > >>content
> > > >> that isn't purely generated by JavaScript (for SEO and things).
> > > >>
> > > >> In fact, the compiler isn't really set up for customizing the HTML
> > that
> > > >>it
> > > >> currently generates with mxmlc. You can see it is mostly
hard-coded in
> > > >> JSGoogPublisher.java. It's actually very simple markup. Probably
too
> > > >>simple
> > > >> to use in production for most people, especially if they want to
use
> > > >>asjsc
> > > >> and integrate it into the rest of their web development workflow.
> > > >>
> > > >> - Josh
> > > >>
> > > >> On Mon, Jan 4, 2016 at 5:14 PM, OmPrakash Muppirala
> > > >><bigosma...@gmail.com>
> > > >> wrote:
> > > >>
> > > >>> On Mon, Jan 4, 2016 at 4:47 PM, Alex Harui <aha...@adobe.com>
wrote:
> > > >>>
> > > >>> > If you diff asjsc vs mxmlc you'll see the difference.
> > > >>> >
> > 

Re: Bug in mxmlc script

2016-01-05 Thread OmPrakash Muppirala
On Tue, Jan 5, 2016 at 10:12 AM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 1/5/16, 9:49 AM, "Harbs" <harbs.li...@gmail.com> wrote:
>
> >
> >On Jan 5, 2016, at 7:05 PM, OmPrakash Muppirala <bigosma...@gmail.com>
> >wrote:
> >
> >>
> >> I don't understand.   If you customize your index.html.template, how
> >>does
> >> it matter if the app.html file gets destroyed and recreated each time?
> >> This is how I have it setup.
> >
> >I don’t remember. Possibly I did things wrong in the past. I have never
> >spent a lot of time on the template files because the standard one
> >usually was enough for my testing purposes and I never push up the
> >generated HTML file to the server.
>
> IIRC, if you change SDKs, it will copy the index.template.html file from
> the SDK folder.
>

I don't think so.  I've changed SDKs for a project several times; I never
had to redo the customizations I had done on index.html.template.  At least
FlashBuilder behaves this way.


>
> -Alex
>
>


Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-05 Thread OmPrakash Muppirala
On Tue, Jan 5, 2016 at 12:45 PM, OK  wrote:

> I've tried asjsc and mxmlc:
>
> Here're my observations:
> - I have to provide the full path to asjsc/mxmlc although I've used -g.
> (I've used an already installed node.js version 5.2.0, windows 7, 64bit)
>

Are you using the command prompt or Cygwin?


>
> -asjsc works, it successfully creates \bin\js-release\USStatesMap.js, but
> the log contains 8 warnings
> -mxmlc throws a couple of errors and doesn't produce any result, see the
> console log at the end
>

I don't think mxmlc is supposed to work with this project.  We are having a
lengthy discussion about this in another thread.  Try compiling any project
under examples/flexjs with mxmlc.  Projects under examples/native will work
fine with asjsc.


>
> I've no experiene with FlexJS, how can I test the USStatesMap.js?
> I've tried to include it in a html file and call the start() function
> ( "onLoad=start()" >) but nothing happens.
>

Not sure how to test this at this point.  Once we resolve the discussion in
that other thread, we should be able to make progress on this use case.

Thanks for testing!


>
> Thanks!
>
> Olaf
>
> Console Log:
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\js\bin>mxmlc
> C:\Users\
>
> kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStatesMap\src
> \USStatesMap.as
> Using Falcon codebase:
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs
> \js\bin\..\..
> Using Flex SDK:
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\js\bin
> \..\..
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStat
> esMap\src\USStatesMap.as:25
> Type was not found or was not a compile-time constant: HTMLDivElement.
> private var title:HTMLDivElement;
>   ^
>
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStat
> esMap\src\USStatesMap.as:26
> Type was not found or was not a compile-time constant: SVGElement.
> private var map:SVGElement;
> ^
>
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStat
> esMap\src\USStatesMap.as:39
> Access of possibly undefined property document.
> this.title =
> HTMLDivElement(document.createElement("div"
> ));
> ^
>
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStat
> esMap\src\USStatesMap.as:39
> Call to a possibly undefined method HTMLDivElement.
> this.title =
> HTMLDivElement(document.createElement("div"
> ));
>  ^
>
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStat
> esMap\src\USStatesMap.as:41
> Access of possibly undefined property document.
> document.body.appendChild(title);
> ^
>
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStat
> esMap\src\USStatesMap.as:50
> Access of possibly undefined property document.
> this.map =
> SVGElement(document.createElementNS("http://w
> ww.w3.org/2000/svg", "svg"));
>   ^
>
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStat
> esMap\src\USStatesMap.as:50
> Call to a possibly undefined method SVGElement.
> this.map =
> SVGElement(document.createElementNS("http://w
> ww.w3.org/2000/svg", "svg"));
>^
>
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStat
> esMap\src\USStatesMap.as:53
> Access of possibly undefined property document.
> document.body.appendChild(map);
> ^
>
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStat
> esMap\src\USStatesMap.as:56
> Type was not found or was not a compile-time constant: SVGPathElement.
> var path:SVGPathElement;
>  ^
>
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStat
> esMap\src\USStatesMap.as:59
> Access of possibly undefined property document.
> path =
> SVGPathElement(document.createElementNS("
> http://www.w3.org/2000/svg;, "path"));
>   ^
>
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStat
> esMap\src\USStatesMap.as:59
> Call to a possibly undefined method SVGPathElement.
> path =
> SVGPathElement(document.createElementNS("
> http://www.w3.org/2000/svg;, "path"));
>^
>
>
> C:\Users\kruegola\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStat
> esMap\src\USStatesMap.as:73
> Type was not 

Re: [DISCUSSION] Apache Flex SDK 4.15 release candidate 1

2016-01-05 Thread OmPrakash Muppirala
On Tue, Jan 5, 2016 at 2:55 PM, Justin Mclean 
wrote:

> Hi,
>
> > https://issues.apache.org/jira/browse/FLEX-34769 pretends to be fixed
> in 4.15 but doesn't appear in the RELEASE_NOTES of the rc1...
> > Is this fix really in the future 4.15 release ?
>
> Yes this fix is in the 4.15 release and is missing from the RELEASE_NOTES.
> Why do you say “pretends to be fixed” - is it not fixed in some way?
>

Sounds like a text translation mistake.  Perhaps he meant 'it appears to be
fixed'.

Thanks,
Om


>
> Thanks,
> Justin


Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-04 Thread OmPrakash Muppirala
On Mon, Jan 4, 2016 at 12:18 PM, Carlos Rovira <
carlos.rov...@codeoscopic.com> wrote:

> Hi Just tryed on Mac.
>
> Since the last time I had problems with node and npm, I first removed the
> installation and reinstalled with this solution to avoid use of sudo
> https://gist.github.com/DanHerbert/9520689
>
> I then reinstalled (I have npm 3.5.2 installed) and all seems to install
> ok.
>
> Then I had problems with the last step. As I write: asjsc
> /usr/local/lib/node_modules/
>
> here there's no flexjs folder :?
>
> Maybe is located in other place?
>
> Thanks!
>
>
Hmm..  What are the commands you used to install?
Can you try this?

*npm uninstall flexjs -g*
*npm uninstall flexjs*
*npm cache clear*
npm install -g http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz


Please post as much as possible from the console log.

Thanks,
Om


>
>
> 2016-01-04 20:59 GMT+01:00 Alex Harui <aha...@adobe.com>:
>
> > Hi Matthias,
> >
> > Welcome to the community!
> >
> > I'm not sure we have anybody currently testing FlexJS with Linux.  It
> > would be great if you have the time to help out not only with finding
> > problems but also proposing fixes for them.  I don't have any experience
> > with Linux so any help is much appreciated.
> >
> > Please file bugs here: http://issues.apache.org/jira/browse/FLEX
> > Please post fixes in the issues or as pull requests.
> >
> > Thanks,
> > -Alex
> >
> > On 1/4/16, 11:37 AM, "Matthias Bode" <m...@mat3d.com> wrote:
> >
> > >Hello All ,
> > >
> > >i am new to the Group ... and i just checked out the Linux version .
> > >the flexJS Stuff looks pretty awesome cool and neat  you are gr8
> 
> > >are you testing on Linux ?? - or is the flexJS a Linux matter - no ??
> > >
> > >Is there a TroubleShoot List/Rider where all the current Error´s in the
> > >Linuxversion are listed ??
> > >Since you asked the Community for help ... in the Repository Readme.MD..
> > >
> > >best wishes from Lake Pilsen
> > >
> > >m@ Bode
> > >
> > >On 04/01/2016 20:30, Harbs wrote:
> > >> One comment: "Downloading Apache Falcon" is not correct. Falcon is a
> > >>separate Apache project. It should be Apache Flex Falcon Compiler.
> > >>
> > >> I tried installing and it does not look like it worked for me.
> > >>
> > >> Here’s the output at the end of the install:
> > >>
> > >> request@2.67.0 node_modules/flexjs/node_modules/request ->
> > >>node_modules/request
> > >> /Users/harbs
> > >> └─┬ flexjs@0.5.0
> > >>   ├─┬ replace@0.3.0
> > >>   │ ├── colors@0.5.1
> > >>   │ └─┬ nomnom@1.6.2
> > >>   │   └── colors@0.5.1
> > >>   └─┬ unzip@0.1.11
> > >> ├─┬ match-stream@0.0.2
> > >> │ └── readable-stream@1.0.33
> > >> ├─┬ pullstream@0.4.1
> > >> │ ├── readable-stream@1.0.33
> > >> │ └─┬ slice-stream@1.0.0
> > >> │   └── readable-stream@1.0.33
> > >> └── readable-stream@1.0.33
> > >>
> > >> npm WARN ENOENT ENOENT: no such file or directory, open
> > >>'/Users/harbs/package.json'
> > >> npm WARN EPACKAGEJSON harbs No description
> > >> npm WARN EPACKAGEJSON harbs No repository field.
> > >> npm WARN EPACKAGEJSON harbs No README data
> > >> npm WARN EPACKAGEJSON harbs No license field.
> > >>
> > >> and I get asjsc not found when I try to run the command.
> > >>
> > >> FWIW, I do have flexjs inside node_modules in my User account.
> > >>
> > >> On Jan 4, 2016, at 8:47 PM, OmPrakash Muppirala <bigosma...@gmail.com
> >
> > >>wrote:
> > >>
> > >>> On Jan 4, 2016 10:02 AM, "Alex Harui" <aha...@adobe.com> wrote:
> > >>>>
> > >>>>
> > >>>> On 1/4/16, 8:18 AM, "omup...@gmail.com on behalf of OmPrakash
> > >>>>Muppirala"
> > >>>> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
> > >>>>
> > >>>>> Oh right,  forgot about that.
> > >>>>>
> > >>>>> npm uninstall flexjs -g
> > >>>>>
> > >>>>> Then clear cache and install.
> > >>>> Clear what cache and how?  I just tried it and it didn't work for
> me

Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-04 Thread OmPrakash Muppirala
On Mon, Jan 4, 2016 at 12:36 PM, Harbs <harbs.li...@gmail.com> wrote:

> Yes. That was the problem.
>
> Next issue:
>
> I tried installing this on a non-developement machine which apparently did
> not have Java installed. When trying to run asjsc, I get a warning that “No
> Java runtime preset”. Even after installing Java, I still get this error.
>
> Do I need to re-install flexjs after installing Java? If yes, you should
> probably make Java a prerequisite BEFORE installing FlexJS.
>

Is Java in the path?  If you run "java -version" do you get anything?

Thanks,
Om


>
> On Jan 4, 2016, at 9:53 PM, OmPrakash Muppirala <bigosma...@gmail.com>
> wrote:
>
> > Looks like you did not do a -g when you did the install.  Can you double
> > check?
>
>


Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-04 Thread OmPrakash Muppirala
On Jan 4, 2016 11:30 AM, "Harbs" <harbs.li...@gmail.com> wrote:
>
> One comment: "Downloading Apache Falcon" is not correct. Falcon is a
separate Apache project. It should be Apache Flex Falcon Compiler.
>

Good catch.   I will fix that.

> I tried installing and it does not look like it worked for me.
>
> Here’s the output at the end of the install:
>
> request@2.67.0 node_modules/flexjs/node_modules/request ->
node_modules/request
> /Users/harbs
> └─┬ flexjs@0.5.0
>   ├─┬ replace@0.3.0
>   │ ├── colors@0.5.1
>   │ └─┬ nomnom@1.6.2
>   │   └── colors@0.5.1
>   └─┬ unzip@0.1.11
> ├─┬ match-stream@0.0.2
> │ └── readable-stream@1.0.33
> ├─┬ pullstream@0.4.1
> │ ├── readable-stream@1.0.33
> │ └─┬ slice-stream@1.0.0
> │   └── readable-stream@1.0.33
> └── readable-stream@1.0.33
>
> npm WARN ENOENT ENOENT: no such file or directory, open
'/Users/harbs/package.json'
> npm WARN EPACKAGEJSON harbs No description
> npm WARN EPACKAGEJSON harbs No repository field.
> npm WARN EPACKAGEJSON harbs No README data
> npm WARN EPACKAGEJSON harbs No license field.
>
> and I get asjsc not found when I try to run the command.
>
> FWIW, I do have flexjs inside node_modules in my User account.

Looks like you did not do a -g when you did the install.  Can you double
check?

Here are the steps for a complete reset:

*npm uninstall flexjs *{No -g here because you installed it locally}
*npm cache clear*
npm install -g http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz

Thanks,
Om

>
> On Jan 4, 2016, at 8:47 PM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:
>
> > On Jan 4, 2016 10:02 AM, "Alex Harui" <aha...@adobe.com> wrote:
> >>
> >>
> >>
> >> On 1/4/16, 8:18 AM, "omup...@gmail.com on behalf of OmPrakash
Muppirala"
> >> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
> >>
> >>> Oh right,  forgot about that.
> >>>
> >>> npm uninstall flexjs -g
> >>>
> >>> Then clear cache and install.
> >>
> >> Clear what cache and how?  I just tried it and it didn't work for me.
The
> >> error looked the same so I think I may have still picked up an older
> >> version.
> >
> > npm cache clear
> >
> > npm most likely picked up the tarball from the cache for you.
> >
> > Thanks,
> > Om
> >
> >>
> >> Thanks,
> >> -Alex
>


Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-04 Thread OmPrakash Muppirala
On Jan 4, 2016 10:02 AM, "Alex Harui" <aha...@adobe.com> wrote:
>
>
>
> On 1/4/16, 8:18 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >Oh right,  forgot about that.
> >
> >npm uninstall flexjs -g
> >
> >Then clear cache and install.
>
> Clear what cache and how?  I just tried it and it didn't work for me.  The
> error looked the same so I think I may have still picked up an older
> version.

npm cache clear

npm most likely picked up the tarball from the cache for you.

Thanks,
Om

>
> Thanks,
> -Alex
>


Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-04 Thread OmPrakash Muppirala
On Mon, Jan 4, 2016 at 11:37 AM, Matthias Bode <m...@mat3d.com> wrote:

> Hello All ,
>
> i am new to the Group ... and i just checked out the Linux version .
> the flexJS Stuff looks pretty awesome cool and neat  you are gr8 
> are you testing on Linux ?? - or is the flexJS a Linux matter - no ??
>

I haven't tried it on Linux, but it looks like it should work fine.  Have
you tried it?


>
> Is there a TroubleShoot List/Rider where all the current Error´s in the
> Linuxversion are listed ??
> Since you asked the Community for help ... in the Repository Readme.MD..
>


I am sorry, I am not sure I understand.  Are there errors when you run on
Linux?

Thanks,
Om


>
> best wishes from Lake Pilsen
>
> m@ Bode
>
> On 04/01/2016 20:30, Harbs wrote:
> > One comment: "Downloading Apache Falcon" is not correct. Falcon is a
> separate Apache project. It should be Apache Flex Falcon Compiler.
> >
> > I tried installing and it does not look like it worked for me.
> >
> > Here’s the output at the end of the install:
> >
> > request@2.67.0 node_modules/flexjs/node_modules/request ->
> node_modules/request
> > /Users/harbs
> > └─┬ flexjs@0.5.0
> >   ├─┬ replace@0.3.0
> >   │ ├── colors@0.5.1
> >   │ └─┬ nomnom@1.6.2
> >   │   └── colors@0.5.1
> >   └─┬ unzip@0.1.11
> > ├─┬ match-stream@0.0.2
> > │ └── readable-stream@1.0.33
> > ├─┬ pullstream@0.4.1
> > │ ├── readable-stream@1.0.33
> > │ └─┬ slice-stream@1.0.0
> > │   └── readable-stream@1.0.33
> > └── readable-stream@1.0.33
> >
> > npm WARN ENOENT ENOENT: no such file or directory, open
> '/Users/harbs/package.json'
> > npm WARN EPACKAGEJSON harbs No description
> > npm WARN EPACKAGEJSON harbs No repository field.
> > npm WARN EPACKAGEJSON harbs No README data
> > npm WARN EPACKAGEJSON harbs No license field.
> >
> > and I get asjsc not found when I try to run the command.
> >
> > FWIW, I do have flexjs inside node_modules in my User account.
> >
> > On Jan 4, 2016, at 8:47 PM, OmPrakash Muppirala <bigosma...@gmail.com>
> wrote:
> >
> >> On Jan 4, 2016 10:02 AM, "Alex Harui" <aha...@adobe.com> wrote:
> >>>
> >>>
> >>> On 1/4/16, 8:18 AM, "omup...@gmail.com on behalf of OmPrakash
> Muppirala"
> >>> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
> >>>
> >>>> Oh right,  forgot about that.
> >>>>
> >>>> npm uninstall flexjs -g
> >>>>
> >>>> Then clear cache and install.
> >>> Clear what cache and how?  I just tried it and it didn't work for me.
> The
> >>> error looked the same so I think I may have still picked up an older
> >>> version.
> >> npm cache clear
> >>
> >> npm most likely picked up the tarball from the cache for you.
> >>
> >> Thanks,
> >> Om
> >>
> >>> Thanks,
> >>> -Alex
> >
>
> --
> [>mat3d<]
> >> m...@mat3d.com
> >> Matthias Bode
> >> Hauptstraße 31
> >> 82229 Seefeld
> >> 0049/1577/7359142
>
>


[FlexJS] Need your help testing the flexjs npm module

2016-01-04 Thread OmPrakash Muppirala
Hi folks,

I now have the flexjs npm module working fine on Windows (Cygiwn) and Mac
OSX. Once again, here are the steps to test:


   1. If you don't have Node and/or npm installed, first install it
  - Windows: Use the Installer from https://nodejs.org.  Ensure that
  you select the 'npm package manager' option during installation. Use
  the Command Prompt here on.
  - Mac: Run *brew install node* from the terminal
   2. Make sure npm is available by running *npm -v*
   3. Run *npm cache clear*
   4. Now run *npm install
   -g http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz
   <http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz>*  (It takes a
   while to download all the dependencies and there are a couple of prompts
   you need to answer)
   This will install the entire FlexJS SDK and register asjsc and asjscompc
   as global binaries.
   5. Now run *asjsc <*your_actionscript_file_name.as*>*
   On windows, try this:
   asjsc
   
"C:\Users\{username}\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStatesMap\src\USStatesMap.as"
   On OSX, try this:
   asjsc
   
/usr/local/lib/node_modules/flexjs/examples/native/USStatesMap/src/USStatesMap.as
   You should see the ActionScript file getting compiled to Javascript
   files in the folder ...\USStatesMap\bin


Everyone, please do try these steps and report your results.  We would like
to publish this as soon as possible.

Thanks,
Om

On Tue, Dec 29, 2015 at 11:07 AM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> It looks like folks who install node/npm using homebrew are going to ruin
> into this problem.
>
> https://gist.github.com/DanHerbert/9520689 has a nice explanation and a
> fix for this issue.
>
> Thanks,
> Om
> On Dec 29, 2015 10:00 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:
>
>> I had this issue a while back. I could only install packages globally if I
>> used sudo. I don't remember exactly what I did to fix it, but I recall
>> seeing a suggestion to configure npm to install global packages at a
>> different location. I'll try to remember to check later when I'm at my
>> computer.
>>
>> - Josh
>> On Dec 29, 2015 9:18 AM, "Carlos Rovira" <carlos.rov...@codeoscopic.com>
>> wrote:
>>
>> > Hi Om,
>> >
>> > I had installed npm 2.11.3
>> >
>> > I tried "npm install -g
>> > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz;
>> >
>> > and this gave me this error:
>> >
>> > macbookpro:~ carlosrovira$ npm install -g
>> > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz
>> >
>> > npm ERR! tar.unpack untar error
>> > /Users/carlosrovira/.npm/flexjs/0.5.0/package.tgz
>> >
>> > npm ERR! Darwin 15.2.0
>> >
>> > npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g"
>> "
>> > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz;
>> >
>> > npm ERR! node v0.12.7
>> >
>> > npm ERR! npm  v2.11.3
>> >
>> > npm ERR! path /usr/local/lib/node_modules/flexjs
>> >
>> > npm ERR! code EACCES
>> >
>> > npm ERR! errno -13
>> >
>> >
>> > npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/flexjs'
>> >
>> > npm ERR! at Error (native)
>> >
>> > npm ERR!  { [Error: EACCES, mkdir '/usr/local/lib/node_modules/flexjs']
>> >
>> > npm ERR!   errno: -13,
>> >
>> > npm ERR!   code: 'EACCES',
>> >
>> > npm ERR!   path: '/usr/local/lib/node_modules/flexjs',
>> >
>> > npm ERR!   fstream_type: 'Directory',
>> >
>> > npm ERR!   fstream_path: '/usr/local/lib/node_modules/flexjs',
>> >
>> > npm ERR!   fstream_class: 'DirWriter',
>> >
>> > npm ERR!   fstream_stack:
>> >
>> > npm ERR![
>> >
>> >
>> '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25',
>> >
>> > npm ERR!
>> > '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53',
>> >
>> > npm ERR!  'FSReqWrap.oncomplete (fs.js:95:15)' ] }
>> >
>> > npm ERR!
>> >
>> > npm ERR! Please try running this command again as root/Administrator.
>> >
>> >
>> > npm ERR! Please include the following file with any support request:
>> >
>> > npm ERR! /Users/carlosrovira/npm-debug.log
>> >
>> >
>> >
>> >
>> > 2015-12-29 11:29 GMT+01:00 OmPrakash Muppirala 

Re: [FlexJS] npm install flexjs

2016-01-04 Thread OmPrakash Muppirala
On Sat, Jan 2, 2016 at 11:42 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 1/2/16, 6:28 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >
> >
> >With the same exact code, on Mac, when I run:
> >omuppirala$ asjsc
> >/usr/local/lib/node_modules/flexjs/examples/native/USStatesMap/src/USState
> >sMap.as
> >
> >mxmlc seems to run but I am getting this error:
> >
> >/usr/local/lib/node_modules/flexjs/frameworks/flex-config.xml:83
> >unable to open
> >'/usr/local/lib/node_modules/flexjs/frameworks/{playerglobalHome}/11.1'.
> >/usr/local/lib/node_modules/flexjs/frameworks/flex-config.xml (line: 83)
> >  
> >
> >Any idea what's going wrong?
>
> Is PLAYERGLOBAL_HOME set in the environment?  That gets mapped to the
> playerglobalHome token.
>
>
Thanks for the pointer!  I was not fixing up the flex-config and air-config
files as the Installer is doing.  Now everything works fine on Windows and
Mac!!

I will send out instructions on testing in the other thread.

Thanks,
Om


> -Alex
>
>


Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-04 Thread OmPrakash Muppirala
On Mon, Jan 4, 2016 at 1:23 PM, Josh Tynjala <joshtynj...@gmail.com> wrote:

> If you want to compile FlexJS framework apps that also have an HTML file,
> Om needs to expose the mxmlc compiler in js/bin too. asjsc is meant to be
> integrated into a larger workflow where you use the generated JS with your
> own custom HTML, styles, etc.
>

I am on it.  I should get this working soon, now that I know the other
obstacles are (almost) gone.

Thanks,
Om


>
> - Josh
>
> On Mon, Jan 4, 2016 at 1:05 PM, Harbs <harbs.li...@gmail.com> wrote:
>
> > OK. That did it.
> >
> > I got the sample to compile.
> >
> > Amazing work!
> >
> > It would be cool if we could get the html file to be created as well.
> >
> > On Jan 4, 2016, at 10:43 PM, Harbs <harbs.li...@gmail.com> wrote:
> >
> > > Whoops. I installed JRE rather than JDK.
> > >
> > > Installing JDK now…
> > >
> > > On Jan 4, 2016, at 10:40 PM, OmPrakash Muppirala <bigosma...@gmail.com
> >
> > wrote:
> > >
> > >> On Mon, Jan 4, 2016 at 12:36 PM, Harbs <harbs.li...@gmail.com> wrote:
> > >>
> > >>> Yes. That was the problem.
> > >>>
> > >>> Next issue:
> > >>>
> > >>> I tried installing this on a non-developement machine which
> apparently
> > did
> > >>> not have Java installed. When trying to run asjsc, I get a warning
> > that “No
> > >>> Java runtime preset”. Even after installing Java, I still get this
> > error.
> > >>>
> > >>> Do I need to re-install flexjs after installing Java? If yes, you
> > should
> > >>> probably make Java a prerequisite BEFORE installing FlexJS.
> > >>>
> > >>
> > >> Is Java in the path?  If you run "java -version" do you get anything?
> > >>
> > >> Thanks,
> > >> Om
> > >>
> > >>
> > >>>
> > >>> On Jan 4, 2016, at 9:53 PM, OmPrakash Muppirala <
> bigosma...@gmail.com>
> > >>> wrote:
> > >>>
> > >>>> Looks like you did not do a -g when you did the install.  Can you
> > double
> > >>>> check?
> > >>>
> > >>>
> > >
> >
> >
>


Bug in mxmlc script

2016-01-04 Thread OmPrakash Muppirala
In the flexjs/js/bin/mxmlc script, I see that we are referencing the '
*/frameworks/js/FlexJS/src*' folder.

java $VMARGS $D32 $SETUP_SH_VMARGS -Dflexcompiler="$FALCON_HOME"
-Dflexlib="$FLEX_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/mxmlc.jar"
+flexlib="$FLEX_HOME/frameworks" -js-output-type=FLEXJS*
-sdk-js-lib="$FLEX_HOME/frameworks/js/FlexJS/src"* "$@"

 But this folder does not come with the release build of FlexJS.  This is
causing the build using mxmlc to fail.

I was able to fix it by doing what asjsc does, i.e. adding '
*-external-library-path="$SCRIPT_HOME/../libs/js.swc"*'.  This seems to fix
the build issue with mxmlc.

So, is it okay to change the script to look like this?

java $VMARGS $D32 $SETUP_SH_VMARGS -Dflexcompiler="$FALCON_HOME"
-Dflexlib="$FLEX_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/mxmlc.jar"
+flexlib="$FLEX_HOME/frameworks" -js-output-type=FLEXJS
-sdk-js-lib="$FLEX_HOME/frameworks/js/FlexJS/src"
*-external-library-path="$SCRIPT_HOME/../libs/js.swc"
*"$@"

Thanks,
Om


Re: Bug in mxmlc script

2016-01-04 Thread OmPrakash Muppirala
I think I get it.

I thought that the source code for js.swc was in
$FLEX_HOME/frameworks/js/FlexJS/src.
I guess that is not true?

The original problem was that asjsc does not create the index.html file.  I
was asked to use mxmlc for that.  (Refer to the npm install flexjs thread)

When I used the script in {installed_flexjs}/js/bin/mxmlc, it blew up
because it could not find the definitions for HTMLElement, SVGElement etc.
because they are in js.swc.  I don't think it blew up because of the
missing /frameworks/js/FlexJS/src folder.  Adding the external library path
to js.swc fixed this issue.

The way I did this was to create a new mxmlcnpm script and add this js.swc
library path in that.  Is that okay?

I guess another question is: what would be the best way to add ability to
create index.html capability to asjsc?

Thanks,
Om


On Mon, Jan 4, 2016 at 4:16 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 1/4/16, 4:09 PM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >In the flexjs/js/bin/mxmlc script, I see that we are referencing the '
> >*/frameworks/js/FlexJS/src*' folder.
>
> This folder is intended as the place for folks to put monkey-patched JS
> files so they can override the JS in the SWCs if they need to workaround a
> bug.
>
> What code blew up?  Maybe we should create an empty folder there or make
> the compiler tolerant of it not being there.
>
> Trying to use js.swc with MXMLC is not currently the common configuration
> for FlexJS.  Most folks who are using MXML and AS to build a FlexJS app
> shouldn't need to write directly the the JS API especially if they want to
> use a SWF version for testing and/or deployment.
>
> If you want to build out a different script for folks to use to build
> native apps, feel free to do that.
>
> -Aleex
>
>


Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-04 Thread OmPrakash Muppirala
Done!  Added mxmlc support which correctly outputs the html files as well.

(There is a bug in the mxmlc script that I had to fix, I will open a new
thread about that)

Try this to get mxmlc to work with npm:

*npm uninstall flexjs -g*
*npm uninstall flexjs*
*npm cache clear*
npm install -g http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz

Windows:
mxmlc
"C:\Users\omuppirala\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStatesMap\src\USStatesMap.as"

OSX:
mxmlc /usr/local/lib/node_modules/flexjs/examples/native/
USStatesMap/src/USStatesMap.as

You should see a working index.html in ...USStatesMap/bin/

Thanks,
Om

On Mon, Jan 4, 2016 at 1:31 PM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> On Mon, Jan 4, 2016 at 1:23 PM, Josh Tynjala <joshtynj...@gmail.com>
> wrote:
>
>> If you want to compile FlexJS framework apps that also have an HTML file,
>> Om needs to expose the mxmlc compiler in js/bin too. asjsc is meant to be
>> integrated into a larger workflow where you use the generated JS with your
>> own custom HTML, styles, etc.
>>
>
> I am on it.  I should get this working soon, now that I know the other
> obstacles are (almost) gone.
>
> Thanks,
> Om
>
>
>>
>> - Josh
>>
>> On Mon, Jan 4, 2016 at 1:05 PM, Harbs <harbs.li...@gmail.com> wrote:
>>
>> > OK. That did it.
>> >
>> > I got the sample to compile.
>> >
>> > Amazing work!
>> >
>> > It would be cool if we could get the html file to be created as well.
>> >
>> > On Jan 4, 2016, at 10:43 PM, Harbs <harbs.li...@gmail.com> wrote:
>> >
>> > > Whoops. I installed JRE rather than JDK.
>> > >
>> > > Installing JDK now…
>> > >
>> > > On Jan 4, 2016, at 10:40 PM, OmPrakash Muppirala <
>> bigosma...@gmail.com>
>> > wrote:
>> > >
>> > >> On Mon, Jan 4, 2016 at 12:36 PM, Harbs <harbs.li...@gmail.com>
>> wrote:
>> > >>
>> > >>> Yes. That was the problem.
>> > >>>
>> > >>> Next issue:
>> > >>>
>> > >>> I tried installing this on a non-developement machine which
>> apparently
>> > did
>> > >>> not have Java installed. When trying to run asjsc, I get a warning
>> > that “No
>> > >>> Java runtime preset”. Even after installing Java, I still get this
>> > error.
>> > >>>
>> > >>> Do I need to re-install flexjs after installing Java? If yes, you
>> > should
>> > >>> probably make Java a prerequisite BEFORE installing FlexJS.
>> > >>>
>> > >>
>> > >> Is Java in the path?  If you run "java -version" do you get anything?
>> > >>
>> > >> Thanks,
>> > >> Om
>> > >>
>> > >>
>> > >>>
>> > >>> On Jan 4, 2016, at 9:53 PM, OmPrakash Muppirala <
>> bigosma...@gmail.com>
>> > >>> wrote:
>> > >>>
>> > >>>> Looks like you did not do a -g when you did the install.  Can you
>> > double
>> > >>>> check?
>> > >>>
>> > >>>
>> > >
>> >
>> >
>>
>
>


Re: [FlexJS] Need your help testing the flexjs npm module

2016-01-04 Thread OmPrakash Muppirala
Oh right,  forgot about that.

npm uninstall flexjs -g

Then clear cache and install.

Thanks,
Om
On Jan 4, 2016 7:44 AM, "Alex Harui" <aha...@adobe.com> wrote:

> Sounds exciting.  For those of us who have already tried this, what are
> the steps to uninstall so we know we are installing from a clean slate?
>
> Thanks,
> -Alex
>
> On 1/4/16, 1:18 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >Hi folks,
> >
> >I now have the flexjs npm module working fine on Windows (Cygiwn) and Mac
> >OSX. Once again, here are the steps to test:
> >
> >
> >   1. If you don't have Node and/or npm installed, first install it
> >  - Windows: Use the Installer from https://nodejs.org.  Ensure that
> >  you select the 'npm package manager' option during installation. Use
> >  the Command Prompt here on.
> >  - Mac: Run *brew install node* from the terminal
> >   2. Make sure npm is available by running *npm -v*
> >   3. Run *npm cache clear*
> >   4. Now run *npm install
> >   -g http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz
> >   <http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz>*  (It takes
> a
> >   while to download all the dependencies and there are a couple of
> >prompts
> >   you need to answer)
> >   This will install the entire FlexJS SDK and register asjsc and
> >asjscompc
> >   as global binaries.
> >   5. Now run *asjsc <*your_actionscript_file_name.as*>*
> >   On windows, try this:
> >   asjsc
> >
> >"C:\Users\{username}\AppData\Roaming\npm\node_modules\flexjs\examples\nati
> >ve\USStatesMap\src\USStatesMap.as"
> >   On OSX, try this:
> >   asjsc
> >
> >/usr/local/lib/node_modules/flexjs/examples/native/USStatesMap/src/USState
> >sMap.as
> >   You should see the ActionScript file getting compiled to Javascript
> >   files in the folder ...\USStatesMap\bin
> >
> >
> >Everyone, please do try these steps and report your results.  We would
> >like
> >to publish this as soon as possible.
> >
> >Thanks,
> >Om
> >
> >On Tue, Dec 29, 2015 at 11:07 AM, OmPrakash Muppirala
> ><bigosma...@gmail.com>
> >wrote:
> >
> >> It looks like folks who install node/npm using homebrew are going to
> >>ruin
> >> into this problem.
> >>
> >> https://gist.github.com/DanHerbert/9520689 has a nice explanation and a
> >> fix for this issue.
> >>
> >> Thanks,
> >> Om
> >> On Dec 29, 2015 10:00 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:
> >>
> >>> I had this issue a while back. I could only install packages globally
> >>>if I
> >>> used sudo. I don't remember exactly what I did to fix it, but I recall
> >>> seeing a suggestion to configure npm to install global packages at a
> >>> different location. I'll try to remember to check later when I'm at my
> >>> computer.
> >>>
> >>> - Josh
> >>> On Dec 29, 2015 9:18 AM, "Carlos Rovira"
> >>><carlos.rov...@codeoscopic.com>
> >>> wrote:
> >>>
> >>> > Hi Om,
> >>> >
> >>> > I had installed npm 2.11.3
> >>> >
> >>> > I tried "npm install -g
> >>> > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz;
> >>> >
> >>> > and this gave me this error:
> >>> >
> >>> > macbookpro:~ carlosrovira$ npm install -g
> >>> > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz
> >>> >
> >>> > npm ERR! tar.unpack untar error
> >>> > /Users/carlosrovira/.npm/flexjs/0.5.0/package.tgz
> >>> >
> >>> > npm ERR! Darwin 15.2.0
> >>> >
> >>> > npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
> >>>"-g"
> >>> "
> >>> > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz;
> >>> >
> >>> > npm ERR! node v0.12.7
> >>> >
> >>> > npm ERR! npm  v2.11.3
> >>> >
> >>> > npm ERR! path /usr/local/lib/node_modules/flexjs
> >>> >
> >>> > npm ERR! code EACCES
> >>> >
> >>> > npm ERR! errno -13
> >>> >
> >>

Re: [FlexJS] npm install flexjs

2016-01-02 Thread OmPrakash Muppirala
I have been able to make progress on this front.

I am able to install flexjs using this command on Windows and Mac:
npm cache clear
npm install http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz -g

On Windows, in Cygwin, when I run this:
asjsc
"C:\Users\omuppirala\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStatesMap\src\USStatesMap.as"

I am seeing the compilation go through properly with bin/js-debug and
bin/js-release folders created.  Although it is missing the index.html
file.  I am pretty sure I am missing some step somewhere.


With the same exact code, on Mac, when I run:
omuppirala$ asjsc
/usr/local/lib/node_modules/flexjs/examples/native/USStatesMap/src/USStatesMap.as

mxmlc seems to run but I am getting this error:

/usr/local/lib/node_modules/flexjs/frameworks/flex-config.xml:83
unable to open
'/usr/local/lib/node_modules/flexjs/frameworks/{playerglobalHome}/11.1'.
/usr/local/lib/node_modules/flexjs/frameworks/flex-config.xml (line: 83)
  

Any idea what's going wrong?

Thanks,
Om


On Tue, Dec 29, 2015 at 10:53 AM, Alex Harui <aha...@adobe.com> wrote:

> I'm on a Mac.  I had to use sudo.
>
> It sets up mxmlc here:
>
> /usr/local$ find . -name mxmlc*
> ./lib/node_modules/flexjs/bin/mxmlc
> ./lib/node_modules/flexjs/bin/mxmlc.bat
> ./lib/node_modules/flexjs/downloads/falcon/compiler/commandline/mxmlc
> ./lib/node_modules/flexjs/downloads/falcon/compiler/commandline/mxmlc.bat
> ./lib/node_modules/flexjs/downloads/falcon/compiler/generated/dist/sdk/bin/
> mxmlc
> ./lib/node_modules/flexjs/downloads/falcon/compiler/generated/dist/sdk/bin/
> mxmlc.bat
> ./lib/node_modules/flexjs/downloads/falcon/compiler.jx/bin/mxmlc
> ./lib/node_modules/flexjs/downloads/falcon/compiler.jx/bin/mxmlc.bat
> ./lib/node_modules/flexjs/downloads/falcon/js/bin/mxmlc
> ./lib/node_modules/flexjs/downloads/falcon/js/bin/mxmlc.bat
> ./lib/node_modules/flexjs/downloads/falcon/js/lib/mxmlc.jar
> ./lib/node_modules/flexjs/js/bin/mxmlc
> ./lib/node_modules/flexjs/js/bin/mxmlc.bat
> ./lib/node_modules/flexjs/js/lib/mxmlc.jar
>
> But asjsc is copied to /usr/local/bin so it isn't going to find mxmlc in
> ../lib relative to /usr/local/bin
>
>
> -Alex
>
> On 12/29/15, 9:14 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >Yes, the folder structures are (should be) the same.   The weird thing is
> >that asjscompc is working fine without this error.
> >
> >Can you try it out based on the instructions in the other thread?  I am
> >sure some things are obvious to you and easy to catch.
> >
> >Thanks,
> >Om
> >On Dec 29, 2015 7:09 AM, "Alex Harui" <aha...@adobe.com> wrote:
> >
> >> Have you compared the folder structures from npm install vs the
> >>installer?
> >>  Should they be the same?
> >>
> >> -Alex
> >>
> >> On 12/29/15, 1:04 AM, "omup...@gmail.com on behalf of OmPrakash
> >>Muppirala"
> >> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
> >>
> >> >I got the FlexJS 0.5 installed via the Installer and the call to asjsc
> >> >from
> >> >that folder seems to work fine.
> >> >
> >> >So, I don't think it is a Java version conflict.
> >> >
> >> >Any other ideas?
> >> >
> >> >Thanks,
> >> >Om
> >> >
> >> >On Mon, Dec 28, 2015 at 3:03 AM, Michael Schmalle
> >> ><teotigraphix...@gmail.com
> >> >> wrote:
> >> >
> >> >> Just shooting in the dark but some type of Java version conflict? It
> >> >>seems
> >> >> familiar to me like that could be a possibility.
> >> >>
> >> >> Mike
> >> >>
> >> >> On Mon, Dec 28, 2015 at 4:34 AM, OmPrakash Muppirala
> >> >><bigosma...@gmail.com
> >> >> >
> >> >> wrote:
> >> >>
> >> >> > I have this working locally.   If the user has npm and Java
> >>installed
> >> >>on
> >> >> > their machine, they can now simply do:
> >> >> >
> >> >> > *npm install flexjs -g*
> >> >> > (or should it be npm install apache-flexjs -g?)
> >> >> >
> >> >> > This will download all the dependencies (which has some bugs for
> >>now,
> >> >> will
> >> >> > get to that in a bit), register the asjsc and asjscompc files as
> >> >>global
> >> >> > binaries.
> >> >> >
> >> >> > One issue I am currently facing is, when I do this:
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >>
> >>>>C:\Users\omuppirala\AppData\Roaming\npm\node_modules\flexjs\examples\na
> >>>>ti
> >> >>ve\USStatesMap\src>asjsc
> >> >> > USStatesMap.as
> >> >> >
> >> >> > I am getting this error:
> >> >> > Error: Could not find or load main class
> >> >> > org.apache.flex.compiler.clients.MXMLJSC
> >> >> >
> >> >> > This looks familiar, but I am not sure what I am doing wrong.
> >> >> >
> >> >> > Any pointers?
> >> >> >
> >> >> > P.S.  I will upload this flexjs npm module as a tarball on to my
> >> >>personal
> >> >> > site from where the rest of the folks can test.  Once we iron out
> >>all
> >> >>the
> >> >> > kinks, I will set about publishing the module to the npm
> >>repository.
> >> >> >
> >> >> > Thanks,
> >> >> > Om
> >> >> >
> >> >>
> >>
> >>
>
>


Re: [FlexJS] npm install flexjs

2015-12-29 Thread OmPrakash Muppirala
Yes, the folder structures are (should be) the same.   The weird thing is
that asjscompc is working fine without this error.

Can you try it out based on the instructions in the other thread?  I am
sure some things are obvious to you and easy to catch.

Thanks,
Om
On Dec 29, 2015 7:09 AM, "Alex Harui" <aha...@adobe.com> wrote:

> Have you compared the folder structures from npm install vs the installer?
>  Should they be the same?
>
> -Alex
>
> On 12/29/15, 1:04 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
> <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:
>
> >I got the FlexJS 0.5 installed via the Installer and the call to asjsc
> >from
> >that folder seems to work fine.
> >
> >So, I don't think it is a Java version conflict.
> >
> >Any other ideas?
> >
> >Thanks,
> >Om
> >
> >On Mon, Dec 28, 2015 at 3:03 AM, Michael Schmalle
> ><teotigraphix...@gmail.com
> >> wrote:
> >
> >> Just shooting in the dark but some type of Java version conflict? It
> >>seems
> >> familiar to me like that could be a possibility.
> >>
> >> Mike
> >>
> >> On Mon, Dec 28, 2015 at 4:34 AM, OmPrakash Muppirala
> >><bigosma...@gmail.com
> >> >
> >> wrote:
> >>
> >> > I have this working locally.   If the user has npm and Java installed
> >>on
> >> > their machine, they can now simply do:
> >> >
> >> > *npm install flexjs -g*
> >> > (or should it be npm install apache-flexjs -g?)
> >> >
> >> > This will download all the dependencies (which has some bugs for now,
> >> will
> >> > get to that in a bit), register the asjsc and asjscompc files as
> >>global
> >> > binaries.
> >> >
> >> > One issue I am currently facing is, when I do this:
> >> >
> >> >
> >> >
> >>
> >>C:\Users\omuppirala\AppData\Roaming\npm\node_modules\flexjs\examples\nati
> >>ve\USStatesMap\src>asjsc
> >> > USStatesMap.as
> >> >
> >> > I am getting this error:
> >> > Error: Could not find or load main class
> >> > org.apache.flex.compiler.clients.MXMLJSC
> >> >
> >> > This looks familiar, but I am not sure what I am doing wrong.
> >> >
> >> > Any pointers?
> >> >
> >> > P.S.  I will upload this flexjs npm module as a tarball on to my
> >>personal
> >> > site from where the rest of the folks can test.  Once we iron out all
> >>the
> >> > kinks, I will set about publishing the module to the npm repository.
> >> >
> >> > Thanks,
> >> > Om
> >> >
> >>
>
>


Re: [FlexJS] How to test npm flexjs module

2015-12-29 Thread OmPrakash Muppirala
Hmm, looks like a common enough error.
https://github.com/npm/npm/issues/5133

Can you first try to see if  this fixes it?
npm cache clean
Then run the install again.

If not,  try it as sudo.

Hopefully one of the solutions should work.

Thanks,
Om
On Dec 29, 2015 9:18 AM, "Carlos Rovira" <carlos.rov...@codeoscopic.com>
wrote:

> Hi Om,
>
> I had installed npm 2.11.3
>
> I tried "npm install -g
> http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz;
>
> and this gave me this error:
>
> macbookpro:~ carlosrovira$ npm install -g
> http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz
>
> npm ERR! tar.unpack untar error
> /Users/carlosrovira/.npm/flexjs/0.5.0/package.tgz
>
> npm ERR! Darwin 15.2.0
>
> npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "
> http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz;
>
> npm ERR! node v0.12.7
>
> npm ERR! npm  v2.11.3
>
> npm ERR! path /usr/local/lib/node_modules/flexjs
>
> npm ERR! code EACCES
>
> npm ERR! errno -13
>
>
> npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/flexjs'
>
> npm ERR! at Error (native)
>
> npm ERR!  { [Error: EACCES, mkdir '/usr/local/lib/node_modules/flexjs']
>
> npm ERR!   errno: -13,
>
> npm ERR!   code: 'EACCES',
>
> npm ERR!   path: '/usr/local/lib/node_modules/flexjs',
>
> npm ERR!   fstream_type: 'Directory',
>
> npm ERR!   fstream_path: '/usr/local/lib/node_modules/flexjs',
>
> npm ERR!   fstream_class: 'DirWriter',
>
> npm ERR!   fstream_stack:
>
> npm ERR![
>
> '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25',
>
> npm ERR!
> '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53',
>
> npm ERR!  'FSReqWrap.oncomplete (fs.js:95:15)' ] }
>
> npm ERR!
>
> npm ERR! Please try running this command again as root/Administrator.
>
>
> npm ERR! Please include the following file with any support request:
>
> npm ERR! /Users/carlosrovira/npm-debug.log
>
>
>
>
> 2015-12-29 11:29 GMT+01:00 OmPrakash Muppirala <omup...@gmail.com>:
>
> > Here are the steps on how to test the npm flexjs module.
> >
> >1. If you don't have Node and/or npm installed, first install it
> >   - Windows: Use the Installer from https://nodejs.org.  Ensure that
> >   you select the 'npm package manager' option during installation.
> Use
> > the
> >   Command Prompt here on.
> >   - Mac: Run *brew install node* from the terminal
> >2. Make sure npm is available by running *npm -v*
> >3. Now run *npm install -g
> >http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz
> ><http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz>*  (It
> takes a
> >while to download all the dependencies and there are a couple of
> prompts
> >you need to answer)
> >This will install the entire FlexJS SDK and register asjsc and
> asjscompc
> >as global binaries.
> >4. Now run
> > *asjsc  ><http://your_actionscript_file_name.as>> *You should at least see
> some
> >relevant error messages.  Once you have this running, you are at the
> > same
> >page as me.
> >5. Run *asjscompc  *This seems to work, but would be nice to
> have
> >confirmation
> >
> >
> > Now you can help me debug the issues (especially Alex) :-)
> >
> > Thanks,
> > Om
> >
>
>
>
> --
>
> Carlos Rovira
> Director General
> M: +34 607 22 60 05
> http://www.codeoscopic.com
> http://www.avant2.es
>
>
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o confidencial. Si ha recibido este mensaje por
> error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> proceda a su destrucción.
>
> De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> servicio o información solicitados, teniendo usted derecho de acceso,
> rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> necesaria.
>


Re: [FlexJS] How to test npm flexjs module

2015-12-29 Thread OmPrakash Muppirala
On my mac, it went fine without any errors,  at least the install part.

Thanks,
Om
On Dec 29, 2015 9:36 AM, "Carlos Rovira" <carlos.rov...@codeoscopic.com>
wrote:

> Hi Om,
>
> I tried that but with no luck. I'll check my npm installation and see if
> there's something wrong in it
>
> thanks
>
> 2015-12-29 18:25 GMT+01:00 OmPrakash Muppirala <bigosma...@gmail.com>:
>
> > Hmm, looks like a common enough error.
> > https://github.com/npm/npm/issues/5133
> >
> > Can you first try to see if  this fixes it?
> > npm cache clean
> > Then run the install again.
> >
> > If not,  try it as sudo.
> >
> > Hopefully one of the solutions should work.
> >
> > Thanks,
> > Om
> > On Dec 29, 2015 9:18 AM, "Carlos Rovira" <carlos.rov...@codeoscopic.com>
> > wrote:
> >
> > > Hi Om,
> > >
> > > I had installed npm 2.11.3
> > >
> > > I tried "npm install -g
> > > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz;
> > >
> > > and this gave me this error:
> > >
> > > macbookpro:~ carlosrovira$ npm install -g
> > > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz
> > >
> > > npm ERR! tar.unpack untar error
> > > /Users/carlosrovira/.npm/flexjs/0.5.0/package.tgz
> > >
> > > npm ERR! Darwin 15.2.0
> > >
> > > npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
> "-g" "
> > > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz;
> > >
> > > npm ERR! node v0.12.7
> > >
> > > npm ERR! npm  v2.11.3
> > >
> > > npm ERR! path /usr/local/lib/node_modules/flexjs
> > >
> > > npm ERR! code EACCES
> > >
> > > npm ERR! errno -13
> > >
> > >
> > > npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/flexjs'
> > >
> > > npm ERR! at Error (native)
> > >
> > > npm ERR!  { [Error: EACCES, mkdir '/usr/local/lib/node_modules/flexjs']
> > >
> > > npm ERR!   errno: -13,
> > >
> > > npm ERR!   code: 'EACCES',
> > >
> > > npm ERR!   path: '/usr/local/lib/node_modules/flexjs',
> > >
> > > npm ERR!   fstream_type: 'Directory',
> > >
> > > npm ERR!   fstream_path: '/usr/local/lib/node_modules/flexjs',
> > >
> > > npm ERR!   fstream_class: 'DirWriter',
> > >
> > > npm ERR!   fstream_stack:
> > >
> > > npm ERR![
> > >
> > >
> >
> '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25',
> > >
> > > npm ERR!
> > > '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53',
> > >
> > > npm ERR!  'FSReqWrap.oncomplete (fs.js:95:15)' ] }
> > >
> > > npm ERR!
> > >
> > > npm ERR! Please try running this command again as root/Administrator.
> > >
> > >
> > > npm ERR! Please include the following file with any support request:
> > >
> > > npm ERR! /Users/carlosrovira/npm-debug.log
> > >
> > >
> > >
> > >
> > > 2015-12-29 11:29 GMT+01:00 OmPrakash Muppirala <omup...@gmail.com>:
> > >
> > > > Here are the steps on how to test the npm flexjs module.
> > > >
> > > >1. If you don't have Node and/or npm installed, first install it
> > > >   - Windows: Use the Installer from https://nodejs.org.  Ensure
> > that
> > > >   you select the 'npm package manager' option during
> installation.
> > > Use
> > > > the
> > > >   Command Prompt here on.
> > > >   - Mac: Run *brew install node* from the terminal
> > > >2. Make sure npm is available by running *npm -v*
> > > >3. Now run *npm install -g
> > > >http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz
> > > ><http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz>*  (It
> > > takes a
> > > >while to download all the dependencies and there are a couple of
> > > prompts
> > > >you need to answer)
> > > >This will install the entire FlexJS SDK and register asjsc and
> > > asjscompc
> > > >as global binaries.
> > > >4. Now run
> > > > *asjsc  > > ><http://your_actionscript_file_name.as>> *You should at least see
> > >

Re: [FlexJS] How to test npm flexjs module

2015-12-29 Thread OmPrakash Muppirala
It looks like folks who install node/npm using homebrew are going to ruin
into this problem.

https://gist.github.com/DanHerbert/9520689 has a nice explanation and a fix
for this issue.

Thanks,
Om
On Dec 29, 2015 10:00 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:

> I had this issue a while back. I could only install packages globally if I
> used sudo. I don't remember exactly what I did to fix it, but I recall
> seeing a suggestion to configure npm to install global packages at a
> different location. I'll try to remember to check later when I'm at my
> computer.
>
> - Josh
> On Dec 29, 2015 9:18 AM, "Carlos Rovira" <carlos.rov...@codeoscopic.com>
> wrote:
>
> > Hi Om,
> >
> > I had installed npm 2.11.3
> >
> > I tried "npm install -g
> > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz;
> >
> > and this gave me this error:
> >
> > macbookpro:~ carlosrovira$ npm install -g
> > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz
> >
> > npm ERR! tar.unpack untar error
> > /Users/carlosrovira/.npm/flexjs/0.5.0/package.tgz
> >
> > npm ERR! Darwin 15.2.0
> >
> > npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "
> > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz;
> >
> > npm ERR! node v0.12.7
> >
> > npm ERR! npm  v2.11.3
> >
> > npm ERR! path /usr/local/lib/node_modules/flexjs
> >
> > npm ERR! code EACCES
> >
> > npm ERR! errno -13
> >
> >
> > npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/flexjs'
> >
> > npm ERR! at Error (native)
> >
> > npm ERR!  { [Error: EACCES, mkdir '/usr/local/lib/node_modules/flexjs']
> >
> > npm ERR!   errno: -13,
> >
> > npm ERR!   code: 'EACCES',
> >
> > npm ERR!   path: '/usr/local/lib/node_modules/flexjs',
> >
> > npm ERR!   fstream_type: 'Directory',
> >
> > npm ERR!   fstream_path: '/usr/local/lib/node_modules/flexjs',
> >
> > npm ERR!   fstream_class: 'DirWriter',
> >
> > npm ERR!   fstream_stack:
> >
> > npm ERR![
> >
> >
> '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25',
> >
> > npm ERR!
> > '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53',
> >
> > npm ERR!  'FSReqWrap.oncomplete (fs.js:95:15)' ] }
> >
> > npm ERR!
> >
> > npm ERR! Please try running this command again as root/Administrator.
> >
> >
> > npm ERR! Please include the following file with any support request:
> >
> > npm ERR! /Users/carlosrovira/npm-debug.log
> >
> >
> >
> >
> > 2015-12-29 11:29 GMT+01:00 OmPrakash Muppirala <omup...@gmail.com>:
> >
> > > Here are the steps on how to test the npm flexjs module.
> > >
> > >1. If you don't have Node and/or npm installed, first install it
> > >   - Windows: Use the Installer from https://nodejs.org.  Ensure
> that
> > >   you select the 'npm package manager' option during installation.
> > Use
> > > the
> > >   Command Prompt here on.
> > >   - Mac: Run *brew install node* from the terminal
> > >2. Make sure npm is available by running *npm -v*
> > >3. Now run *npm install -g
> > >http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz
> > ><http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz>*  (It
> > takes a
> > >while to download all the dependencies and there are a couple of
> > prompts
> > >you need to answer)
> > >This will install the entire FlexJS SDK and register asjsc and
> > asjscompc
> > >as global binaries.
> > >4. Now run
> > > *asjsc  > ><http://your_actionscript_file_name.as>> *You should at least see
> > some
> > >relevant error messages.  Once you have this running, you are at the
> > > same
> > >page as me.
> > >5. Run *asjscompc  *This seems to work, but would be nice to
> > have
> > >confirmation
> > >
> > >
> > > Now you can help me debug the issues (especially Alex) :-)
> > >
> > > Thanks,
> > > Om
> > >
> >
> >
> >
> > --
> >
> > Carlos Rovira
> > Director General
> > M: +34 607 22 60 05
> > http://www.codeoscopic.com
> > http://www.avant2.es
> >
> >
> > Este mensaje se dirige exclusivamente a su destinatario y puede contener
> > información privilegiada o confidencial. Si ha recibido este mensaje por
> > error, le rogamos que nos lo comunique inmediatamente por esta misma vía
> y
> > proceda a su destrucción.
> >
> > De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> comunicamos
> > que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> > S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> > servicio o información solicitados, teniendo usted derecho de acceso,
> > rectificación, cancelación y oposición de sus datos dirigiéndose a
> nuestras
> > oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> > necesaria.
> >
>


Re: [FlexJS] npm install flexjs

2015-12-29 Thread OmPrakash Muppirala
I got the FlexJS 0.5 installed via the Installer and the call to asjsc from
that folder seems to work fine.

So, I don't think it is a Java version conflict.

Any other ideas?

Thanks,
Om

On Mon, Dec 28, 2015 at 3:03 AM, Michael Schmalle <teotigraphix...@gmail.com
> wrote:

> Just shooting in the dark but some type of Java version conflict? It seems
> familiar to me like that could be a possibility.
>
> Mike
>
> On Mon, Dec 28, 2015 at 4:34 AM, OmPrakash Muppirala <bigosma...@gmail.com
> >
> wrote:
>
> > I have this working locally.   If the user has npm and Java installed on
> > their machine, they can now simply do:
> >
> > *npm install flexjs -g*
> > (or should it be npm install apache-flexjs -g?)
> >
> > This will download all the dependencies (which has some bugs for now,
> will
> > get to that in a bit), register the asjsc and asjscompc files as global
> > binaries.
> >
> > One issue I am currently facing is, when I do this:
> >
> >
> >
> C:\Users\omuppirala\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStatesMap\src>asjsc
> > USStatesMap.as
> >
> > I am getting this error:
> > Error: Could not find or load main class
> > org.apache.flex.compiler.clients.MXMLJSC
> >
> > This looks familiar, but I am not sure what I am doing wrong.
> >
> > Any pointers?
> >
> > P.S.  I will upload this flexjs npm module as a tarball on to my personal
> > site from where the rest of the folks can test.  Once we iron out all the
> > kinks, I will set about publishing the module to the npm repository.
> >
> > Thanks,
> > Om
> >
>


[FlexJS] How to test npm flexjs module

2015-12-29 Thread OmPrakash Muppirala
Here are the steps on how to test the npm flexjs module.

   1. If you don't have Node and/or npm installed, first install it
  - Windows: Use the Installer from https://nodejs.org.  Ensure that
  you select the 'npm package manager' option during installation. Use the
  Command Prompt here on.
  - Mac: Run *brew install node* from the terminal
   2. Make sure npm is available by running *npm -v*
   3. Now run *npm install -g
   http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz
   *  (It takes a
   while to download all the dependencies and there are a couple of prompts
   you need to answer)
   This will install the entire FlexJS SDK and register asjsc and asjscompc
   as global binaries.
   4. Now run
*asjsc http://your_actionscript_file_name.as>> *You should at least see some
   relevant error messages.  Once you have this running, you are at the same
   page as me.
   5. Run *asjscompc  *This seems to work, but would be nice to have
   confirmation


Now you can help me debug the issues (especially Alex) :-)

Thanks,
Om


[FlexJS] npm install flexjs

2015-12-28 Thread OmPrakash Muppirala
I have this working locally.   If the user has npm and Java installed on
their machine, they can now simply do:

*npm install flexjs -g*
(or should it be npm install apache-flexjs -g?)

This will download all the dependencies (which has some bugs for now, will
get to that in a bit), register the asjsc and asjscompc files as global
binaries.

One issue I am currently facing is, when I do this:

C:\Users\omuppirala\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStatesMap\src>asjsc
USStatesMap.as

I am getting this error:
Error: Could not find or load main class
org.apache.flex.compiler.clients.MXMLJSC

This looks familiar, but I am not sure what I am doing wrong.

Any pointers?

P.S.  I will upload this flexjs npm module as a tarball on to my personal
site from where the rest of the folks can test.  Once we iron out all the
kinks, I will set about publishing the module to the npm repository.

Thanks,
Om


<    1   2   3   4   5   6   7   8   9   10   >