Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-15 Thread Justin Mclean
Hi,

So just for giggles I implemented this as has recommended.

The PAYG cost ends up being the following if you use it:
- The loading cost for JS is an extra file in debug / 50+ lines of compiled 
code. Runtime cost  in JS is two events dispatched and 50+ extra lines of code 
needed to be run.
- 4 extra lines of code in AS version. The run time cost for AS is two events 
dispatched.

The PAYG cost ends up being the following if you don’t use it for both AS and 
JS:
- Two events dispatched and a couple of extra lines of code.

If we were to go with my original function implementation the PAYG cost for AS 
is zero and the PAYG cost for JS is a 2 line function that is only used if 
called.

There also seem a problem with JS only beads in that I couldn’t work out how to 
add it to the manifest as a JS only class. Anyone have any idea on how to do 
that? Adding it to NetworkClasses.as in a COMPILE::JS block didn’t work and 
caused complication errors.

Thanks,
Justin

Re: FlexSDK 4.16.0 installer errors

2017-04-15 Thread Alex Harui
On Windows, the script shouldn't go to line 453.  Please post the entire
console output.  What version of Windows are you using?

Thanks,
-Alex

On 4/15/17, 5:25 AM, "Lydecker"  wrote:

>Hi Alex,
>
>Quick question. If I use ant to do the install on Windows - it fails on
>line 453 in installer.xml (  )
>due to me not having rsync.exe on Windows. How do I go about getting rsync
>on Windows?
>
>Thanks
>
>On 15 April 2017 at 06:20, Alex Harui [via Apache Flex Development] <
>ml-node+s247n61123...@n4.nabble.com> wrote:
>
>> This is a known issue.  AIR 25 is so big, it blows up the memory of the
>> installer.
>>
>> You can use Ant to do the install.  Download the binary, unzip it and
>>run:
>> ant -f installer.xml
>>
>> HTH,
>> -Alex
>>
>> On 4/14/17, 8:00 PM, "Jasen Martin" <[hidden email]
>> > wrote:
>>
>> >Hi all
>> >
>> >Having same issue here, memory does not seem to be a problem I have 36
>>GM
>> >ram and still get the following failed install
>> >
>> >I too, managed to install on OSX (Seira) previously without issue.
>> >
>> >Open to any ideas on workaround for windows...
>> >
>> >Here is the log file:
>> >
>> >Installer version 3.2.0 (windows)
>> >Using Locale: en_AU
>> >Fetched the SDK download mirror URL from the CGI.
>> >SDK version Apache Flex SDK 4.16.0
>> >AIR version 25.0
>> >Flash Player version 25.0
>> >Creating Apache Flex home
>> >Creating temporary directory
>> >Downloading Apache Flex SDK from:
>> >https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fapache.mir
>> 
>>>ror.amaze.com.au%2Fflex%2F4.16.0%2Fbinaries%2Fapache-flex-sdk-4.16.0-bin
>>>.z
>>
>> 
>>>ip=02%7C01%7C%7C3dabc11543084c21b50208d483ab9522%7Cfa7b1b5a7b344387
>>>94
>>
>> 
>>>aed2c178decee1%7C0%7C0%7C636278220365820492=tl1aUGhSnLZmjgDZW77fuD
>>>dK
>>
>> >3Fyo7tqukNkwrSgvVjE%3D=0
>> >Verifying Apache Flex SDK MD5 Signature
>> >The Apache Flex SDK MD5 Signature of the downloaded files matches the
>> >reference. The file is valid.
>> >Unzipping: D:\FlexSDK_4.16_AIR_25\temp\apache-flex-sdk-4.16.0-bin.zip
>> >Finished unzipping:
>> >D:\FlexSDK_4.16_AIR_25\temp\apache-flex-sdk-4.16.0-bin.zip
>> >Downloading Adobe AIR Runtime Kit for Windows from:
>> >https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fairdownloa
>> 
>>>d.adobe.com%2Fair%2Fwin%2Fdownload%2F25.0%2F%2FAdobeAIRSDK.zip=02%7
>>>C0
>>
>> 
>>>1%7C%7C3dabc11543084c21b50208d483ab9522%7Cfa7b1b5a7b34438794aed2c178dece
>>>e1
>>
>> 
>>>%7C0%7C0%7C636278220365820492=uRhA2JFc8keiX9NaUrA%2B6V9GzffZySg3KH
>>>Bi
>>
>> >KI3UELQ%3D=0
>> >Validating download: D:\FlexSDK_4.16_AIR_25/in/AdobeAIRSDK.zip
>> >Error #1000
>> >
>> >
>> >Thanks for any help
>> >Jasen
>> >
>> >
>> >
>> >On Thu, Mar 30, 2017 at 6:45 AM, Lydecker <[hidden email]
>> > wrote:
>> >
>> >> I've been having zero luck with Windows all day.
>> >>
>> >> I've tried 7 different machines, which have varied from having 6Gb
>>RAM
>> >>to
>> >> 32Gb! All of them have generated the #1000 error after validating
>> >>AIR25.0
>> >>
>> >> Hoping this isn't going to put off newcomers to Flex...
>> >>
>> >> I tried on OSX and it downloaded fine, but my understanding is the
>> >>download
>> >> on OSX can't be copied to Windows as it strips the .exes out etc?
>> >>
>> >> Sad face.
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context: http://apache-flex-
>> >> development.247.n4.nabble.com/FlexSDK-4-16-0-installer-
>> >> errors-tp60542p60913.html
>> >> Sent from the Apache Flex Development mailing list archive at
>> >>Nabble.com.
>> >>
>> >
>> >
>> >
>> >--
>> >
>> >Jasen Martin
>> >0424 984 955
>> >
>>
>>
>>
>> --
>> If you reply to this email, your message will be added to the discussion
>> below:
>> 
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fl
>>ex-development.247.n4.nabble=02%7C01%7C%7C946d50ba33954d17a8c808
>>d48453f310%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63627894347635634
>>0=URPi6GHwNXp1rxB5gOudFPvCouLgrnhCeotAYv2q2mI%3D=0.
>> com/FlexSDK-4-16-0-installer-errors-tp60542p61123.html
>> To unsubscribe from FlexSDK 4.16.0 installer errors, click here
>> 
>>>lex-development.247.n4.nabble.com%2Ftemplate%2FNamlServlet.jtp%3Fmacr
>>o%3Dunsubscribe_by_code%26node%3D60542%26code%3DemFjaEB6aXp1bmV0d29yay5jb
>>y51a3w2MDU0MnwxOTEyNDM5NDkw=02%7C01%7C%7C946d50ba33954d17a8c808d4845
>>3f310%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636278943476366348
>>ta=7vQZuU0WTTGez5LptqVdlA%2Fru%2FovRGXFT4Wodr6aX2g%3D=0>
>> .
>> NAML
>> 
>>>lex-development.247.n4.nabble.com%2Ftemplate%2FNamlServlet.jtp%3Fmacr

Re: [FlexJS] Examples

2017-04-15 Thread Douglas McCarroll
IIRC, James Ward's benchmarking app...

https://www.jamesward.com/2007/04/30/ajax-and-flex-data-loading-benchmarks/

... used US Census data.

Sadly, the benchmark app doesn't seem to work any more, but I found this
via google:

https://www.census.gov/data/developers/data-sets.html

Douglas

On Sat, Apr 15, 2017 at 9:30 AM, Christofer Dutz 
wrote:

> We should ask Apache Infra … they have several streams of publically
> available data. Not financial data, but stuff we could display.
>
> Chris
>
> Am 15.04.17, 14:36 schrieb "Peter Ent" :
>
> Hi,
>
> A couple of examples no longer work: DataBinding et al and
> MobileTrader et al. These examples depend on an API URL from Yahoo
> Financial which seems to no longer be working.
>
> Does anyone know of a free, Apache license compatible, API to query
> financial data? This data does not have to be current, just something we
> can use for examples of HTTPService.
>
> Barring that, if anyone knows another source of data (Apache license
> compatible) that would be interesting in an example, please share and
> perhaps we can make an example around it.
>
> Thanks,
> Peter Ent
> Adobe Systems/Apache Flex Project.
>
>
>


Re: FlexSDK 4.16.0 installer errors

2017-04-15 Thread Lydecker
Hi Alex,

Quick question. If I use ant to do the install on Windows - it fails on
line 453 in installer.xml (  )
due to me not having rsync.exe on Windows. How do I go about getting rsync
on Windows?

Thanks

On 15 April 2017 at 06:20, Alex Harui [via Apache Flex Development] <
ml-node+s247n61123...@n4.nabble.com> wrote:

> This is a known issue.  AIR 25 is so big, it blows up the memory of the
> installer.
>
> You can use Ant to do the install.  Download the binary, unzip it and run:
> ant -f installer.xml
>
> HTH,
> -Alex
>
> On 4/14/17, 8:00 PM, "Jasen Martin" <[hidden email]
> > wrote:
>
> >Hi all
> >
> >Having same issue here, memory does not seem to be a problem I have 36 GM
> >ram and still get the following failed install
> >
> >I too, managed to install on OSX (Seira) previously without issue.
> >
> >Open to any ideas on workaround for windows...
> >
> >Here is the log file:
> >
> >Installer version 3.2.0 (windows)
> >Using Locale: en_AU
> >Fetched the SDK download mirror URL from the CGI.
> >SDK version Apache Flex SDK 4.16.0
> >AIR version 25.0
> >Flash Player version 25.0
> >Creating Apache Flex home
> >Creating temporary directory
> >Downloading Apache Flex SDK from:
> >https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fapache.mir
> >ror.amaze.com.au%2Fflex%2F4.16.0%2Fbinaries%2Fapache-flex-sdk-4.16.0-bin.z
>
> >ip=02%7C01%7C%7C3dabc11543084c21b50208d483ab9522%7Cfa7b1b5a7b34438794
>
> >aed2c178decee1%7C0%7C0%7C636278220365820492=tl1aUGhSnLZmjgDZW77fuDdK
>
> >3Fyo7tqukNkwrSgvVjE%3D=0
> >Verifying Apache Flex SDK MD5 Signature
> >The Apache Flex SDK MD5 Signature of the downloaded files matches the
> >reference. The file is valid.
> >Unzipping: D:\FlexSDK_4.16_AIR_25\temp\apache-flex-sdk-4.16.0-bin.zip
> >Finished unzipping:
> >D:\FlexSDK_4.16_AIR_25\temp\apache-flex-sdk-4.16.0-bin.zip
> >Downloading Adobe AIR Runtime Kit for Windows from:
> >https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fairdownloa
> >d.adobe.com%2Fair%2Fwin%2Fdownload%2F25.0%2F%2FAdobeAIRSDK.zip=02%7C0
>
> >1%7C%7C3dabc11543084c21b50208d483ab9522%7Cfa7b1b5a7b34438794aed2c178decee1
>
> >%7C0%7C0%7C636278220365820492=uRhA2JFc8keiX9NaUrA%2B6V9GzffZySg3KHBi
>
> >KI3UELQ%3D=0
> >Validating download: D:\FlexSDK_4.16_AIR_25/in/AdobeAIRSDK.zip
> >Error #1000
> >
> >
> >Thanks for any help
> >Jasen
> >
> >
> >
> >On Thu, Mar 30, 2017 at 6:45 AM, Lydecker <[hidden email]
> > wrote:
> >
> >> I've been having zero luck with Windows all day.
> >>
> >> I've tried 7 different machines, which have varied from having 6Gb RAM
> >>to
> >> 32Gb! All of them have generated the #1000 error after validating
> >>AIR25.0
> >>
> >> Hoping this isn't going to put off newcomers to Flex...
> >>
> >> I tried on OSX and it downloaded fine, but my understanding is the
> >>download
> >> on OSX can't be copied to Windows as it strips the .exes out etc?
> >>
> >> Sad face.
> >>
> >>
> >>
> >> --
> >> View this message in context: http://apache-flex-
> >> development.247.n4.nabble.com/FlexSDK-4-16-0-installer-
> >> errors-tp60542p60913.html
> >> Sent from the Apache Flex Development mailing list archive at
> >>Nabble.com.
> >>
> >
> >
> >
> >--
> >
> >Jasen Martin
> >0424 984 955
> >
>
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-development.247.n4.nabble.
> com/FlexSDK-4-16-0-installer-errors-tp60542p61123.html
> To unsubscribe from FlexSDK 4.16.0 installer errors, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexSDK-4-16-0-installer-errors-tp60542p61124.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Layouts

2017-04-15 Thread piotrz
Hi Peter,

I'm following and constantly checking your changes in this branch. It look
good. Do you think that is the last big changes in framework Api? 
Do you plan merge it to develop next week? 

Thanks, 
Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-Layouts-tp61120p61128.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [2/2] git commit: [flex-asjs] [refs/heads/develop] - MobileTrader nearly back to full function.

2017-04-15 Thread Piotr Zarzycki
Hi Peter,

I think in case of DataModelChangeNotifier you could extend [1].

[1]
https://github.com/apache/flex-asjs/blob/develop/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/supportClasses/DataProviderNotifierBase.as

Piotr

On Sat, Apr 15, 2017, 14:33  wrote:

> MobileTrader nearly back to full function.
>
>
> Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
> Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/159abcc9
> Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/159abcc9
> Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/159abcc9
>
> Branch: refs/heads/develop
> Commit: 159abcc9cc728108863be1bc07d3175711a4fd00
> Parents: a005b67
> Author: Peter Ent 
> Authored: Sat Apr 15 08:32:58 2017 -0400
> Committer: Peter Ent 
> Committed: Sat Apr 15 08:32:58 2017 -0400
>
> --
>  examples/flexjs/MobileTrader/build.xml  | 17 -
>  .../src/main/flex/MobileTrader.mxml |  3 +
>  .../src/main/flex/MyInitialView.mxml|  8 ++-
>  .../flex/controller/DataModelChangeNotifier.as  | 71 
>  .../src/main/flex/views/AlertsView.mxml |  2 +-
>  .../src/main/flex/views/WatchListView.mxml  |  2 +-
>  6 files changed, 99 insertions(+), 4 deletions(-)
> --
>
>
>
> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/159abcc9/examples/flexjs/MobileTrader/build.xml
> --
> diff --git a/examples/flexjs/MobileTrader/build.xml
> b/examples/flexjs/MobileTrader/build.xml
> index cb69a25..81fd570 100644
> --- a/examples/flexjs/MobileTrader/build.xml
> +++ b/examples/flexjs/MobileTrader/build.xml
> @@ -48,7 +48,22 @@
>  
>   value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
>
> - depends="clean,build_example.compile,build_example.compilejs"
> description="Clean build of ${example}">
> + depends="clean,build_example.compile,build_example.compilejs,copyassets"
> description="Clean build of ${example}">
> +
> +
> +
> +   
> +   
> +
> +
> +
> +
> +
> +
> +
> +
> +
> +
>  
>
>  
>
>
> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/159abcc9/examples/flexjs/MobileTrader/src/main/flex/MobileTrader.mxml
> --
> diff --git a/examples/flexjs/MobileTrader/src/main/flex/MobileTrader.mxml
> b/examples/flexjs/MobileTrader/src/main/flex/MobileTrader.mxml
> index c76531c..47acaeb 100755
> --- a/examples/flexjs/MobileTrader/src/main/flex/MobileTrader.mxml
> +++ b/examples/flexjs/MobileTrader/src/main/flex/MobileTrader.mxml
> @@ -24,6 +24,9 @@
>xmlns:js="library://
> ns.apache.org/flexjs/basic"
>xmlns:controller="controller.*"
>>
> +   
> +   
> +   
>
> 
> 
>
>
> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/159abcc9/examples/flexjs/MobileTrader/src/main/flex/MyInitialView.mxml
> --
> diff --git a/examples/flexjs/MobileTrader/src/main/flex/MyInitialView.mxml
> b/examples/flexjs/MobileTrader/src/main/flex/MyInitialView.mxml
> index 70aea67..2357600 100755
> --- a/examples/flexjs/MobileTrader/src/main/flex/MyInitialView.mxml
> +++ b/examples/flexjs/MobileTrader/src/main/flex/MyInitialView.mxml
> @@ -38,6 +38,11 @@ limitations under the License.
> background-color: #FF;
> }
>
> +   .StringItemRenderer {
> +   padding-left: 4px;
> +   padding-top: 2px;
> +   }
> +
> .NavigationBar {
> background-image: url("assets/background.png");
> height: 55px;
> @@ -225,6 +230,7 @@ limitations under the License.
>
> private function onInitComplete():void
> {
> +
> }
>
> private function onAssetsNext():void
> @@ -260,7 +266,7 @@ limitations under the License.
> 
> 
>
> -x="0" y="0" viewChanged="tabbedViewChanged(event)">
> +height="100%" x="0" y="0" viewChanged="tabbedViewChanged(event)">
> 
>  height="45" className="BackButton" visible="false" click="goBack(event)">
> 
>
>
> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/159abcc9/examples/flexjs/MobileTrader/src/main/flex/controller/DataModelChangeNotifier.as
> 

Re: [FlexJS] Examples

2017-04-15 Thread Christofer Dutz
We should ask Apache Infra … they have several streams of publically available 
data. Not financial data, but stuff we could display.

Chris

Am 15.04.17, 14:36 schrieb "Peter Ent" :

Hi,

A couple of examples no longer work: DataBinding et al and MobileTrader et 
al. These examples depend on an API URL from Yahoo Financial which seems to no 
longer be working.

Does anyone know of a free, Apache license compatible, API to query 
financial data? This data does not have to be current, just something we can 
use for examples of HTTPService.

Barring that, if anyone knows another source of data (Apache license 
compatible) that would be interesting in an example, please share and perhaps 
we can make an example around it.

Thanks,
Peter Ent
Adobe Systems/Apache Flex Project.




[FlexJS] Examples

2017-04-15 Thread Peter Ent
Hi,

A couple of examples no longer work: DataBinding et al and MobileTrader et al. 
These examples depend on an API URL from Yahoo Financial which seems to no 
longer be working.

Does anyone know of a free, Apache license compatible, API to query financial 
data? This data does not have to be current, just something we can use for 
examples of HTTPService.

Barring that, if anyone knows another source of data (Apache license 
compatible) that would be interesting in an example, please share and perhaps 
we can make an example around it.

Thanks,
Peter Ent
Adobe Systems/Apache Flex Project.