Re: [FalconJX] unit tests

2016-01-14 Thread Michael Schmalle
Yeah I guess I should have looked closer;

Unable to parse
C:\Users\Teoti\Documents\ApacheFlex\git\flex-asjs\frameworks\as\basic-manifest.xml
Unable to parse
C:\Users\Teoti\Documents\ApacheFlex\git\flex-asjs\frameworks\as\basic-manifest.xml
Unable to parse
C:\Users\Teoti\Documents\ApacheFlex\git\flex-asjs\frameworks\as\basic-manifest.xml
Unable to parse
C:\Users\Teoti\Documents\ApacheFlex\git\flex-asjs\frameworks\as\basic-manifest.xml
Unable to parse
C:\Users\Teoti\Documents\ApacheFlex\git\flex-asjs\frameworks\as\basic-manifest.xml

I need to recheckout asjs then something isn't right.

Mike

On Thu, Jan 14, 2016 at 4:50 PM, Alex Harui  wrote:

>
>
> On 1/14/16, 12:17 PM, "Michael Schmalle" 
> wrote:
>
> >I just did a super clean on compiler, compiler.jx and compiler.jx.tests
> >then a build and I have 14 failing unit tests out of 1250.
> >
> >Do these tests use asjs repo for anything?
>
> I thought I had set up the default Ant target to not require any other
> repos.  However I think if you run the entire compiler.jx.test project
> from Eclipse it will run the test that require other repos.
>
> -Alex
>
>


Re: [FalconJX] unit tests

2016-01-14 Thread Alex Harui


On 1/14/16, 12:17 PM, "Michael Schmalle"  wrote:

>I just did a super clean on compiler, compiler.jx and compiler.jx.tests
>then a build and I have 14 failing unit tests out of 1250.
>
>Do these tests use asjs repo for anything?

I thought I had set up the default Ant target to not require any other
repos.  However I think if you run the entire compiler.jx.test project
from Eclipse it will run the test that require other repos.

-Alex



[FalconJX] unit tests

2016-01-14 Thread Michael Schmalle
I just did a super clean on compiler, compiler.jx and compiler.jx.tests
then a build and I have 14 failing unit tests out of 1250.

Do these tests use asjs repo for anything?

Mike


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 
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 
> 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-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.
>


[FLEXJS] POC MXML "Live" Editing

2016-01-14 Thread Alex Harui
Hi,

I spend the last few days creating a proof-of-concept that FlexJS and the
Falcon compiler can support limited "live" editing of MXML.  I've never
used Design View in FB, but when tweaking the UI for Flex apps, I often
find myself in a cycle of:  edit some values in the mxml, save it, reload
the app, make more edits, etc.  Each time, the app has to be reloaded to
see the changes.  "Live" editing allows you to see certain changes without
reloading the app.  The POC handles a few scenarios that involve MXML
states.

It is kind of hard to demo, but I think these are the steps:

0. Download Apache FlexJS 0.5.0 (or the 0.6.0 nightly) and install it as
an SDK in FB.
1. Download this FB project:
http://home.apache.org/~aharui/MXMLLiveEditing/DataBindingTest.fxp
2. Download this FB project:
http://home.apache.org/~aharui/MXMLLiveEditing/MXMLLiveEditAgent.fxp

3. Import both projects into FB.
4. Run MXMLLiveEditAgent.
5. In the MXMLLiveEditAgent UI, select the MyInitialView.mxml file from
the DataBindingTest project.
6. Hit the Watch button.
7. Run DataBindingTest.
8. Make and save a change to MyInitialView.mxml

When the file is saved, a few seconds later, the changes should be
reflected in DataBindingTest.  This POC has a white list of properties, so
you can edit width, height, x, y, label, text and style properties.  And
you can edit state-bound properties like height.showAll in the TextArea
tag.

Remember that styles in FlexJS are like HTML styles, so you can add, for
example, style="marginLeft:90" to one of the tags.

This is just for tweaking the visuals of your app.  You can't edit binding
expressions or event handlers or add or remove new components.  If you do
the POC will fail.  A more robust version would probably detect such
changes and tell you to refresh the app.  Also, if you save illegal XML,
the POC will fail.  A more robust version would also watch the output SWF
to see if it changes in order to know the MXML edit didn't have syntax
errors.

The way this works is that there is a plugin added to MyInitialView that
communicates with the MXMLLiveEditAgent.  The MXMLLiveEditAgent is
monitoring the last-modified date on the file.  When it changes, it loads
the MXML and compares it to the last copy and transmits changes to the
plugin that applies them to the app.  Certain scenarios like state-bound
properties and state-bound components can be handled in because the Falcon
compiler converts a lot of the MXML into data structures that the plugin
can find and modify.  It isn't clear that you could do this in the regular
Flex SDK without finishing up Falcon compiler support in the regular Flex
SDK.

Also, none of this really requires FB.  You can unzip the FXP files, build
everything yourself and edit the MXML with a text editor and it still all
works.

Future work (hopefully by other volunteers) would be to handle changes to
CSS syntax, watch multiple files at once, and swap out the LocalConnection
to use sockets so you could "live" edit an mobile app on a device, or have
an IDE communicate directly with the running app.

Anyway, let me know what you think.  I'm off to work on other things.

Thanks,
-Alex



Re: Flex in a week data services

2016-01-14 Thread Alex Harui
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: sprite flexjs support the full mouse api of flash now.

2016-01-14 Thread Dev LFM
This more than amazing.. this opens doors.. a lot of them..

2016-01-14 11:58 GMT+00:00 Deepak MS :

> WOw! Fantastic.!!!
> puyodot was awesome to play around...
>
> On Thu, Jan 14, 2016 at 4:48 PM, lizhi  wrote:
>
> > sprite flexjs support the full mouse api of flash now.
> >
> >
> http://matrix3d.github.io/assets/html5/flexjsstage3d/bin/js-release/#test_mouse
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-flex-development.247.n4.nabble.com/sprite-flexjs-support-the-full-mouse-api-of-flash-now-tp51271.html
> > Sent from the Apache Flex Development mailing list archive at Nabble.com.
> >
>


Re: js.swc ispointinpath

2016-01-14 Thread Alex Harui

On 1/14/16, 4:49 AM, "lizhi"  wrote:

>https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/
>isPointInPath
>
>boolean ctx.isPointInPath(x, y);
>boolean ctx.isPointInPath(x, y, fillRule);
>
>boolean ctx.isPointInPath(path, x, y);
>boolean ctx.isPointInPath(path, x, y, fillRule);
>
>where is the 3,4line?
>

ActionScript doesn't currently allow method overloading, so the choices
would be to strongly type the parameters or loosely type them.

-Alex



Flex in a week data services

2016-01-14 Thread Jeffrey May
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


js.swc ispointinpath

2016-01-14 Thread lizhi
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath

boolean ctx.isPointInPath(x, y);
boolean ctx.isPointInPath(x, y, fillRule);

boolean ctx.isPointInPath(path, x, y);
boolean ctx.isPointInPath(path, x, y, fillRule);

where is the 3,4line?



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/js-swc-ispointinpath-tp51273.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: sprite flexjs support the full mouse api of flash now.

2016-01-14 Thread Deepak MS
WOw! Fantastic.!!!
puyodot was awesome to play around...

On Thu, Jan 14, 2016 at 4:48 PM, lizhi  wrote:

> sprite flexjs support the full mouse api of flash now.
>
> http://matrix3d.github.io/assets/html5/flexjsstage3d/bin/js-release/#test_mouse
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/sprite-flexjs-support-the-full-mouse-api-of-flash-now-tp51271.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


sprite flexjs support the full mouse api of flash now.

2016-01-14 Thread lizhi
sprite flexjs support the full mouse api of flash now.
http://matrix3d.github.io/assets/html5/flexjsstage3d/bin/js-release/#test_mouse



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/sprite-flexjs-support-the-full-mouse-api-of-flash-now-tp51271.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.