Re: Style on custom component isn't being inherited by labels

2019-04-18 Thread Alex Harui
That was hard to read.  Maybe use pastebin and post a link.  I'm going to guess 
at an answer assuming I've read the code correctly.

I think in Flex, the type-selector will override inheriting behavior.  If you 
don't specify font-family in s|Label, then does it pick it up from the 
BottomControlBar?

I think you can set the styleName property of the Label to the instance of 
BottomControlBar and then the Label will pick up the styles from the bottom 
control bar.

-Alex

On 4/18/19, 11:16 AM, "kamcknig"  wrote:

I'm not very good with styles in flex but I'm attempting to add a style to a
component and have the labels as children inherit the style.
In my external style sheet I have the following.
@namespace s "library://ns.adobe.com/flex/spark";@namespace controlbars
"com.accesso.views.controlbars.*";controlbars|BottomControlBar{color:
#424242;font-family: openSansRegular;fontSize: 10;}s|Label{
fontFamily: openSansRegular;fontSize: 14;   textAlign: "left";  
lineHeight:
"125%"; color: #212121;}
BottomControlBar inherits from Group and has a style defined in its Metadata
tag. Its content contains multiple labels (which are themselves children of
other component such as other Groups). Below is a simplified example of the
structure. The custom component itself has a custom skin class made up of
two Labels. In this example both the Group->HGroup->Label and the
Group->HGroup->custom:Component Labels do not have the styling that I've
declared in my CSS. They do however, have the styling that was applied as
the base Label style via the s|Label selector
s:Group 
xmlns:fx="https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009data=02%7C01%7Caharui%40adobe.com%7C76f90750eb4f4e41fce408d6c42a01c7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636912082033905502sdata=Kl3RZKoip%2FKM3U1vCC%2BZg4A3bw678htsy4BLtVDEbr0%3Dreserved=0;

xmlns:s="library://ns.adobe.com/flex/spark"fx:Metadata  
 
[Style(name="fontFamily", type="String", inherit="yes")]   
/fx:Metadatas:Groups:HGroup   
s:Label /custom:Component /   
/s:HGroup/s:Group/s:Group
I have added an override in BottomControlBar and the getStyle method returns
the correct 'openSansRegular' fontFamily and 10 for fontSize so the style is
getting applied to BottomControlBar, it's just not being inherited by it's
children from what I can tell
override public function stylesInitialized():void{   
super.stylesInitialized();trace("BottomControlBar", "stylesInitialized",
getStyle('fontFamily'));trace("BottomControlBar", "stylesInitialized",
getStyle('fontSize'));}
I'm unsure how to debug this, could anyone help point me in the right
direction?Kyle



--
Sent from: 
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C76f90750eb4f4e41fce408d6c42a01c7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636912082033905502sdata=rlZ%2Fc%2FDG%2FM7jvtDr7ncEXDdi7l0use%2F1wrTm8kg4ZMI%3Dreserved=0




Re: Error deleting batik lib contents during build

2019-04-17 Thread Alex Harui
What version of Ant are you using?

On 4/17/19, 7:39 AM, "kamcknig"  wrote:

For additional info as well I am building from the 4.15.0 tag

Kyle



--
Sent from: 
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cebc27e325a1a4ba515eb08d6c342706c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636911087452841854sdata=zv6WFiOA063SbvVj9CG%2BQBykXPh2BAmP0ks4p2MPN7Y%3Dreserved=0




Re: Flex SDK installer doesn't seem to install

2019-04-16 Thread Alex Harui
What steps did you go through to get as far as you did?  Did you try to install 
the installer on Windows or Mac and from which link?

Thanks,
-Alex

On 4/16/19, 8:04 AM, "kamcknig"  wrote:

I'm attempting to install the SDK installer version 3.3.2. A dialog opens
with progress saying it installs. It makes it all the way but then gives no
error or success and the SDK installer is nowhere on my computer that I can
find.



 

Kyle



--
Sent from: 
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cca03a6a7094b40c8ed9808d6c27ccd78%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636910238614809729sdata=ljM%2FDOlm6ZWTnXehCPDeu68unbZbmmBMt1U%2B3vU6Kw4%3Dreserved=0




Re: How does mxmlc.jar get created?

2019-04-16 Thread Alex Harui
The repo is just source code, no jars or swcs.  The readme should give you 
instructions on how to build.

HTH,
-Alex

On 4/16/19, 8:28 AM, "kamcknig"  wrote:

I have clone the SDK repo but the mxmlc.jar is not included it appears. How
does that get built? I don't see a reference to it in the build files of the
SDK either.

Thanks!
Kyle



--
Sent from: 
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C28eb666b4e064b88788b08d6c2801b6e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636910252804845854sdata=Rn8v8x6P%2BHgCM4AShhMfawsJH44ITv%2FWVlsoY4bLU6w%3Dreserved=0




Re: Issue on installing Air 32

2019-04-09 Thread Alex Harui
Try again.  The downloads got updated by Adobe and we needed to update the 
checksums we use.

On 4/9/19, 5:55 PM, "fred"  wrote:

Hi,
I have issue on downloading sdk 4.16.1 / Air 32.
May the issue relie on the double slash in path (after 32.0) :  ?

https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fairdownload.adobe.com%2Fair%2Fwin%2Fdownload%2F32.0%2F%2FAdobeAIRSDK.zipdata=02%7C01%7Caharui%40adobe.com%7C3fe014dc95774ba9aacd08d6bd4f345a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636904545216597927sdata=9RO7cmCF%2FuIBKUku9VNFwT45%2BGPJmhIE0fs8EHoIqnM%3Dreserved=0

Here is the log :

Installer path:
C:\Users\fgi\AppData\Roaming\org.apache.flex.installapacheflex\Local
Store\Win64
Installer version 3.3.2 (windows)
Available Memory: 49799168 (64-bit)
Using Locale: fr_FR
L'URL de téléchargement du SDK à été récupérée à partir du CGI.
SDK version Apache Flex SDK 4.16.1
AIR version 32.0
Flash Player version 32.0
Creation du dossier racine d'Apache Flex
Création du répertoire temporaire
Téléchargement d'Apache Flex SDK à partir de:

https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmirrors.standaloneinstaller.com%2Fapache%2Fflex%2F4.16.1%2Fbinaries%2Fapache-flex-sdk-4.16.1-bin.zipdata=02%7C01%7Caharui%40adobe.com%7C3fe014dc95774ba9aacd08d6bd4f345a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636904545216597927sdata=ZL9YzavRCY85qqsovDShim1ePkT9pkwOYox79gYZ6t4%3Dreserved=0
Vérification de la signature Apache Flex SDK MD5
La Signature MD5 des fichiers téléchargés pour le SDK Apache Flex correspond
à la référence. Le fichier est valide.
Décompression: C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64
Bit)\sdks\4.16.1\temp\apache-flex-sdk-4.16.1-bin.zip
Décompression terminée:C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64
Bit)\sdks\4.16.1\temp\apache-flex-sdk-4.16.1-bin.zip
Téléchargement d'Adobe AIR Runtime Kit pour Windows à partir de:

https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fairdownload.adobe.com%2Fair%2Fwin%2Fdownload%2F32.0%2F%2FAdobeAIRSDK.zipdata=02%7C01%7Caharui%40adobe.com%7C3fe014dc95774ba9aacd08d6bd4f345a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636904545216597927sdata=9RO7cmCF%2FuIBKUku9VNFwT45%2BGPJmhIE0fs8EHoIqnM%3Dreserved=0
Validating download: C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64
Bit)\sdks\4.16.1/in/AdobeAIRSDK.zip
AIR SDK download failed
Installation interrompue:

https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apache.org%2Ftrack-installer.html%3Ffailure%3Dtrue%26label%3DApachedata=02%7C01%7Caharui%40adobe.com%7C3fe014dc95774ba9aacd08d6bd4f345a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636904545216597927sdata=fK20xW%2BJCnGUR00FxbBD5Bdw3LALf6r20TYNMbxyvNk%3Dreserved=0
 Flex
SDK

4.16.1=4.16.1=windows=3.3.2==AIR%20SDK%20download%20failed

regards



--
Sent from: 
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C3fe014dc95774ba9aacd08d6bd4f345a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636904545216597927sdata=06ImHPbONgzKJC1AYXpWKZ9eJXyHU3wN5MZ%2B2Jt6Cmo%3Dreserved=0




Re: Porting Flex/AIR to the web

2019-04-04 Thread Alex Harui
Most (probably all) browsers have caching, but you may not be able to rely on 
your app being cached.

A web app can't do everything a desktop or mobile app can do (and vice-versa), 
so I recommend that you stop to consider what features you actually can deliver 
over the web, then consider how to deliver it.  If your users are only 
temporarily away from their devices, they may not need access to every feature. 
 If they are using a borrowed browser, how will they remember what URL to 
navigate to?  If they are just going to their company's main site to login, the 
main site can redirect them to smaller sub-sections of the app.

Royale (and Flex) support the concept of Modules where portions of the app can 
be downloaded on demand.  A FormManager web app wouldn't have every form in the 
initial download, it would download the form the user chooses.

HTH,
-Alex

On 4/4/19, 8:53 AM, "bilbosax"  wrote:

Thanks for the detailed information Alex. I have never written a web app in
any language, so have just a couple of concerns. One is bandwidth and
expense. My AIR app is big enough that if the app needs to be downloaded
every single time a person wants to toy around with it, it would get quite
expensive for me. Do web apps get cached on a users device so that it
doesn't have to be downloaded with every use? If so, how does it know when
you have made a change to the app that requires it to be downloaded again?




--
Sent from: 
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C6d792dea805e42d6ed5e08d6b915bb4f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636899900322130078sdata=sDzsoxGbaCYLJFEvVZgHGvPXeR5Gpf%2BlLbzeOliR2lk%3Dreserved=0




Re: Porting Flex/AIR to the web

2019-04-03 Thread Alex Harui
Royale was FlexJS.  Royale is aimed at business apps.  Games have not been a 
focus, but if folks want to make Royale support games they are welcome to do so.

I would not bet any money that anyone will produce a 100% compatible version of 
Flex without Flash.  So, I've been recommending that you get used to the idea 
that you will have to do at least some work to get off of Flex-on-Flash.  We 
think Royale is the least work.  Especially compared to a full port of your app 
to a different JS framework.

There are at least 3 distinct workflows in Royale that dictate the amount and 
kind of work you will need to do.  One company (where Harbs and Yishay work) 
rewrote their UI on top of the lightweight component set in order to save 
computation cycles for non-UI stuff.  They had to write code to get the screen 
to look like they wanted, but I believe there were able to reuse the vast 
majority of their business logic.  They went into production over a year ago, 
IIRC.

Carlos recently went into production with a Royale app that uses the Jewel 
component set he developed.  Jewel is not lightweight, but looks great 
out-of-the-box.  So, he (and some others) also rewrote their UI, but also took 
that opportunity to modernize the UI to use newer interaction widgets, which 
might be the right thing for you to do if you think your UI is stale.  But I 
believe they also reused the vast majority of their business logic.

The 3rd workflow is to use the emulation component set.  These components are 
also not lightweight.  The goal of these components is to mimic as many Flex 
APIs as needed as closely as possible.  Slowly but surely, we are migrating 
Tour De Flex to Royale.  Here's a link to the latest nightly build.  
http://apacheroyaleci.westus2.cloudapp.azure.com:8080/job/TourDeFlexMigration/lastSuccessfulBuild/artifact/examples/mxroyale/tourdeflexmodules/bin/js-debug/index.html
  So far, the migration of Tour De Flex required very little changes to the 
application source code.  At least two companies are in progress with their 
migration using this set.

All parts of Royale are still works-in-progress.  There will still be bugs and 
missing features.  We want folks to try Royale, tell us what isn't working or 
what is needed, and even better, help write the code to fix the bug or produce 
the feature.  If we all get involved now and work together, Royale will mature 
faster than if you wait on the sidelines.  Your best bet is to help each other. 
 If you find and fix a bug in the emulation AdvancedDataGrid or RemoteObject, 
someone else probably saves some time and hopefully will fix a bug in some 
other component and save you time.  There is no company driving the development 
of Royale so waiting mainly shortens the time you will have to migrate.

If you think you don't have the skill set to help, you're probably wrong about 
that.  Some of the work is just setting some padding or margin styles.  But you 
also can try to contract someone to do the work.  I believe there are at least 
a couple of committers who have cycles to help.

HTH,
-Alex

On 4/3/19, 6:29 PM, "Paul Stearns"  wrote:

I am also searching for alternatives for 3 complex apps, and 1 minor app 
using similar code bases. I need data entry widgets grids, etc. from Flex 3.x 
(pre spark). I use FlouruneFX to talk to the middle tier.


From: bilbosax 
Sent: 4/3/19 8:23 PM
To: users@flex.apache.org
Subject: Re: Porting Flex/AIR to the web
Is Royale the same as FlexJS???

How far along are these web conversions of AS3 and MXML? Mine are business
apps, not games, so I don't need advanced 3D technologies or do any tweening
or any heavy graphics work. But my app does need things like Lists, Grids,
ArrayCollections, Images, fast AMF communication with databases, etc. Do
these technologies cover most of these bases?

--
Sent from: 
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C477e8969db944145e6b908d6b89cf377%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636899381571803640sdata=l1zS3%2B0DrWVgvQm4E7R2Bqw9sX74y01u4Jx%2BTbxtpyo%3Dreserved=0






Re: Cross platform desktop AIR captive runtime best practices

2019-03-20 Thread Alex Harui
The Apache Flex Installer is an AIR app for Mac and Windows.  It uses Apache 
Ant to build on both of those OS.

HTH,
-Alex

On 3/20/19, 4:30 PM, "Jeff Gomes"  wrote:

Since Flash Player is going away, I am porting a Flex project to Mac and 
Windows desktop captive runtime applications.  My Flash Builder 4.7 
installation is on Mac.  I understand that the Windows captive runtime 
bundle has to be built on Windows.  I have Windows 7 running in 
Parallels Desktop on my MacBook Pro.

My online research has not turned up anything about having ADT build 
these from a .air or .airi file, so I assume it has to be done from the 
original project files.  If this is correct, what is the best way to be 
able to build both versions?  Do I need to have duplicate Flash Builder 
4.7 projects on both platforms?  That seems like a real nuisance!

~ Jeff





Re: AIR 32.0.0.109 BETA out

2019-03-15 Thread Alex Harui
There isn't too much documentation.  We have an app that checks the sigs:
https://cwiki.apache.org/confluence/display/FLEX/MD5Checker+Instruction+Manual

We used to run an hourly job, but recent AIR SDKs became so big that the job 
would run out of memory because the server it runs on has limited memory, so we 
don't run the job anymore.  So these days, I wait until someone complains and 
then run the job locally.  Having more folks willing to run the job would be 
great.

As the wiki article mentions, MD5Checker updates a file on the Apache Flex 
website.  The url is 
http://flex.apache.org/installer/sdk-installer-config-4.0.xml
The source is in Subversion at:  
https://svn.apache.org/repos/asf/flex/site/trunk/content/installer/sdk-installer-config-4.0.xml

MD5Checker downloads the file and updates it on your computer.  If you submit 
updates as a patch or entire file, hopefully a committer will commit it for 
you, and if you do this often, we'll probably make you a committer and grant 
you rights to commit it yourself.

If you look in the history of the file, you will see where it would include 
beta versions.  I don't remember the format and don't want to take the time to 
go find a revision and document how it worked, but maybe a volunteer can do 
that.  I would trust commits from me that include beta versions.  I think 
others would try on occasion and not quite get it right.

Thanks,
-Alex


On 3/15/19, 11:39 AM, "Lydecker"  wrote:

Is there any guidance on how to update the installer / signatures ?
Would be happy to help out in the future if I knew where to look...



--
Sent from: 
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C66f3113c48044fa0695c08d6a97587da%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636882719587485793sdata=MxfjHgFtJIAmI7x59x6rpIT5patlLPcv3Xq5PkEJVXM%3Dreserved=0




Re: AIR 32.0.0.109 BETA out

2019-03-15 Thread Alex Harui
FWIW, the Installer can also install beta versions.  Volunteers are welcome to 
dig through the history of sdk-installer-config-4.0.xml and see how it was done.

-Alex

On 3/15/19, 7:42 AM, "Piotr Zarzycki"  wrote:

Hi,

We are assuming that we have to wait for updating urls which we are using
for download SDK in installer.

Piotr

On Fri, Mar 15, 2019, 1:51 PM Lydecker  wrote:

> AIR 32.0.0.109 has just been released. This is a beta. Latest stable is
> still
> build 89
>
>
>
> --
> Sent from: 
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C19c2889d81e6402915de08d6a9546935%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636882577333592262sdata=9VzzdeXuoOAWmwl72RCcNrHKVCfGv9cWptx%2BuVbbsAk%3Dreserved=0
>




Re: Plans to Update Flex Installer with 32.0.0.156?

2019-03-14 Thread Alex Harui
Is it not working for you?  I saw commits from Piotr that implied that he 
updated the installer.  If it isn't try clearing your browser caches.

-Alex

On 3/14/19, 8:40 AM, "Erik J. Thomas"  wrote:

So, AIR 32 is released now (no longer beta).


https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelpx.adobe.com%2Fin%2Fflash-player%2Frelease-note%2Ffp_32_air_32_release_notes.htmldata=02%7C01%7Caharui%40adobe.com%7Cee248181170944abbac208d6a8936b43%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636881748472763218sdata=5WgcVx2PX6L2BTFSPtFaQewv2UtXBHotEI6cU9Rrb6E%3Dreserved=0
 


Is there a plan to update the Flex installer with build 156, per chance?

Thanks!





Re: SDK Version Issue for iOS

2019-03-12 Thread Alex Harui
Does build 103 have both Flex (no compiler) and regular versions (with 
compiler).  You might have better luck with the one without the packaged 
compiler.

In theory, there is also a way to override where the installer pulls the 
builds.  You can create a local.properties file in the new folder the installer 
is given and add properties that override what the installer is using.

HTH,
-Alex

On 3/12/19, 9:43 AM, "Erik Thomas"  wrote:

Sorry to ask an old question again, but I copied the 103 build over my 
current FlexSDK directory created with the Flex SDK installer last week and it 
has hosed my builds:

Error:[EventCommons]: java.lang.NoClassDefFoundError: 
flex2/tools/VersionInfo
at 
com.intellij.flex.compiler.FlexCompiler.(FlexCompiler.java:19)
Caused by: java.lang.ClassNotFoundException: flex2.tools.VersionInfo
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more

Is there some second step needed when overlaying a new AIR SDK over 
existing Flex/AIR SDK directory?

Thanks.

On Mar 12, 2019, at 1:43 AM, Piotr Zarzycki  
wrote:

Never mind. I miss last email and see that is beta still.

wt., 12 mar 2019 o 09:41 Piotr Zarzycki 
napisał(a):

> Hi Guys,
> 
> In other words this build 103 wasn't released yet ?
> 
> Thanks,
> Piotr
> 
> wt., 12 mar 2019 o 00:58 bilbosax  napisał(a):
> 
>> This is the post on Adobe where I asked the same question:
>> 
>> 
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fforums.adobe.com%2Fthread%2F2597960data=02%7C01%7Caharui%40adobe.com%7C3b8533f6f9d94b35e5a508d6a709dbe4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636880058113346717sdata=qP0oTl0PHXLI7Nk7pTuaJeX1HwKmi86rsQxSzNCD56w%3Dreserved=0
>> 
>> I was directed to use the AIR 32 Beta that had been updated since AIR 32
>> was
>> added to the Apache installer
>> 
>> 
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flabs.adobe.com%2Fdownloads%2Fair.htmldata=02%7C01%7Caharui%40adobe.com%7C3b8533f6f9d94b35e5a508d6a709dbe4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636880058113346717sdata=0NAF7c1hiMEsWWh3KpJnQSD0O8cCm52DhnYjI%2Fnvf3k%3Dreserved=0
>> 
>> 
>> It worked for me like a charm.  No issues so far.
>> 
>> 
>> 
>> --
>> Sent from: 
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C3b8533f6f9d94b35e5a508d6a709dbe4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636880058113346717sdata=qA0Jx%2FkZaHTkT2ZNeaDjYhECJeft9UzpCm%2FOjXe98dY%3Dreserved=0
>> 
> 
> 
> --
> 
> Piotr Zarzycki
> 
> Patreon: 
*https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzyckidata=02%7C01%7Caharui%40adobe.com%7C3b8533f6f9d94b35e5a508d6a709dbe4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636880058113346717sdata=uNX4TtAV%2B0BCkFDX0lKFUtr5SgpcOz5mih9T5z%2FfubQ%3Dreserved=0
> 
*
> 


-- 

Piotr Zarzycki

Patreon: 
*https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzyckidata=02%7C01%7Caharui%40adobe.com%7C3b8533f6f9d94b35e5a508d6a709dbe4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636880058113346717sdata=uNX4TtAV%2B0BCkFDX0lKFUtr5SgpcOz5mih9T5z%2FfubQ%3Dreserved=0

*





Re: SDK Version Issue for iOS

2019-03-08 Thread Alex Harui
Erik,

Have you contacted the Adobe AIR team?

-Alex

On 3/8/19, 8:28 AM, "Erik J. Thomas"  wrote:

Has nobody else on this forum encountered this issue? Do none of you create 
iOS mobile apps with AIR? I'm still waiting on an answer from our ANE provider 
but we're receiving the 12.1 warning on our app uploads and figure it must be 
our ANEs that may not be up-to-date.

Just looking for a clue. Thanks.

Erik

On Mar 6, 2019, at 10:54 AM, Erik J. Thomas  wrote:

Well, the release notes for AIR 32 claim it uses iOS 12.1 so this must be 
related to some of my ANEs.

Can anyone verify this error goes away with AIR 32 (if you have no ANEs or 
have recompiled your ANEs with iOS SDK 12.1?

Thanks.

Erik

On Mar 5, 2019, at 4:15 PM, Erik J. Thomas  wrote:

Anyone else run into this error from Apple when uploading an app? 

"SDK Version Issue - This app was built with the iOS 12.0 SDK. Starting 
March 2019, all iOS apps submitted to the App Store must be built with the iOS 
12.1 SDK or later, included in Xcode 10.1 or later."

I built this app with the latest AIR SDK 32. 








Re: Flash Builder 4.7 Profile on Windows 10

2019-03-01 Thread Alex Harui
All I have is TraceOutputFileEnable=1

Flash Builder should inject the profiler into mm.cfg and remove it when the 
main swf stops.

If you haven't tried an older browser, I would recommend doing so.  My sources 
keep saying that the browsers are getting more and more restrictive about 
running Flash and maybe the profiler injection trick doesn't work in some 
browsers these days.

HTH,
-Alex

On 3/1/19, 1:17 AM, "DarrenEvans"  wrote:

That's promising, what do you have in your mm.cfg file?

    
Alex Harui-2 wrote
> Today I installed FB 4.7 on my personal Windows 10 computer.  I have the
> debugger version of FP32 in an older FIreFox (v47).  The profiler worked
> for me.
> 
> HTH,
> -Alex





--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C322cc24b2e7e486eb9dd08d69e26c7a3%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636870286733606316sdata=UsyCKyet9sN7214jn0%2BAZloLVPOeJzzK2XS8mmqc%2BBA%3Dreserved=0




Re: Flash Builder 4.7 Profile on Windows 10

2019-02-28 Thread Alex Harui
Today I installed FB 4.7 on my personal Windows 10 computer.  I have the 
debugger version of FP32 in an older FIreFox (v47).  The profiler worked for me.

HTH,
-Alex

On 2/28/19, 1:32 AM, "DarrenEvans"  wrote:

We have a very large enterprise application with a small/medium memory leak.
The last time we really profiled the app was when we, as developers, still
all used Windows 7 and it all world swimmingly.

At that time we used a combination of the Flash Builder Profiler and Adobe
Scout. Both gave useful information regarding the leak, but the ultimate
find, last time was through the Flash Builder Profiler.

Fast forward to today. We started using Scout and it's only getting us so
far, so we'd like to use Flash Builder 4.7 Profiler. After much faffing
around I managed to get it compiling again, I can run and debug the
application (we hack the FlashPlayer debug version in to IE which works
perfectly). 

However, when I try to run the Profiler it just fails to connect and times
out. 

Has anyone had any luck using the Profiler in Windows 10?



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C3ebae5c97a30491a8ef608d69d5f9739%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636869431212051651sdata=NRdXtXtnbNPqn6kJ1mL1eKOis4NnvQMAIuDiokL5EDM%3Dreserved=0




Re: Multilanguage support doing the right way?

2019-02-25 Thread Alex Harui
Have you checked the documentation and examples on ResourceManager?

HTH,
-Alex

On 2/25/19, 4:39 AM, "agm65"  wrote:

Hi all,

i want to make my app in 4 languages.
I need to know how to setup those languages correctly.
Also how to localize the os language to set the right language automaticly.


Thx for help!
 



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cc279edbf10ee4f581bc408d69b1e3dfb%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636866951547594550sdata=qMoOv5xzNrE%2FN1M%2FORKwcPHub02HepDL6Bfl%2FRAbkFg%3Dreserved=0




Re: Flash SDK download failed Feb 2019

2019-02-14 Thread Alex Harui
I don't know the dates.  I could ask, but even then, I'm not sure I can 
disclose future release dates.

I don't watch for these releases, so when you see one, let us know.  Hopefully 
others will someday learn how to run the utility that creates the checksums so 
they can update the checksum database.  Otherwise you have to wait for me to 
see the email and do the update.  You are welcome to get the sources and run 
the utility yourself and provide a patch or updated database file so other 
committers can respond more quickly.  If you are interested, ask on the dev@ 
list.

Thanks,
-Alex

On 2/14/19, 1:33 PM, "breizhman"  wrote:

Alex Thank you it worked!!!

Now that being said do you have a any idea when we will be able to have
access to the next stable version of the air SDK that will target the IOS
SDK 12.1


https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fpub%2Flabs%2Fflashruntimes%2Fshared%2Fair32_flashplayer32_releasenotes.pdfdata=02%7C01%7Caharui%40adobe.com%7Cb487d6140d6d4a59c92c08d692c41bc2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636857768344556488sdata=KRhPlCf4WrB5k5oAacJ5FjeZwk0Iu7tMzgnlBBtgEzE%3Dreserved=0

It fully depends on abode i would guess but as soon they release that next
sdk stable version (not beta) do we have access right away via the apache
flex down loader?


Thanks again



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cb487d6140d6d4a59c92c08d692c41bc2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636857768344556488sdata=zgsAqrlZfCmY%2BcNKHXdQ8jegs0RB8S7cwGXAHtw5Vys%3Dreserved=0




Re: Flash SDK download failed Feb 2019

2019-02-14 Thread Alex Harui
Yes, should be on the Flex wiki about MD5Checker.

On 2/14/19, 12:25 PM, "Olaf Krueger"  wrote:

Hi Alex,

> ...so we needed to generate new checkum

Is it documented somewhere how to achieve this?

Thanks,
Olaf




--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cc88d2ee861ba4502462508d692ba8505%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636857727128830816sdata=rJLUZwvvssx3JwmZdpltJgiXcluCSSO6pQJov3YXpZo%3Dreserved=0




Re: Flash SDK download failed Feb 2019

2019-02-14 Thread Alex Harui
Try again.  The download was updated by Adobe so we needed to generate new 
checkums.

On 2/14/19, 11:13 AM, "breizhman"  wrote:

Hi all,

We are maintaining an apache flex / air app for multiple years now. our
target are desktop, android , and ios devices.

We've got a warning from apple last few weeks to update our sdk that needed
to be updated.

We updated to the lastest sdk but we had still the issue but we know now
adobe came with a beta version of air that contains the fix.

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fforums.adobe.com%2Fmessage%2F10898537%2310898537data=02%7C01%7Caharui%40adobe.com%7C1e0ae851136f41ec94ed08d692b08cd0%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636857684313739089sdata=ksTfS11jcKucM9xPXV5SXgXARjBINz2F19LwMO%2Fs2x4%3Dreserved=0


However since couple of days the sdk downloader doesn't work anymore and
crash 


 

I know for sure the downloader was working perfectly fine last week and we
didn't changed anything

And now this issue.

Can someone help me on thanks?

Thanks





--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C1e0ae851136f41ec94ed08d692b08cd0%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636857684313739089sdata=YKTDTNEfIJKEuMebTjvxZhx49oH9Y86zW8e1c%2Bx6upU%3Dreserved=0




Re: Profiling

2019-02-11 Thread Alex Harui
I pasted it, but too far down so you may have missed it:

Try:

var containerChild:Container = tn.getChildAt(i) as Container;
containerChild.createComponentsFromDescriptors();

HTH,
-Alex

On 2/11/19, 7:38 PM, "Paul Stearns"  wrote:

Alex:

Is there an analogous section of code for 3.5 I can go look at? 

If so where can I find it?


From: Alex Harui 
Sent: 2/11/19 10:05 PM
To: "pa...@compuace.com" , "users@flex.apache.org" 

Subject: Re: Profiling
Re-adding users@ Please figure out why the ML keeps getting dropped.

I forgot you are using 3.x

From: Paul Stearns
Reply-To: "pa...@compuace.com"
Date: Monday, February 11, 2019 at 6:56 PM
To: Alex Harui
Subject: Re: Profiling

Alex:

I had tried that, but INavigatorContent is not found. I tried to manually 
add;

import mx.core.INavigatorContent;

That didn't help either. Perhaps it is called something different in v3.6?
Try:

var containerChild:Container = tn.getChildAt(i) as Container;
containerChild.createComponentsFromDescriptors();

________
From: Alex Harui
Sent: 2/11/19 7:39 PM
To: "users@flex.apache.org" , "pa...@compuace.com"
Subject: Re: Profiling
If you have a TabNavigator in a variable/id "tn",

Then you should be able to write:

var containerChild:INavigatorContent = tn.getChildAt(i) as 
INavigatorContent;
containerChild.createDeferredContent();

HTH,
-Alex

On 2/11/19, 4:37 PM, "Paul Stearns" wrote:

Alex:

I am not sure how I can use the link you referenced. I thought perhaps I 
could use "containerChild.createDeferredContent " but I am unable to find any 
components it is applicable to.


From: Alex Harui
Sent: 2/11/19 4:07 PM
To: "pa...@compuace.com" , "users@flex.apache.org"
Subject: Re: Profiling
Re-adding users@

IIRC, the key piece is a loop in ViewStack’s setActualCreationPolicies 
(around line 1058)

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fflex-sdk%2Fblob%2Fmaster%2Fframeworks%2Fprojects%2Fmx%2Fsrc%2Fmx%2Fcontainers%2FViewStack.asdata=02%7C01%7Caharui%40adobe.com%7Ce880fe44cbad4a0807dd08d6909b9b73%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636855395337154782sdata=zlVEFW7Tavv0sBLiOCd4jGkijeyPTsFd88XD9Bg7L6o%3Dreserved=0

It calls each child’s createDeferredContent(). The trick is to figure out 
when to call it on each child. Apparently, calling it on all 9 other tabs at 
once causes so much code to run that it freezes the UI.

Like the magicians I referred to upthread, it is important to know your 
audience. If the user is typing, it is hard to sneak in one second of 
computation. If the user is not typing and moving a mouse, you might be able to 
get away with a one second pause. But if a user makes a query, they might 
expect a pause and if the query is asynchronous, that’s a good time to sneak in 
some computation. And if 90% of the users go to tab 2, that may be the only one 
you need to initialize during the query. And then initialize the other 8 when 
the results come back and the user is pondering the results.

Or maybe they will put up with 9 one-second pauses while they are typing 
and all you have to do is use callLater to “unravel” the loop. Put the iterator 
in a variable, call one createDeferredContent, (and maybe validateNow()) then 
increment the variable and callLater.

HTH,
-Alex

    From: Paul Stearns
Reply-To: "pa...@compuace.com"
Date: Monday, February 11, 2019 at 4:37 AM
To: Alex Harui
Subject: Re: Profiling

Alex:

I would like to take a middle road...

Upon startup there are a number of combo boxes which get populated. Then 
the user enters some query data, a query is performed and the rest get 
populated.

I took the time to rewrite the initialization of the 22 combo boxes using 
bindable Array Collections so that the TabNavigator can load just the 1st page. 
I would like to have each of the hidden tabs populate while waiting for the 
user to enter the query data. I have been unable to find how to tell each 
hidden tab to render individually.

You mention Initializing tabs, code wise, how is that accomplished? I've 
tried a few things with no luck.

I found that I can define the TabNavigator's creationPolicy as "auto", wait 
until the 1st tab is rendered, and switch the TabNavigator's creation policy to 
"all" it will then populate the other 9 tabs. This does show the first tab much 
quicker but it doesn't allow the entry of data until all of the o

Re: Profiling

2019-02-11 Thread Alex Harui
Re-adding users@  Please figure out why the ML keeps getting dropped.

I forgot you are using 3.x



From: Paul Stearns 
Reply-To: "pa...@compuace.com" 
Date: Monday, February 11, 2019 at 6:56 PM
To: Alex Harui 
Subject: Re: Profiling

Alex:

I had tried that, but INavigatorContent is not found. I tried to manually add;

import mx.core.INavigatorContent;

That didn't help either. Perhaps it is called something different in v3.6?
Try:

var containerChild:Container = tn.getChildAt(i) as Container;
containerChild.createComponentsFromDescriptors();


____
From: Alex Harui 
Sent: 2/11/19 7:39 PM
To: "users@flex.apache.org" , "pa...@compuace.com" 

Subject: Re: Profiling
If you have a TabNavigator in a variable/id "tn",

Then you should be able to write:

var containerChild:INavigatorContent = tn.getChildAt(i) as INavigatorContent;
containerChild.createDeferredContent();

HTH,
-Alex

On 2/11/19, 4:37 PM, "Paul Stearns" wrote:

Alex:

I am not sure how I can use the link you referenced. I thought perhaps I could 
use "containerChild.createDeferredContent " but I am unable to find any 
components it is applicable to.


From: Alex Harui
Sent: 2/11/19 4:07 PM
To: "pa...@compuace.com" , "users@flex.apache.org"
Subject: Re: Profiling
Re-adding users@

IIRC, the key piece is a loop in ViewStack’s setActualCreationPolicies (around 
line 1058)
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fflex-sdk%2Fblob%2Fmaster%2Fframeworks%2Fprojects%2Fmx%2Fsrc%2Fmx%2Fcontainers%2FViewStack.as=02%7C01%7Caharui%40adobe.com%7C5a60c62e798c4d337ee808d690823bea%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636855286357686522=I03rmfnRqEdQdCUk1ASZQMldT7TkHJAf2g7%2BWHIKYUA%3D=0<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fflex-sdk%2Fblob%2Fmaster%2Fframeworks%2Fprojects%2Fmx%2Fsrc%2Fmx%2Fcontainers%2FViewStack.as=02%7C01%7Caharui%40adobe.com%7C1665d84192f3470a9c5a08d69095a69a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636855369804198471=qga8OsX0yWf7K5R9dus1AV46eu6XdlxBr4rSvs092XM%3D=0>

It calls each child’s createDeferredContent(). The trick is to figure out when 
to call it on each child. Apparently, calling it on all 9 other tabs at once 
causes so much code to run that it freezes the UI.

Like the magicians I referred to upthread, it is important to know your 
audience. If the user is typing, it is hard to sneak in one second of 
computation. If the user is not typing and moving a mouse, you might be able to 
get away with a one second pause. But if a user makes a query, they might 
expect a pause and if the query is asynchronous, that’s a good time to sneak in 
some computation. And if 90% of the users go to tab 2, that may be the only one 
you need to initialize during the query. And then initialize the other 8 when 
the results come back and the user is pondering the results.

Or maybe they will put up with 9 one-second pauses while they are typing and 
all you have to do is use callLater to “unravel” the loop. Put the iterator in 
a variable, call one createDeferredContent, (and maybe validateNow()) then 
increment the variable and callLater.

HTH,
-Alex

From: Paul Stearns
Reply-To: "pa...@compuace.com"
Date: Monday, February 11, 2019 at 4:37 AM
To: Alex Harui
Subject: Re: Profiling

Alex:

I would like to take a middle road...

Upon startup there are a number of combo boxes which get populated. Then the 
user enters some query data, a query is performed and the rest get populated.

I took the time to rewrite the initialization of the 22 combo boxes using 
bindable Array Collections so that the TabNavigator can load just the 1st page. 
I would like to have each of the hidden tabs populate while waiting for the 
user to enter the query data. I have been unable to find how to tell each 
hidden tab to render individually.

You mention Initializing tabs, code wise, how is that accomplished? I've tried 
a few things with no luck.

I found that I can define the TabNavigator's creationPolicy as "auto", wait 
until the 1st tab is rendered, and switch the TabNavigator's creation policy to 
"all" it will then populate the other 9 tabs. This does show the first tab much 
quicker but it doesn't allow the entry of data until all of the other tabs are 
rendered. I was hoping to be able to do the callLater trick to give a break in 
between each load. Somewhat similar to a .NET Application.doevents().

I will look into the "magical" reference material you mentioned.


From: Alex Harui
Sent: 2/11/19 12:12 AM
To: "users@flex.apache.org" , "pa...@compuace.com"
Subject: Re: Profiling
There are several ways.

The "theoretical" way is to rewrite your code. Populating ComboBoxes on hidden 
tabs is not a recommended pract

Re: Profiling

2019-02-11 Thread Alex Harui
If you have a TabNavigator in a variable/id "tn",

Then you should be able to write:

var containerChild:INavigatorContent = tn.getChildAt(i) as INavigatorContent;
containerChild.createDeferredContent();

HTH,
-Alex

On 2/11/19, 4:37 PM, "Paul Stearns"  wrote:

Alex:

I am not sure how I can use the link you referenced. I thought perhaps I 
could use "containerChild.createDeferredContent " but I am unable to find any 
components it is applicable to.

----
From: Alex Harui 
Sent: 2/11/19 4:07 PM
To: "pa...@compuace.com" , "users@flex.apache.org" 

Subject: Re: Profiling
Re-adding users@

IIRC, the key piece is a loop in ViewStack’s setActualCreationPolicies 
(around line 1058)

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fflex-sdk%2Fblob%2Fmaster%2Fframeworks%2Fprojects%2Fmx%2Fsrc%2Fmx%2Fcontainers%2FViewStack.asdata=02%7C01%7Caharui%40adobe.com%7C5a60c62e798c4d337ee808d690823bea%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636855286357686522sdata=I03rmfnRqEdQdCUk1ASZQMldT7TkHJAf2g7%2BWHIKYUA%3Dreserved=0

It calls each child’s createDeferredContent(). The trick is to figure out 
when to call it on each child. Apparently, calling it on all 9 other tabs at 
once causes so much code to run that it freezes the UI.

Like the magicians I referred to upthread, it is important to know your 
audience. If the user is typing, it is hard to sneak in one second of 
computation. If the user is not typing and moving a mouse, you might be able to 
get away with a one second pause. But if a user makes a query, they might 
expect a pause and if the query is asynchronous, that’s a good time to sneak in 
some computation. And if 90% of the users go to tab 2, that may be the only one 
you need to initialize during the query. And then initialize the other 8 when 
the results come back and the user is pondering the results.

Or maybe they will put up with 9 one-second pauses while they are typing 
and all you have to do is use callLater to “unravel” the loop. Put the iterator 
in a variable, call one createDeferredContent, (and maybe validateNow()) then 
increment the variable and callLater.

HTH,
-Alex

From: Paul Stearns
Reply-To: "pa...@compuace.com"
Date: Monday, February 11, 2019 at 4:37 AM
To: Alex Harui
Subject: Re: Profiling

Alex:

I would like to take a middle road...

Upon startup there are a number of combo boxes which get populated. Then 
the user enters some query data, a query is performed and the rest get 
populated.

I took the time to rewrite the initialization of the 22 combo boxes using 
bindable Array Collections so that the TabNavigator can load just the 1st page. 
I would like to have each of the hidden tabs populate while waiting for the 
user to enter the query data. I have been unable to find how to tell each 
hidden tab to render individually.

You mention Initializing tabs, code wise, how is that accomplished? I've 
tried a few things with no luck.

I found that I can define the TabNavigator's creationPolicy as "auto", wait 
until the 1st tab is rendered, and switch the TabNavigator's creation policy to 
"all" it will then populate the other 9 tabs. This does show the first tab much 
quicker but it doesn't allow the entry of data until all of the other tabs are 
rendered. I was hoping to be able to do the callLater trick to give a break in 
between each load. Somewhat similar to a .NET Application.doevents().

I will look into the "magical" reference material you mentioned.


From: Alex Harui
Sent: 2/11/19 12:12 AM
To: "users@flex.apache.org" , "pa...@compuace.com"
Subject: Re: Profiling
There are several ways.

The "theoretical" way is to rewrite your code. Populating ComboBoxes on 
hidden tabs is not a recommended practice. That is effectively having code in 
the app "pushing data down" into the controls. Instead, in any pattern that has 
MV in it, the recommended practice is that the components pull what they need 
from a model. If you do that rewrite, you may find that each Tab loads 
sufficiently fast when clicked on "on-demand". Maybe a busy cursor spins for a 
few seconds. Web pages often take a few seconds to load. But that may be a 
better experience than waiting 30 seconds for the first screen to show up.

Related, any tab that takes a few seconds to load may have its own "push 
data down" code in it and is initializing controls that may be in a sub-tab or 
has even sucked in a module or two. Profile each slow Tab and see what is going 
on.

The "hacky" way is to use Pseudo-Threads. There are fancy Pse

Re: Profiling

2019-02-11 Thread Alex Harui
Re-adding users@

IIRC, the key piece is a loop in ViewStack’s setActualCreationPolicies (around 
line 1058)
https://github.com/apache/flex-sdk/blob/master/frameworks/projects/mx/src/mx/containers/ViewStack.as

It calls each child’s createDeferredContent().  The trick is to figure out when 
to call it on each child.  Apparently, calling it on all 9 other tabs at once 
causes so much code to run that it freezes the UI.

Like the magicians I referred to upthread, it is important to know your 
audience.  If the user is typing, it is hard to sneak in one second of 
computation.  If the user is not typing and moving a mouse, you might be able 
to get away with a one second pause.  But if a user makes a query, they might 
expect a pause and if the query is asynchronous, that’s a good time to sneak in 
some computation.  And if 90% of the users go to tab 2, that may be the only 
one you need to initialize during the query.  And then initialize the other 8 
when the results come back and the user is pondering the results.

Or maybe they will put up with 9 one-second pauses while they are typing and 
all you have to do is use callLater to “unravel” the loop.  Put the iterator in 
a variable, call one createDeferredContent, (and maybe validateNow()) then 
increment the variable and callLater.

HTH,
-Alex

From: Paul Stearns 
Reply-To: "pa...@compuace.com" 
Date: Monday, February 11, 2019 at 4:37 AM
To: Alex Harui 
Subject: Re: Profiling

Alex:

I would like to take a middle road...

Upon startup there are a number of combo boxes which get populated. Then the 
user enters some query data, a query is performed and the rest get populated.

I took the time to rewrite the initialization of the 22 combo boxes using 
bindable Array Collections so that the TabNavigator can load just the 1st page. 
I would like to have each of the hidden tabs populate while waiting for the 
user to enter the query data. I have been unable to find how to tell each 
hidden tab to render individually.

You mention Initializing tabs, code wise, how is that accomplished? I've tried 
a few things with no luck.

I found that I can define the TabNavigator's creationPolicy as "auto", wait 
until the 1st tab is rendered, and switch the TabNavigator's creation policy to 
"all" it will then populate the other 9 tabs. This does show the first tab much 
quicker but it doesn't allow the entry of data until all of the other tabs are 
rendered. I was hoping to be able to do the callLater trick to give a break in 
between each load. Somewhat similar to a .NET Application.doevents().

I will look into the "magical" reference material you mentioned.


________
From: Alex Harui 
Sent: 2/11/19 12:12 AM
To: "users@flex.apache.org" , "pa...@compuace.com" 

Subject: Re: Profiling
There are several ways.

The "theoretical" way is to rewrite your code. Populating ComboBoxes on hidden 
tabs is not a recommended practice. That is effectively having code in the app 
"pushing data down" into the controls. Instead, in any pattern that has MV in 
it, the recommended practice is that the components pull what they need from a 
model. If you do that rewrite, you may find that each Tab loads sufficiently 
fast when clicked on "on-demand". Maybe a busy cursor spins for a few seconds. 
Web pages often take a few seconds to load. But that may be a better experience 
than waiting 30 seconds for the first screen to show up.

Related, any tab that takes a few seconds to load may have its own "push data 
down" code in it and is initializing controls that may be in a sub-tab or has 
even sucked in a module or two. Profile each slow Tab and see what is going on.

The "hacky" way is to use Pseudo-Threads. There are fancy Pseudo-Thread 
patterns, but the cheapest one is just a chain of CallLater functions. Maybe 
each one initializes a Tab then callLater's the function to initialize the next 
Tab. Still to slow? Then initialize half a Tab and callLater to initialize the 
other half.

Other ideas involve re-designing the UI to use more deferred-instantiation 
components.

FWIW, many years ago I saw a great presentation on UI design by a magician. He 
talked about understanding human behavior to create illusions. There is also a 
classic book called "Computers As Theatre" by Brenda Laurel. In live theatre 
(as opposed to movies), there is the reality of having to find ways to get 
people and props on and off the stage without distracting the audience. These 
ideas can apply to problems like this one. If you know that folks will dwell on 
the first screen for N seconds before they can even decide what to click on, 
then you've got N seconds to initialize stuff in a pseudo-thread. If you have 
Tabs that scroll, you can just initialize the first screenful of UI widgets, 
then you probably have another second or two to initialize stuff off-screen

Re: Profiling

2019-02-10 Thread Alex Harui
There are several ways.

The "theoretical" way is to rewrite your code.  Populating ComboBoxes on hidden 
tabs is not a recommended practice.  That is effectively having code in the app 
"pushing data down" into the controls.  Instead, in any pattern that has MV in 
it, the recommended practice is that the components pull what they need from a 
model.  If you do that rewrite, you may find that each Tab loads sufficiently 
fast when clicked on "on-demand".  Maybe a busy cursor spins for a few seconds. 
 Web pages often take a few seconds to load.  But that may be a better 
experience than waiting 30 seconds for the first screen to show up.

Related, any tab that takes a few seconds to load may have its own "push data 
down" code in it and is initializing controls that may be in a sub-tab or has 
even sucked in a module or two.  Profile each slow Tab and see what is going on.

The "hacky" way is to use Pseudo-Threads.  There are fancy Pseudo-Thread 
patterns, but the cheapest one is just a chain of CallLater functions.  Maybe 
each one initializes a Tab then callLater's the function to initialize the next 
Tab.   Still to slow?  Then initialize half a Tab and callLater to initialize 
the other half.

Other ideas involve re-designing the UI to use more deferred-instantiation 
components.

FWIW, many years ago I saw a great presentation on UI design by a magician.  He 
talked about understanding human behavior to create illusions.  There is also a 
classic book called "Computers As Theatre" by Brenda Laurel.  In live theatre 
(as opposed to movies), there is the reality of having to find ways to get 
people and props on and off the stage without distracting the audience.  These 
ideas can apply to problems like this one.  If you know that folks will dwell 
on the first screen for N seconds before they can even decide what to click on, 
then you've got N seconds to initialize stuff in a pseudo-thread.  If you have 
Tabs that scroll, you can just initialize the first screenful of UI widgets, 
then you probably have another second or two to initialize stuff off-screen.  
Busy cursors, UI effects, progressive reveals are all techniques that can be 
used to create the illusion that the UI is ready to go, when in reality, your 
stage crew is hustling in the dark behind the sofa.

HTH,
-Alex

On 2/10/19, 4:57 AM, "Paul Stearns"  wrote:

OK, I downloaded Scout & ScoutEnabler. I learned enough to be able to run 
it and I found the problem area. 

The swf in question has 10 tabs with more than 300 objects spread among the 
tabs. The TabNavigator has creationPolicy="all" set so that once the swf is 
loaded the "as" code can start populating various comboBoxes and other 
components on the hidden tabs.

My working hypothesis is flash get's "hung" building all those components 
at once.

If this is the case, how can I get rid of creationPolicy="all" and once the 
screen becomes visible, force the creation of all the hidden tabs before I try 
to populate them? While this may take a little longer, it would provide a 
better user interface.


From: "Paul Stearns" 
Sent: 2/10/19 6:55 AM
To: "users@flex.apache.org" 
Subject: Profiling
I have a routine that "disappears" for a few seconds. I would like to turn 
profiling on just before this begins and off when it comes back. Is this 
possible?

Since the app does many things, I want to isolate just this section where 
as far as I can tell it is not executing any code from my application.

I am currently using FlexBuilder 3, but will use whatever is available as 
long as the learning curve isn't too steep and it works with my 3.6 code.






Re: On Disk vs Uncompressed size of modules...

2019-02-08 Thread Alex Harui
Hi Paul,

OK, I guess maybe we didn't ship it in Flex Builder 3.   It is in the 4.x SDK 
in Flash Builder 4.x.  I don't know what the swftools swfdump will output, but 
give it a try.  I would expect its default to be useful.

-Alex

On 2/8/19, 10:06 AM, "Paul Stearns"  wrote:

Alex:

I searched C:\Program Files (x86)\Adobe\Flex Builder 3\sdks and did not 
find any swfdump, I also searched the whole C:\ and did not find it.

Paul R. Stearns
Advanced Consulting Enterprises, Inc.

15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016

Voice: (305)623-0360 x107
Fax: (305)623-4588


From: Alex Harui 
Sent: 2/8/19 12:13 PM
To: "users@flex.apache.org" , "pa...@compuace.com" 

Subject: Re: On Disk vs Uncompressed size of modules...
There is a swfdump in the Flex SDK (bin/swfdump). We just want to see the 
first set of tags in the SWF, which includes uncompressed SWF size to see if it 
correlates. Just running "swfdump " should dump those tags.

-Alex

On 2/8/19, 8:33 AM, "Paul Stearns" wrote:

Alex:

I downloaded swfdump from swfTools.org. What switch(es) would be 
appropriate for the dump?

----
From: Alex Harui
Sent: 2/7/19 11:53 PM
To: "users@flex.apache.org" , "pa...@compuace.com"
Subject: Re: On Disk vs Uncompressed size of modules...
Paul,

IMO, that would be a surprising level of compression. I suppose it is 
possible, especially if there is a lot of repeating text content as assets, 
maybe by linking in every locale known to Flex.

Run swfdump on the SWF. Post a link to the results.

Then run the performance profiler in Flash Builder or Scout. That's really 
the only way to get hard data on what is taking so long.

-Alex

On 2/7/19, 8:09 PM, "Paul Stearns" wrote:

I have some fairly large modules, for example one which has a swf file that 
is 120KB on disk a little over 2,000 lines of mxml & as code combined). When 
run in the IDE it reports "2,674,599 bytes after decompression." While I am not 
particularly concerned about the size per se, it does take between 3 & 5 
seconds to display the module and start the "Init" (CreationComplete) code.

Trace output tells the tale;

Starting addModuleThu Feb 7 22:43:21 GMT-0500 2019
[SWF] I:\MyProject\src\bin\MyModule.swf - 2,674,599 bytes after 
decompression
Starting ModuleLoadDoneThu Feb 7 22:43:21 GMT-0500 2019
Starting Init Thu Feb 7 22:43:26 GMT-0500 2019

From the time the Module is loaded until the Init fires is about 5 seconds. 
ModuleLoadDone is fired when the ModuleEvent.READY is dispatched. "Starting 
Init" is the first line in the function called by "CreationComplete" on the 
module.

What could be causing the delay?
What can I do to improve things?
Is it the expansion of the module?
Setting up all the objects?

Can I display the panel sooner while it is catching up in the background?

This is running on an I7 with a fair amount of memory, and it behaves the 
same in production as the IDE, time wise.

Paul R. Stearns
Advanced Consulting Enterprises, Inc.

15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016

Voice: (305)623-0360 x107
Fax: (305)623-4588






Re: On Disk vs Uncompressed size of modules...

2019-02-08 Thread Alex Harui
There is a swfdump in the Flex SDK (bin/swfdump).  We just want to see the 
first set of tags in the SWF, which includes uncompressed SWF size to see if it 
correlates.  Just running "swfdump " should dump those tags.

-Alex

On 2/8/19, 8:33 AM, "Paul Stearns"  wrote:

Alex:

I downloaded swfdump from swfTools.org. What switch(es) would be 
appropriate for the dump?

----
From: Alex Harui 
Sent: 2/7/19 11:53 PM
To: "users@flex.apache.org" , "pa...@compuace.com" 

Subject: Re: On Disk vs Uncompressed size of modules...
Paul,

IMO, that would be a surprising level of compression. I suppose it is 
possible, especially if there is a lot of repeating text content as assets, 
maybe by linking in every locale known to Flex.

Run swfdump on the SWF. Post a link to the results.

Then run the performance profiler in Flash Builder or Scout. That's really 
the only way to get hard data on what is taking so long.

-Alex

On 2/7/19, 8:09 PM, "Paul Stearns" wrote:

I have some fairly large modules, for example one which has a swf file that 
is 120KB on disk a little over 2,000 lines of mxml & as code combined). When 
run in the IDE it reports "2,674,599 bytes after decompression." While I am not 
particularly concerned about the size per se, it does take between 3 & 5 
seconds to display the module and start the "Init" (CreationComplete) code.

Trace output tells the tale;

Starting addModuleThu Feb 7 22:43:21 GMT-0500 2019
[SWF] I:\MyProject\src\bin\MyModule.swf - 2,674,599 bytes after 
decompression
Starting ModuleLoadDoneThu Feb 7 22:43:21 GMT-0500 2019
Starting Init Thu Feb 7 22:43:26 GMT-0500 2019

From the time the Module is loaded until the Init fires is about 5 seconds. 
ModuleLoadDone is fired when the ModuleEvent.READY is dispatched. "Starting 
Init" is the first line in the function called by "CreationComplete" on the 
module.

What could be causing the delay?
What can I do to improve things?
Is it the expansion of the module?
Setting up all the objects?

Can I display the panel sooner while it is catching up in the background?

This is running on an I7 with a fair amount of memory, and it behaves the 
same in production as the IDE, time wise.

Paul R. Stearns
Advanced Consulting Enterprises, Inc.

15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016

Voice: (305)623-0360 x107
Fax: (305)623-4588






Re: On Disk vs Uncompressed size of modules...

2019-02-07 Thread Alex Harui
Paul,

IMO, that would be a surprising level of compression.  I suppose it is 
possible, especially if there is a lot of repeating text content as assets, 
maybe by linking in every locale known to Flex.

Run swfdump on the SWF.  Post a link to the results.

Then run the performance profiler in Flash Builder or Scout.  That's really the 
only way to get hard data on what is taking so long.

-Alex

On 2/7/19, 8:09 PM, "Paul Stearns"  wrote:

I have some fairly large modules, for example one which has a swf file that 
is 120KB on disk a little over 2,000 lines of mxml & as code combined). When 
run in the IDE it reports "2,674,599 bytes after decompression." While I am not 
particularly concerned about the size per se, it does take between 3 & 5 
seconds to display the module and start the "Init" (CreationComplete) code.

Trace output tells the tale;

Starting addModuleThu Feb 7 22:43:21 GMT-0500 2019
[SWF] I:\MyProject\src\bin\MyModule.swf - 2,674,599 bytes after 
decompression
Starting ModuleLoadDoneThu Feb 7 22:43:21 GMT-0500 2019
Starting Init Thu Feb 7 22:43:26 GMT-0500 2019

From the time the Module is loaded until the Init fires is about 5 seconds. 
ModuleLoadDone is fired when the ModuleEvent.READY is dispatched. "Starting 
Init" is the first line in the function called by "CreationComplete" on the 
module.

What could be causing the delay?
What can I do to improve things?
Is it the expansion of the module?
Setting up all the objects?

Can I display the panel sooner while it is catching up in the background?

This is running on an I7 with a fair amount of memory, and it behaves the 
same in production as the IDE, time wise.

Paul R. Stearns
Advanced Consulting Enterprises, Inc.

15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016

Voice: (305)623-0360 x107
Fax: (305)623-4588






Re: At least one memory leak problem is a custom combo box I use.

2019-02-02 Thread Alex Harui
Paul:

OK, good to know you got past one issue.

FWIW, storing callbacks from the module is what I call "reaching down".  The 
main app has effectively reached down into the module and grabbed hold of 
something.  The pattern closest to callbacks is event dispatching and event 
dispatching has the advantage of supporting weak-reference listeners.  You 
could try storing callbacks in weak-reference dictionaries as well if you are 
trying to find a minimal refactor.

HTH,
-Alex

On 2/2/19, 5:25 PM, "Paul Stearns"  wrote:

Alex:

I should have been more clear. The validatedCombobox no longer appears to 
keep my test module in memory. By replacing access to the dropdown, and relying 
on invalidateDisplayOptions to synchronize everything seems to work.

I also found something else that appears to be causing a problem, that I 
have started to correct.

This is a fairly complex DB application with hundreds of tables, 30-40 of 
which are generally used to populate combo boxes and other list components. 
These tables are fairly static and up to 15-20 could be used in a single entry 
screen. 

In order to reduce network thrashing between the DB and the client 
computers, I wrote a public function that resides in the parent Application 
called loadComboList. When a request is made for this type of data in memory 
array collections are checked first, if they are null it then queries the DB, 
returns the data to the application to both be stored in globally accessible 
array collections, cloned and sent to the requesting module. If the data is in 
an array collection it is just cloned and sent back to the requesting module. 

The modules handle all this by passing a "call back function" to the 
parentApplication function, which is then stored in a "private var". This 
parentApplication private var never gets cleared so it is a reference to a 
public function in the module causing the module to not be GCed. Not the 
smartest code I ever wrote, (hindsight is 20/20) but it does make things run 
faster, until the memory leak wreaks havoc.

I have started to rewrite this as a class which is instantiated in the 
module, but stores/reads its data in/from the parent application. I have tested 
it with a small live module (one query/combobox) and it seems to work. I am 
converting another 18 queries to test a much larger module, I will keep you 
posted, if you are interested.

Paul R. Stearns
Advanced Consulting Enterprises, Inc.

15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016

Voice: (305)623-0360 x107
Fax: (305)623-4588

--------
From: Alex Harui 
Sent: 2/2/19 7:46 PM
To: "pa...@compuace.com" , "users@flex.apache.org" 

Subject: Re: At least one memory leak problem is a custom combo box I use.
Paul:

I assume that means that your custom combobox is still causing a memory 
leak?

IIRC, you have a test setup where you click a button to unload the module. 
Add another button that checks the number of children of 
systemManager.popupChildren.numChildren. That number should go up by one when 
the dropdown is accessed and go down by one after the module cleans up to try 
to unload. If it does go down by one, then the dropdown is probably going away 
and is not the problem. If it is there, then some code may still be accessing 
the dropdown property. Maybe override the dropdown property getter and trace 
who is accessing it.

HTH,
-Alex

From: Paul Stearns
Reply-To: "pa...@compuace.com"
Date: Saturday, February 2, 2019 at 3:22 PM
To: Alex Harui , "users@flex.apache.org"
Subject: Re: At least one memory leak problem is a custom combo box I use.

Alex:

After I wrote my previous email, I changed the code to not access the 
dropdown. I was able to use "invalidateDisplayOptions," and use only the 
combobox items directly.

I am still debugging.

Paul R. Stearns
Advanced Consulting Enterprises, Inc.

15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016

Voice: (305)623-0360 x107
Fax: (305)623-4588


From: Alex Harui
Sent: 2/2/19 6:09 PM
To: "users@flex.apache.org" , "pa...@compuace.com"
Subject: Re: At least one memory leak problem is a custom combo box I use.
It is fine to access the dropDown property as long as it doesn't happen 
after other clean up code runs.

It might be worth debugging to see if the dropDown is the actual problem. 
It could be something else, like some eventhandler that handles an event you 
dispatch from your code keeps a reference to the combobox. So use the debugger 
or profiler or other means to see if the dropdown is still on the display list. 
You can report on th

Re: At least one memory leak problem is a custom combo box I use.

2019-02-02 Thread Alex Harui
Paul:

I assume that means that your custom combobox is still causing a memory leak?

IIRC, you have a test setup where you click a button to unload the module.  Add 
another button that checks the number of children of 
systemManager.popupChildren.numChildren.  That number should go up by one when 
the dropdown is accessed and go down by one after the module cleans up to try 
to unload.  If it does go down by one, then the dropdown is probably going away 
and is not the problem.  If it is there, then some code may still be accessing 
the dropdown property.  Maybe override the dropdown property getter and trace 
who is accessing it.

HTH,
-Alex

From: Paul Stearns 
Reply-To: "pa...@compuace.com" 
Date: Saturday, February 2, 2019 at 3:22 PM
To: Alex Harui , "users@flex.apache.org" 

Subject: Re: At least one memory leak problem is a custom combo box I use.

Alex:

After I wrote my previous email, I changed the code to not access the dropdown. 
I was able to use "invalidateDisplayOptions," and use only the combobox items 
directly.

I am still debugging.


Paul R. Stearns
Advanced Consulting Enterprises, Inc.

15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016

Voice: (305)623-0360 x107
Fax: (305)623-4588

____
From: Alex Harui 
Sent: 2/2/19 6:09 PM
To: "users@flex.apache.org" , "pa...@compuace.com" 

Subject: Re: At least one memory leak problem is a custom combo box I use.
It is fine to access the dropDown property as long as it doesn't happen after 
other clean up code runs.

It might be worth debugging to see if the dropDown is the actual problem. It 
could be something else, like some eventhandler that handles an event you 
dispatch from your code keeps a reference to the combobox. So use the debugger 
or profiler or other means to see if the dropdown is still on the display list. 
You can report on the children in SystemManager.popUpChildren. You can verify 
that the ComboBox's destroyDropdown is being called. And then try to verify 
that dropDown is not accessed after that.

HTH,
-Alex

On 2/2/19, 1:43 PM, "Paul Stearns" wrote:

Alex:

Yes this code does reference the DropDown component. The code is there to 
handle finding items and moving the cursor to the appropriate item.

For example if the data is;

dog
cat
bird

and c-a-t is typed it finds cat and highlights it.

If the data provider changes and the values become;

dog
lizard
cat
bird

the component will still keep cat highlighted.

Given the above as a requirement, how can I clear make the component eligible 
for GC?

Paul R. Stearns
Advanced Consulting Enterprises, Inc.

15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016

Voice: (305)623-0360 x107
Fax: (305)623-4588


From: Alex Harui
Sent: 2/2/19 1:55 AM
To: "users@flex.apache.org" , "pa...@compuace.com"
Subject: Re: At least one memory leak problem is a custom combo box I use.
Hard to say for sure, but one thing to watch out for with ComboBox is running 
any code that accesses the dropdown property. ComboBox by itself should know 
how to destroy and unhook the dropdown, but if you run code that access 
dropDown after ComboBox thinks it cleaned up, then it will get stuck in memory 
again.

HTH,
-Alex

On 2/1/19, 10:19 PM, "Paul Stearns" wrote:

Alex:

I have found that using a custom combo box I built causes the module that 
contains it to stay in memory.

If I create a new instance but do not access it, everything is fine, As soon as 
I touch the dataprovider, it will not allow the parent module to unload (even 
if I set the dataProvider to null). I changed it to a standard combobox, and 
everything is ducky, but that doesn't have the features I need.

If you could take a look at my ValidatedComboBox function and see if it is 
something obvious, I'd appreciate it.

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FHyMTCC1Y=02%7C01%7Caharui%40adobe.com%7Cfb19977d8bca48a31d7708d6895783f6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636847406335722938=ZQASYXvbPPMfWDk8kWtVTskwz1Z%2BPF7UVmXEWUBF%2Bek%3D=0<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FHyMTCC1Y=02%7C01%7Caharui%40adobe.com%7C95812d28fc8448ab546e08d68965586a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636847465737266976=SfzaMWFKwc2oyAl5Vm%2B%2BYDWQPNnP%2FqFK9xnBxgeeOWQ%3D=0>

Paul R. Stearns
Advanced Consulting Enterprises, Inc.

15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016

Voice: (305)623-0360 x107
Fax: (305)623-4588






Re: At least one memory leak problem is a custom combo box I use.

2019-02-01 Thread Alex Harui
Hard to say for sure, but one thing to watch out for with ComboBox is running 
any code that accesses the dropdown property.ComboBox by itself should know 
how to destroy and unhook the dropdown, but if you run code that access 
dropDown after ComboBox thinks it cleaned up, then it will get stuck in memory 
again.

HTH,
-Alex

On 2/1/19, 10:19 PM, "Paul Stearns"  wrote:

Alex:

I have found that using a custom combo box I built causes the module that 
contains it to stay in memory.

If I create a new instance but do not access it, everything is fine, As 
soon as I touch the dataprovider, it will not allow the parent module to unload 
(even if I set the dataProvider to null). I changed it to a standard combobox, 
and everything is ducky, but that doesn't have the features I need.

If you could take a look at my ValidatedComboBox function and see if it is 
something obvious, I'd appreciate it.


https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpastebin.com%2FHyMTCC1Ydata=02%7C01%7Caharui%40adobe.com%7C231ee986cc774540946a08d688d65832%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636846851513368107sdata=tT4%2BqA90aBbCdypmr59FIGnRgyJFN72d42fKr75dRE0%3Dreserved=0

Paul R. Stearns
Advanced Consulting Enterprises, Inc.

15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016

Voice: (305)623-0360 x107
Fax: (305)623-4588






Re: instances of objects magically appear...

2019-02-01 Thread Alex Harui
ClearEvents();   fncClearEvents = null;   
}   if ("dataProvider" in objChild)objChild["dataProvider"] = null; 
  if ("selectedIndex" in objChild)objChild["selectedIndex"] = -1;   if 
("selectedItem" in objChild)objChild["selectedItem"] = null;
//if ("value" in objChild)objChild["value"] = null;   if 
("text" in objChild)objChild["text"] = null;   objChild = null;   }   
objChild = null;
}


From: Alex Harui 
Sent: 2/1/19 1:20 PM
To: "users@flex.apache.org" , "pa...@compuace.com" 

Subject: Re: instances of objects magically appear...
It was hard to read the code in the email. In the future, try using 
pastebin or some other service, or open a JIRA issue and put the code in there.

I think I saw that a Dictionary was holding the children but it isn't a 
weak-reference dictionary, so that could pin those children in memory.

HTH,
-Alex

On 2/1/19, 10:16 AM, "Paul Stearns" wrote:

I am trying to solve my memory leak issue. I have added a clearEvents 
function to my testing modules. My thought is to execute this function prior to 
unloading each module. Towards that end I have created a function in the 
parentApplication called clearModuleEvents which recursively loops through each 
child, and if the "clearEvents " function exists, run it. Then I unload the 
module.

Using the profiler when I execute clearModuleEvents, it seems to create 
another instance of each display object. I am not sure why. I would appreciate 
if someone might tell what might cause that.

Here is the code referenced above;

clearEvents & related code;
protected var dctListeners:Dictionary = new Dictionary(); override public 
function addEventListener(type:String, listener:Function, useCapture:Boolean = 
false, priority:int = 0, useWeakReference:Boolean = true):void { var key:Object 
= {type: type, useCapture: useCapture}; if (dctListeners[key]) { 
removeEventListener(type, dctListeners[key], useCapture); dctListeners[key] = 
null; } dctListeners[key] = listener; super.addEventListener(type, listener, 
useCapture, priority, useWeakReference); } public function clearEvents():void { 
trace('TestMemoryLeak clearEvents'); try { for (var key:Object in dctListeners) 
{ removeEventListener(key.type, dctListeners[key], key.useCapture); 
dctListeners[key] = null; } } catch (e:Error) { trace('TestMemoryLeak 
clearEvents error='+e.message); } dctListeners = null; }

clearModuleEvents and related code

public function clearModuleEvents(mdlModule:UIComponent):void
{ trace('Starting clearModuleEvents') for(var idx:int = 
mdlModule.numChildren - 1; idx >= 0; idx--) { trace('idx=' + idx + ' 
isContainer(objChild)=' +isContainer(objChild) + ' 
isContainer(mdlModule.getChildAt(idx))=' + 
isContainer(mdlModule.getChildAt(idx))); var objChild:DisplayObject = 
mdlModule.getChildAt(idx); trace('flash.utils.getQualifiedClassName(objChild)=' 
+ flash.utils.getQualifiedClassName(objChild)); var 
childContainer:DisplayObjectContainer = objChild as DisplayObjectContainer; 
clearChildEvents(childContainer); childContainer = null; if ("clearEvents" in 
objChild) { var fncClearEvents:Function = objChild["clearEvents"]; if 
(objChild.hasOwnProperty('id')) trace('Clearing Events in==>>' + 
objChild['id']); fncClearEvents(); fncClearEvents = null; } if ("dataProvider" 
in objChild)objChild["dataProvider"] = null; if ("selectedIndex" in 
objChild)objChild["selectedIndex"] = -1; if ("selectedItem" in 
objChild)objChild["selectedItem"] = null; if ("value" in 
objChild)objChild["value"] = null; if ("text" in objChild)objChild["text"] = 
null; objChild = null; } objChild = null; trace('Finished clearModuleEvents')
}

private function clearChildEvents(dpsContainer:DisplayObjectContainer):void
{ for(var idx:int = dpsContainer.numChildren - 1; idx >= 0; idx--) { var 
objChild:DisplayObject = dpsContainer.getChildAt(idx); if 
(isContainer(objChild)) { var childContainer:DisplayObjectContainer = objChild 
as DisplayObjectContainer; clearChildEvents(childContainer); childContainer = 
null; } if ("killMe" in objChild) { var fncKillMe:Function = 
objChild["killMe"]; if (objChild.hasOwnProperty('id')) trace('Killing Events 
in==>>' + objChild['id']); fncKillMe(); fncKillMe = null; } else if 
("clearEvents" in objChild) { var fncClearEvents:Function = 
objChild["clearEvents"]; if (objChild.hasOwnProperty('id')) trace('Clearing 
Events in==>>' + objChild['id']); fncClearEvents(); fncClearEvents = null; } if 
("dataProvider" in objChild)objChild["dataProvider"] = null; if 
("selectedIndex" in objChild)objChild["selectedIndex"] = -1; if ("selectedItem" 
in objChild)objChild["selectedItem"] = null;
// if ("value" in objChild)objChild["value"] = null; if ("text" in 
objChild)objChild["text"] = null; objChild = null; } objChild = null;
}






Re: instances of objects magically appear...

2019-02-01 Thread Alex Harui
It was hard to read the code in the email.  In the future, try using pastebin 
or some other service, or open a JIRA issue and put the code in there.

I think I saw that a Dictionary was holding the children but it isn't a 
weak-reference dictionary, so that could pin those children in memory.

HTH,
-Alex

On 2/1/19, 10:16 AM, "Paul Stearns"  wrote:

I am trying to solve my memory leak issue.  I have added a clearEvents 
function to my testing modules. My thought is to execute this function prior to 
unloading each module. Towards that end I have created a function in the 
parentApplication called clearModuleEvents which recursively loops through each 
child, and if the "clearEvents " function exists, run it. Then I unload the 
module.

Using the profiler when I execute clearModuleEvents, it seems to create 
another instance of each display object. I am not sure why. I would appreciate 
if someone might tell what might cause that.

Here is the code referenced above;

clearEvents & related code;
   protected var dctListeners:Dictionary = new Dictionary();
  override public function addEventListener(type:String, listener:Function, 
useCapture:Boolean = false, priority:int =  
   0, useWeakReference:Boolean = true):void   {   var 
key:Object = {type: type, useCapture: useCapture};   if 
(dctListeners[key])   {   removeEventListener(type, 
dctListeners[key], useCapture);   dctListeners[key] = null; 
  }   dctListeners[key] = listener;   
super.addEventListener(type, listener, useCapture, priority, useWeakReference); 
  }  public function clearEvents():void   {   
trace('TestMemoryLeak clearEvents');   try   {   
for (var key:Object in dctListeners)   {   
removeEventListener(key.type, dctListeners[key], key.useCapture);   
dctListeners[key] = null;   }   }   catch 
(e:Error)   {   trace('TestMemoryLeak clearEvents 
error='+e.message);   }   dctListeners = null;   }

clearModuleEvents and related code

public function clearModuleEvents(mdlModule:UIComponent):void
{   trace('Starting clearModuleEvents')   for(var idx:int = 
mdlModule.numChildren - 1; idx >= 0; idx--)   {   trace('idx=' + idx + ' 
isContainer(objChild)=' +isContainer(objChild) + ' 
isContainer(mdlModule.getChildAt(idx))=' + 
isContainer(mdlModule.getChildAt(idx)));   var objChild:DisplayObject = 
mdlModule.getChildAt(idx);   
trace('flash.utils.getQualifiedClassName(objChild)=' + 
flash.utils.getQualifiedClassName(objChild));   var 
childContainer:DisplayObjectContainer = objChild as DisplayObjectContainer; 
  clearChildEvents(childContainer);   childContainer = null;   if 
("clearEvents" in objChild)   {   var fncClearEvents:Function = 
objChild["clearEvents"];   if (objChild.hasOwnProperty('id')) 
trace('Clearing Events in==>>' + objChild['id']);   fncClearEvents();   
fncClearEvents = null;   }   if ("dataProvider" in 
objChild)objChild["dataProvider"] = null;   if ("selectedIndex" in 
objChild)objChild["selectedIndex"] = -1;   if ("selectedItem" in 
objChild)objChild["selectedItem"] = null;   if ("value" in 
objChild)objChild["value"] = null;   if ("text" in 
objChild)objChild["text"] = null;   objChild = null;   }   objChild = null; 
  trace('Finished clearModuleEvents')
}

private function clearChildEvents(dpsContainer:DisplayObjectContainer):void
{   for(var idx:int = dpsContainer.numChildren - 1; idx >= 0; idx--)   {
   var objChild:DisplayObject = dpsContainer.getChildAt(idx);   if 
(isContainer(objChild))   {   var 
childContainer:DisplayObjectContainer = objChild as DisplayObjectContainer; 
  clearChildEvents(childContainer);   childContainer = null;   
}   if ("killMe" in objChild)   {   var fncKillMe:Function = 
objChild["killMe"];   if (objChild.hasOwnProperty('id')) trace('Killing 
Events in==>>' + objChild['id']);   fncKillMe();   fncKillMe = 
null;   }   else if ("clearEvents" in objChild)   {   var 
fncClearEvents:Function = objChild["clearEvents"];   if 
(objChild.hasOwnProperty('id')) trace('Clearing Events in==>>' + 
objChild['id']);   fncClearEvents();   fncClearEvents = null;   
}   if ("dataProvider" in objChild)objChild["dataProvider"] = null; 
  if ("selectedIndex" in objChild)objChild["selectedIndex"] = -1;   if 
("selectedItem" in objChild)objChild["selectedItem"] = null;
//if ("value" in objChild)objChild["value"] = null;   if 
("text" in objChild)objChild["text"] = null;   objChild = null;   }   

Re: How Scroller crop a display object ?

2019-02-01 Thread Alex Harui
IIRC, no Spark code ever "reads back" the size of display object.  The 
scrollRect's width/height is computed from other properties.  I think Flex in 
general rarely reads back the display object's size if at all since that value 
can contain stuff that isn't desired.  I do recall a one-frame wait on MX 
TextArea to update its scrollbars, but I don't think there were too many others 
if any.

Also, in case it helps, in general, MX components used masks and Spark 
components used scrollRects.

HTH,
-Alex

On 2/1/19, 5:00 AM, "pol2095"  wrote:

scrollRect has a one-frame delay before you can read back its effect on
widht/height, how validateNow() work ?



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C6449e5b8a95d47b53b0908d688453522%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636846228178679680sdata=pluuRCRFRnyvz52jU9B9IjEd%2F5p4vWMNKL%2BgJuRQmRk%3Dreserved=0




Re: How Scroller crop a display object ?

2019-01-31 Thread Alex Harui
Pretty sure it uses scrollRect.

On 1/31/19, 12:54 PM, "pol2095"  wrote:

Hello,

a Scroller in flex use scrollRect, mask or other ?

Thanks



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Ca4966e944e1e447fe75408d687be4b5c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636845648711039454sdata=oyIPiiyXgVB%2FTfC3%2BNiNEX1PO7sQMRX9vH5BzuwpACM%3Dreserved=0




Re: Flexbuilder 3 profiler

2019-01-31 Thread Alex Harui
If you click on a SWF in the file explorer, which player launches?

It isn't clear Adobe still supports Flex Builder 3.  You can try Flash Builder 
4.7.

HTH,
-Alex

On 1/31/19, 12:31 PM, "Paul Stearns"  wrote:

I am having various issues with the profiler. I do not know whether it is 
how I have it configured, or that I am just expecting more than it can deliver;

When run it fires up Adobe Flash Player 9, instead of either the latest 
debug flash player, or what I have installed in IE which is the latest debug 
flashplayer..It runs in one project, but not another from the same IDE session. 
On the project where it does not run, the error is;java.io.IOException: Unknown 
'agent -> profiler' command: 60   at 
com.adobe.flash.profiler.internal.ProtocolHandler.process(ProtocolHandler.java:134)
   at 
com.adobe.flash.profiler.internal.PlayerSession.run(PlayerSession.java:383)   
at java.lang.Thread.run(Unknown Source)

Where is the best place to get help on this?






Re: Debugging memory leak in Flex 3.5

2019-01-30 Thread Alex Harui
Are you calling close() on the NetConnection?

Are there animations in the module?  Or timers?

Is the instance count on RemoteConnection and Responders also going up?

Commenting out code can sometimes help you find the problem.  Comment out the 
NetConnection.call and see if that allows the module to unload.

HTH,
-Alex

On 1/30/19, 1:12 PM, "Paul Stearns"  wrote:

Alex:

I have a group of 10 
Sent: 1/30/19 3:31 PM
To: "users@flex.apache.org" , "pa...@compuace.com" 

Subject: Re: Debugging memory leak in Flex 3.5
Paul,

In step 3, when they click the X and ModuleLoader unloads the module, do 
you see the module unload in the debugger player? I think you would see a line 
like [UnloadSWF] in the debugger console.

In step 4, are the "children" you refer to the child UI widgets of the 
module?

One technique you could try is to add code that starts removing the 
children from their parents after the module is loaded. Then you might find 
that removing one particular child causes the problem. Make sure Timers and 
event listeners have been managed properly.

HTH,
-Alex

On 1/30/19, 11:18 AM, "Paul Stearns" wrote:

I started down this path some time ago, when I ran into a dead end and 
other projects piled up, I needed to abandon the hunt for memory leaks in my 
application. I am now 100% focused on solving this as it has gotten to be a 
real problem.

I use FlexBuilder 3 as a tool. I am not opposed to using other tools. Where 
I am right now;

1) I made a copy of my application and am working with one module 
(moduleLoader) and the main application.
2) The application is basically a shell with a menu bar, when a user 
selects a menu item it finds an existing moduleloader, and loads the .swf file 
using the moduleloader.
3) When the user clicks the "X" on the panel within the moduleloader it 
unloads the module.
4) After the module unloads all of its children seem to stay in memory, and 
never go away.

At the moment The profiler has stopped functioning with the folloowing 
error;

java.io.IOException: Unknown 'agent -> profiler' command: 60 at 
com.adobe.flash.profiler.internal.ProtocolHandler.process(ProtocolHandler.java:134)
 at com.adobe.flash.profiler.internal.PlayerSession.run(PlayerSession.java:383) 
at java.lang.Thread.run(Unknown Source)

I need help fixing that and/or finding another memory profiler. I would 
like to have the profiler use a relatively current version of the Flash VM.

My current strategy is to strip things out until the problem goes away.






Re: Debugging memory leak in Flex 3.5

2019-01-30 Thread Alex Harui
Paul,

In step 3, when they click the X and ModuleLoader unloads the module, do you 
see the module unload in the debugger player?  I think you would see a line 
like [UnloadSWF] in the debugger console.

In step 4, are the "children" you refer to the child UI widgets of the module?

One technique you could try is to add code that starts removing the children 
from their parents after the module is loaded.  Then you might find that 
removing one particular child causes the problem.  Make sure Timers and event 
listeners have been managed properly.

HTH,
-Alex

On 1/30/19, 11:18 AM, "Paul Stearns"  wrote:

I started down this path some time ago, when I ran into a dead end and 
other projects piled up, I needed to abandon the hunt for memory leaks in my 
application. I am now 100% focused on solving this as it has gotten to be a 
real problem.

I use FlexBuilder 3 as a tool. I am not opposed to using other tools. Where 
I am right now;

1) I made a copy of my application and am working with one module 
(moduleLoader) and the main application.
2) The application is basically a shell with a menu bar, when a user 
selects a menu item it finds an existing moduleloader, and loads the .swf file 
using the moduleloader.
3) When the user clicks the "X" on the panel within the moduleloader it 
unloads the module.
4) After the module unloads all of its children seem to stay in memory, and 
never go away.

At the moment The profiler has stopped functioning with the folloowing 
error;

java.io.IOException: Unknown 'agent -> profiler' command: 60   at 
com.adobe.flash.profiler.internal.ProtocolHandler.process(ProtocolHandler.java:134)
   at 
com.adobe.flash.profiler.internal.PlayerSession.run(PlayerSession.java:383)   
at java.lang.Thread.run(Unknown Source)

I need help fixing that and/or finding another memory profiler. I would 
like to have the profiler use a relatively current version of the Flash VM.

My current strategy is to strip things out until the problem goes away.






Re: Best mxmlc compiler to use for existing application.

2019-01-30 Thread Alex Harui
Hi Paul,

I think the safest play is to use the compiler in your 3.x SDK.  I believe the 
compiler in Apache Flex releases is from the 4.x code base and you might have 
to change some settings to get it to output 3.x code.  There are almost no 
other differences between the compilers, so using the 3.x version is 
effectively 'the latest".

My 2 cents,
-Alex

On 1/30/19, 8:19 AM, "Paul Stearns"  wrote:

Alex:

Thanks for the response.

Are you suggesting that I might be able to download the latest sdk from 
Apache, and it would recognize and compile correctly my existing v3 Flex (non 
Spark) code?

Paul R. Stearns
Advanced Consulting Enterprises, Inc.

15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016

Voice: (305)623-0360 x107
Fax: (305)623-4588


From: Alex Harui 
Sent: 1/30/19 11:00 AM
To: "users@flex.apache.org" , "pa...@compuace.com" 

Subject: Re: Best mxmlc compiler to use for existing application.
Hi Paul,

My memory of these sorts of issues are fading. In looking at the source 
history, there have been almost no changes to the compiler output since Adobe 
donated Flex to Apache. I only saw a couple of fixes for Vector. So, it 
probably doesn't matter which compiler you use.

HTH,
-Alex

On 1/29/19, 9:47 AM, "Paul Stearns" wrote:

I have a few existing applications developed and maintained using 
FlexBuilder. The current SDK used is 3.5. When I compile for production I use 
mxmlc "Version 3.6.0 build 16995"

Two of my applications have memory leaks. Before spending too much time 
debugging, I want to make sure I am compiling with the best compiler I can 
based on the age and style of code I am using. The applications are pre-Spark

My assumption has been to go beyond V3.x of the compiler would cause 
problems. Is this the case?

So what is the latest compiler I can use (also development environment) 
that will work with the old style code I am supporting?

Paul






Re: Best mxmlc compiler to use for existing application.

2019-01-30 Thread Alex Harui
Hi Paul,

My memory of these sorts of issues are fading.  In looking at the source 
history, there have been almost no changes to the compiler output since Adobe 
donated Flex to Apache.  I only saw a couple of fixes for Vector.  So, it 
probably doesn't matter which compiler you use.

HTH,
-Alex

On 1/29/19, 9:47 AM, "Paul Stearns"  wrote:

I have a few existing applications developed and maintained using 
FlexBuilder. The current SDK used is 3.5. When I compile for production I use 
mxmlc "Version 3.6.0 build 16995"

Two of my applications have memory leaks. Before spending too much time 
debugging, I want to make sure I am compiling with the best compiler I can 
based on the age and style of code I am using. The applications are pre-Spark

My assumption has been to go beyond V3.x of the compiler would cause 
problems. Is this the case?

So what is the latest compiler I can use (also development environment) 
that will work with the old style code I am supporting?

Paul






Re: ant download failing

2019-01-22 Thread Alex Harui
Adobe updated the playerglobal so I had to go update our checksums for it.  Try 
again.

-Alex

On 1/22/19, 12:09 PM, "Lydecker"  wrote:

Hi there,

Trying to get Air32 downloaded with Flex using ANT. No Joy.

here is the error. Please can someone help?

Thanks!

C:\f32>ant -f installer.xml -Dflash.sdk.version=32.0 -Dair.sdk.version=32.0
Buildfile: C:\f32\installer.xml
  [get] Getting:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apache.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.propertiesdata=02%7C01%7Caharui%40adobe.com%7Ccec44d1627f24ad1984308d680a5785e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636837845506983280sdata=1AUoixt%2B4FOjbY%2Fb2kvOpOGxk5ZxNP7dzwK4TkuhXzU%3Dreserved=0
  [get] To: C:\f32\en_US.properties

get-data:
  [get] Getting:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apache.org%2Finstaller%2Fsdk-installer-config-4.0.xml%3Fts%3D201901222000data=02%7C01%7Caharui%40adobe.com%7Ccec44d1627f24ad1984308d680a5785e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636837845506983280sdata=b3dQwMC0fmcNQOw4AYxEpQptmkGRC%2FNhtpRev6SfSZc%3Dreserved=0
  [get] To: C:\f32\sdk-installer-config-4.0.xml

get-air-md5-data:

get-flash-md5-data:

get-md5-data:

check-binary:

ask-air:
[input] Apache Flex SDK uses the Adobe AIR SDK to build Adobe AIR
applications.
[input] The Adobe AIR SDK is subject to and governed by the
[input] Adobe AIR SDK License Agreement specified here:
[input] http://www.adobe.com/products/air/sdk-eula.html.
[input] This license is not compatible with the Apache v2 license.
[input] Do you want to download and install the Adobe AIR SDK? (y, [n])
y

ask-flash:
[input] Apache Flex SDK uses the Adobe Flash Player's playerglobal.swc
to build Adobe Flash applications.
[input]
[input] The playerglobal.swc file is subject to and governed by the
[input] Adobe Flex SDK License Agreement specified here:
[input]

http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf,
[input] By downloading, modifying, distributing, using and/or accessing
the playerglobal.swc file
[input] you agree to the terms and conditions of the applicable end user
license agreement.
[input]
[input] In addition to the Adobe license terms, you also agree to be
bound by the third-party terms specified here:
[input] http://www.adobe.com/products/eula/third_party/.
[input] Adobe recommends that you review these third-party terms.
[input]
[input] This license is not compatible with the Apache v2 license.
[input] Do you want to download and install the playerglobal.swc? (y,
[n])
y

ask-swfobject:

ask-ofl:

ask-adobe-osmf:

ask-adobe-fontswf:
[input] Apache Flex can optionally integrate with Adobe's embedded font
support.
[input] This feature requires a few font jars from the Adobe Flex SDK.
[input] The Adobe SDK license agreement for Adobe Flex 4.6 applies to
these jars.
[input] This license is not compatible with the Apache v2 license.
[input]
[input] Adobe Flex SDK License Agreement:
[input]
[input] All files contained in this Adobe Flex SDK download are subject
to and governed by the
[input] Adobe Flex SDK License Agreement specified here:
[input]

http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf,
[input] By downloading, modifying, distributing, using and/or accessing
any files in this Adobe Flex SDK,
[input] you agree to the terms and conditions of the applicable end user
license agreement.
[input]
[input] In addition to the Adobe license terms, you also agree to be
bound by the third-party terms specified here: 
[input] http://www.adobe.com/products/eula/third_party/.
[input] Adobe recommends that you review these third-party terms.
[input]
[input] Do you want to install this jar from the Adobe Flex SDK? (y,
[n])
y

ask-licenses:

air-check:

air-download:
[mkdir] Created dir: C:\f32\in
  [get] Getting:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apache.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.propertiesdata=02%7C01%7Caharui%40adobe.com%7Ccec44d1627f24ad1984308d680a5785e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636837845506983280sdata=1AUoixt%2B4FOjbY%2Fb2kvOpOGxk5ZxNP7dzwK4TkuhXzU%3Dreserved=0
  [get] To: C:\f32\en_US.properties

air-get-check:

air-get:
 [echo] Downloading Adobe AIR Runtime Kit for Windows from: 


Re: Need Help compiling an old Flex Builder 3 mxml into SWF

2019-01-14 Thread Alex Harui
In theory, Flash Builder just calls the compiler with options stored in the 
project files.  So, if you have the project files (.actionScriptProperties and 
a few others) you don't need Flash Builder to build your project.  You can just 
use the command-line.  You may have to change some paths and dig some SWCs out 
of Flash Builder's files, but it should work.  And then you will be able to 
build it again someday if the need arises.

If you post the errors you are getting from the command-line, folks can help.

-Alex

On 1/14/19, 1:47 AM, "Tom Chiverton"  wrote:

You could use a virtual machine to run an older version of it on Windows 
or something ?

Tom

On 12/01/2019 00:05, kmdguy wrote:
> Is there anyone available that I can pay to simply take my project and
> compile it into SWF for me one last time? Or help me overcome the error 
that
> is tripping me up?


__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.symanteccloud.comdata=02%7C01%7Caharui%40adobe.com%7Cf0a2378db588452abe9a08d67a054e07%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636830560640720399sdata=xCiQMVwlESbQtkkjQFqpcfPXQPsrvnL%2BwkDLvfjkTUM%3Dreserved=0
__



Re: How do I see trace messages from Flex framework classes

2019-01-03 Thread Alex Harui
I'm not sure I understand the question.  There are very few actual "trace()" 
calls in the Flex framework classes, and there is no way to redirect them.  
They end up in flashlog.txt.

The RPC SWC has Logging support.  I thought there was reasonable good doc on 
how to use the logger for network calls.

HTH,
-Alex

On 1/3/19, 9:16 AM, "kamcknig"  wrote:

How can I set up a logger or trace target that shows the trace messages from
the Flex framework itself?

Thanks
Kyle



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C052a017f665547e9308708d6719f38bb%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636821326007307365sdata=h0D0xenDL43Nuk9rW7pUrNjCWU2kUZPTxazJP7q8w2I%3Dreserved=0




Re: Air 32 is out

2018-12-16 Thread Alex Harui
I updated the file.  It should appear in the list now.

-Alex

On 12/16/18, 12:09 PM, "pol2095"  wrote:

Hello,

please add Air 32 to the installer ?

Thanks



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cee8593645c6443edfb5608d66392656a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63680582283956sdata=MPZO%2FzWxu9YGMIkuIDRFcAKIXwtCBu%2BxMyVK50Heuo0%3Dreserved=0




Re: Ant installer failed

2018-12-06 Thread Alex Harui
Hi,

Adobe moved it to the archives to make way for version 32.  I think our data 
file is now up to date.  So try again.

Thanks,
-Alex

On 12/6/18, 1:45 PM, "pol2095"  wrote:

Hello,

when I try to install flex SDK with Ant, I have this message error

/get-with-no-params:
  [get] Getting:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fget%2Fflashplayer%2Fupdaters%2F31%2F%2Fplayerglobal31_0.swc%3Fts%3D201812062236data=02%7C01%7Caharui%40adobe.com%7C457f4a3aa59a44c8b8b808d65bc42918%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636797295398276574sdata=bsMc%2BQEfXXFDx5LcSKS9oS9C20EsYdPV40Daw4MWQY4%3Dreserved=0
  [get] To:
C:\Users\user\Desktop\flex_sdk\frameworks\libs\player\31.0\playerglobal.swc

  [get] Error opening connection java.io.FileNotFoundException:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fget%2Fflashplayer%2Fupdaters%2F31%2F%2Fplayerglobal31_0.swc%3Fts%3D201812062236data=02%7C01%7Caharui%40adobe.com%7C457f4a3aa59a44c8b8b808d65bc42918%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636797295398276574sdata=bsMc%2BQEfXXFDx5LcSKS9oS9C20EsYdPV40Daw4MWQY4%3Dreserved=0

  [get] Error opening connection java.io.FileNotFoundException:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fget%2Fflashplayer%2Fupdaters%2F31%2F%2Fplayerglobal31_0.swc%3Fts%3D201812062236data=02%7C01%7Caharui%40adobe.com%7C457f4a3aa59a44c8b8b808d65bc42918%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636797295398286574sdata=V391TBBV%2FjHNoXUdoK3KvZ9iA6ozT9%2BINoXi2z9ojyw%3Dreserved=0
  [get] Error opening connection java.io.FileNotFoundException:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fget%2Fflashplayer%2Fupdaters%2F31%2F%2Fplayerglobal31_0.swc%3Fts%3D201812062236data=02%7C01%7Caharui%40adobe.com%7C457f4a3aa59a44c8b8b808d65bc42918%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636797295398286574sdata=V391TBBV%2FjHNoXUdoK3KvZ9iA6ozT9%2BINoXi2z9ojyw%3Dreserved=0
  [get] Can't get

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fget%2Fflashplayer%2Fupdaters%2F31%2F%2Fplayerglobal31_0.swc%3Fts%3D201812062236data=02%7C01%7Caharui%40adobe.com%7C457f4a3aa59a44c8b8b808d65bc42918%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636797295398286574sdata=V391TBBV%2FjHNoXUdoK3KvZ9iA6ozT9%2BINoXi2z9ojyw%3Dreserved=0
to
C:\Users\user\Desktop\flex_sdk\frameworks\libs\player\31.0\playerglobal.swc/

the link

"https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fget%2Fflashplayer%2Fupdaters%2F31%2F%2Fplayerglobal31_0.swcdata=02%7C01%7Caharui%40adobe.com%7C457f4a3aa59a44c8b8b808d65bc42918%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636797295398286574sdata=9p%2FoVyA9y6guuaLI4CgiTnwTxcLDDfarz9ElkmufY5I%3Dreserved=0;
is broken

Thanks



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C457f4a3aa59a44c8b8b808d65bc42918%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636797295398286574sdata=ZC7Y9LNXwaXUDsTtoEX3Enwu74iP09TTXnny9HI2riY%3Dreserved=0




Re: ANT installer failing

2018-11-27 Thread Alex Harui
Occasionally, Adobe updates its SDKs and we have to re-compute the checksums.  
It should be updated now.  Thanks for letting us know.

-Alex

On 11/27/18, 9:59 AM, "Lydecker"  wrote:

I know the SDK installer is buggy - so I've always used the ANT install
method with no issues. Until today.

Here is the issue I get (Windows):

Is it an issue with the playerglobal.swc checksum?

Thanks

C:\a31>ant -f installer.xml -Dair.sdk.version=31.0 -Dflash.sdk.version=31.0
Buildfile: C:\a31\installer.xml
  [get] Getting:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apache.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.propertiesdata=02%7C01%7Caharui%40adobe.com%7Cbf1d9ccc82d8431f07ed08d654920769%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636789383502177883sdata=xBGGUdNXr1jz0Hq7b6yIkRhigzjGoIi9%2F%2FHuoqT47eE%3Dreserved=0
  [get] To: C:\a31\en_US.properties

get-data:
  [get] Getting:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apache.org%2Finstaller%2Fsdk-installer-config-4.0.xml%3Fts%3D201811271729data=02%7C01%7Caharui%40adobe.com%7Cbf1d9ccc82d8431f07ed08d654920769%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636789383502177883sdata=oq%2FZrKo0DwRxJb%2FMdLOMiehvPs0Ex7uyZy%2BdL%2FXYre4%3Dreserved=0
  [get] To: C:\a31\sdk-installer-config-4.0.xml

get-air-md5-data:

get-flash-md5-data:

get-md5-data:

check-binary:

ask-air:
[input] Apache Flex SDK uses the Adobe AIR SDK to build Adobe AIR
applications.
[input] The Adobe AIR SDK is subject to and governed by the
[input] Adobe AIR SDK License Agreement specified here:
[input] http://www.adobe.com/products/air/sdk-eula.html.
[input] This license is not compatible with the Apache v2 license.
[input] Do you want to download and install the Adobe AIR SDK? (y, [n])
y

ask-flash:
[input] Apache Flex SDK uses the Adobe Flash Player's playerglobal.swc
to build Adobe Flash applications.
[input]
[input] The playerglobal.swc file is subject to and governed by the
[input] Adobe Flex SDK License Agreement specified here:
[input]

http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf,
[input] By downloading, modifying, distributing, using and/or accessing
the playerglobal.swc file
[input] you agree to the terms and conditions of the applicable end user
license agreement.
[input]
[input] In addition to the Adobe license terms, you also agree to be
bound by the third-party terms specified here:
[input] http://www.adobe.com/products/eula/third_party/.
[input] Adobe recommends that you review these third-party terms.
[input]
[input] This license is not compatible with the Apache v2 license.
[input] Do you want to download and install the playerglobal.swc? (y,
[n])
y

ask-swfobject:

ask-ofl:

ask-adobe-osmf:

ask-adobe-fontswf:
[input] Apache Flex can optionally integrate with Adobe's embedded font
support.
[input] This feature requires a few font jars from the Adobe Flex SDK.
[input] The Adobe SDK license agreement for Adobe Flex 4.6 applies to
these jars.
[input] This license is not compatible with the Apache v2 license.
[input]
[input] Adobe Flex SDK License Agreement:
[input]
[input] All files contained in this Adobe Flex SDK download are subject
to and governed by the
[input] Adobe Flex SDK License Agreement specified here:
[input]

http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf,
[input] By downloading, modifying, distributing, using and/or accessing
any files in this Adobe Flex SDK,
[input] you agree to the terms and conditions of the applicable end user
license agreement.
[input]
[input] In addition to the Adobe license terms, you also agree to be
bound by the third-party terms specified here: 
[input] http://www.adobe.com/products/eula/third_party/.
[input] Adobe recommends that you review these third-party terms.
[input]
[input] Do you want to install this jar from the Adobe Flex SDK? (y,
[n])
y

ask-licenses:

air-check:

air-download:
[mkdir] Created dir: C:\a31\in
  [get] Getting:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apache.org%2Finstaller%2Fproperties%2Fsdk%2Fen_US.propertiesdata=02%7C01%7Caharui%40adobe.com%7Cbf1d9ccc82d8431f07ed08d654920769%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636789383502177883sdata=xBGGUdNXr1jz0Hq7b6yIkRhigzjGoIi9%2F%2FHuoqT47eE%3Dreserved=0
  [get] To: 

Re: Flex Installer Quits part way

2018-11-16 Thread Alex Harui
I just checked and the checksums for playerglobal 31 had changed so I updated 
them.  Try again.

If you still get a failure, try one more time, but as soon as the Installer UI 
shows up, right-click on the installer and turn on verbose logging and maybe 
progress logging and post a link to the results.

HTH,
-Alex


On 11/16/18, 12:37 PM, "Tucsonjhall"  wrote:

Trying to install the latest version of Flex and AIR runtime and it appears
to fail during the AIR SDK download portion. Any suggestions? Thanks



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C9b9f682f352046427bbd08d64c035c86%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636779974653970182sdata=%2BSRfizMB1wLF0eYZWRwN6CmN6FsZj2Ay70mdkiIQOV8%3Dreserved=0




Re: Persisting ContentCache to disk between sessions

2018-10-29 Thread Alex Harui
Volunteers are welcome to provide a patch that makes ContentCache serializable. 
 IIRC, lots of Flash classes are not serializable, but IExternalizable allows 
you to define custom serialization.

-Alex

On 10/29/18, 10:22 AM, "Erik Thomas"  wrote:

Thanks everyone for your ideas. 

Alex, I already knew how to do the serialization by encoding/decoding, and 
I may go down that path someday, but if FileStream would just serialize a 
ContentCache (seems like a common want), it would have been a quick improvement 
to app responsiveness. 

Having to write my own serializing logic pushes this down on our priorities 
list since improving app responsiveness is more of a "nice to have" and not a 
high priority.

I'm going to drop this idea for now.

Thanks again for your insights, everyone.

Erik





Re: Persisting ContentCache to disk between sessions

2018-10-27 Thread Alex Harui
Hi Erik,

I don't think you can have Flash serialize a Dictionary by passing a Dictionary 
to FileStream.writeObject.  However, you can certainly iterate the Dictionary 
and save everything.  And later, read it all back and repopulate the Dictionary.

Personally, when writing custom serialization, I like storing the length of a 
thing before the actual thing in the data stream.  Makes it easier to 
deserialize.  With BitmapData.encode you should be able to get a ByteArray to 
add to the FileStream.

Feel free to ask more questions if you're not sure how to do it.

-Alex

On 10/27/18, 10:13 AM, "Erik Thomas"  wrote:

Hi Alex:

The icons and logos are loaded from a server on startup, and then kept up 
to date via a 20 second polling pattern where the app checks if anything has 
changed on the server. We timestamp all images and when one does change we get 
latest and update the image in the app.

The way a ContentCache is used for BitmapImage and Image is to set the 
loader like this:

public static var imageCache:ImageCache = new ImageCache(); // subclass of 
ContentCache
_image.contentLoader = Model.imageCache;
_image.source = "https/someImageUrl"

When the image is first retrieved from the URL, the ContentCache loader 
will save the image into a Dictionary (key/value pairs) where the key is the 
URL and the value is the bitmapData of the image.

Then when using ItemRenderers, and they get recycled, the when the image 
URL changes, ContentCache will look up the URL in it's Dictionary and if it's 
already been downloaded it will simply display it without having to make an 
HTTP request. 

ContentCache is a very cool thing the Adobe engineers designed into 
Flex/Flash and it makes lists with icons and pictures far more responsive.

What I want to do is persist the cache to disk and load it when the user 
logs in again. If any image have changed since the last time they launched the 
app, the first 20 second poll will indicate a timestamp has changed and the app 
will retrieve images with a timestamp after the one returned when polling. So 
they will always be up to date.

I said the images don't change but that's not actually true, they just 
don't change often, maybe once a week we'll onboard new organizations and 
events with images. 

Embedding images is not an option because every new onboarded entity will 
require a new app build, full regression testing, submission to Apple for 
review and the entire release process. That's a bad business model.

Anyway, there must be a way in FileStream to save a Dictionary with key as 
String and value as ByteArray, but I haven't figured it out yet. Was hoping 
someone else knows how.

Thanks, Alex.

Erik

PS: I know how I can do this, but it's too much work the way I know how, I 
would have to take each cached image, use pngencoder to encode the bitmapData 
(ByteArray) to a PNG and save each image as a separate file. Last count our 
image cache has about 1500 images so that means 1500 files, plus a hash file to 
match the image URL to a generated filename for the image. Loading will then 
require reversing the process. If you've used image encoders in Flash/AIR you 
know they're  pretty slow. If we don't gain any speed, it's not worth the 
effort.


On Oct 26, 2018, at 3:44 PM, Alex Harui  wrote:

Erik,

How do the icons and logos get into the cache in the first place?  If they 
don't change, is there any reason not to embed them in the application?

-Alex

On 10/26/18, 3:36 PM, "Erik J. Thomas"  wrote:

   Hey all:

   Have any of you come across an example of persisting a ContentCache to 
disk and reading it back on app launch? We have lots of icons and logos for 
hundreds of companies and they don't change between sessions. 

   Like this (doesn't work though). ImageCache is a subclass of 
ContentCache to get access to the protected cachedData:Dictionary which is 
key/value pairs, with key as URL to image, and value is bitmapData.

   public function saveImageCache(imageCache:ImageCache):void {
  var cacheFile:File = File.applicationStorageDirectory;
  cacheFile = cacheFile.resolvePath(IMAGE_CACHE_FILE_NAME);
  if (cacheFile.exists) {
 cacheFile.deleteFile();
  }
  var fileStream:FileStream = new FileStream();
  fileStream.open(cacheFile, FileMode.WRITE);
  fileStream.writeObject(imageCache.getEntries()); // this is a 
Dictionary with byte array for image as value
  fileStream.close();
   }

   The writeObject API of FileStream does not marshal the bitmapData to 
disk. 

   /**
* Loads a persisted image cache from disk.
*
* @return ContentCache
*/
   public function loadImageCache():ImageCache 

Re: Persisting ContentCache to disk between sessions

2018-10-26 Thread Alex Harui
Erik,

How do the icons and logos get into the cache in the first place?  If they 
don't change, is there any reason not to embed them in the application?

-Alex

On 10/26/18, 3:36 PM, "Erik J. Thomas"  wrote:

Hey all:

Have any of you come across an example of persisting a ContentCache to disk 
and reading it back on app launch? We have lots of icons and logos for hundreds 
of companies and they don't change between sessions. 

Like this (doesn't work though). ImageCache is a subclass of ContentCache 
to get access to the protected cachedData:Dictionary which is key/value pairs, 
with key as URL to image, and value is bitmapData.

public function saveImageCache(imageCache:ImageCache):void {
   var cacheFile:File = File.applicationStorageDirectory;
   cacheFile = cacheFile.resolvePath(IMAGE_CACHE_FILE_NAME);
   if (cacheFile.exists) {
  cacheFile.deleteFile();
   }
   var fileStream:FileStream = new FileStream();
   fileStream.open(cacheFile, FileMode.WRITE);
   fileStream.writeObject(imageCache.getEntries()); // this is a Dictionary 
with byte array for image as value
   fileStream.close();
}

The writeObject API of FileStream does not marshal the bitmapData to disk. 

/**
 * Loads a persisted image cache from disk.
 *
 * @return ContentCache
 */
public function loadImageCache():ImageCache {
   var cacheFile:File = File.applicationStorageDirectory;
   cacheFile = cacheFile.resolvePath(IMAGE_CACHE_FILE_NAME);
   if (cacheFile.exists) {
  var fileStream:FileStream = new FileStream();
  fileStream.open(cacheFile, FileMode.READ);
  var entries:Dictionary = fileStream.readObject() as Dictionary;
  fileStream.close();
  var imageCache:ImageCache = new ImageCache();
  imageCache.loadEntries(entries);
  return imageCache;
   }
   return null;
}

The entries variable does populate with all the keys as URLs, but the 
values are null. FileStream won't read just raw binary data in this way.

I don't want to have to save every image using an encoder into separate 
files and then load them all back if I can help it. 

Just seems FileStream should be able to just write a blob of binary data to 
disk and retrieve it "as-is" but it doesn't or I can't find the way.

Thanks for your suggestions.

Erik



Re: Detecting window resize complete on AIR native desktop

2018-10-16 Thread Alex Harui
Hi Erik,

I'm not saying Adobe would make a change to AIR, but they might have an idea 
for a workaround we haven't considered.

It has been a long time since I wrote code for Microsoft Windows apps, but I 
think the default behavior is that a resizable OS window doesn't require 
managing mouse events, just responding to a resize event as well.  There are 
probably ways to get the mouse events and forward them, but the x,y coordinates 
would be outside the stage dimensions.

BTW, did you check if you get a MOUSE_LEAVE event?

To me, this is similar to any animation problem in Flash/AIR.  You are trying 
to hit a particular frame rate, and screen update time is too long.  One 
quick/cheap hack to try is to defer the entire resize update via callLater.  
More sophisticated implementations queue the deferred work and make decisions 
about how to respond when things are in the queue.

HTH,
-Alex

On 10/16/18, 10:29 AM, "Erik Thomas"  wrote:

Thanks, Alex, but spending time optimizing this kludge just isn't worth the 
effort with my current backlog. Just wish there was a better way, a correct 
way. 

I could log a feature request on Adobe, but it would never get enough 
votes. Just seems a no-brainer that the AIR runtime should fire a MOUSE_UP 
event to the stage when the user releases the mouse while dragging the chrome, 
or allow accessing the chrome from the app and adding event listeners. Seems 
simple enough. They do it already for resize, why not mouse up?

Thanks.

Erik

On Oct 16, 2018, at 10:07 AM, Alex Harui  wrote:

Erik,

Did you also ask on the Adobe forums?

I'm not sure that AIR will give you mouse events when the mouse is 
interacting with the "chrome" of a Window.  IOW, I don't think the mouse ever 
touched the pixels that represent the SWF content.

You could write a test to see if the resize event interval is dependent on 
how long it takes for your app to respond to a resize event.  Create a 
HelloWorld app that will redraw very quickly and see if you get resize events 
more often.

If AIR can deliver resize events at, say 50ms in a simple app, then you can 
consider making changes to your app to respond to resize more quickly.  You can 
use the performance profilers to see if there are bottlenecks responding to 
resize.  You can also consider deferring certain kinds of work via callLater.

HTH,
-Alex

On 10/16/18, 9:53 AM, "Erik Thomas" mailto:erikjtho...@icloud.com>> wrote:

   Yeah, I figured I'd have to use a timer kludge like in the SO thread. 
Just one more of those things about AIR that annoys me.

   I've implemented that pattern and it's working, though the resize events 
fire at roughly 200ms intervals during a drag. A 50ms timer interval suggested 
in SO of course couldn't work. I had to implement a 300ms timer interval to be 
reliably notified only after the resizing process ends with the user releasing 
the mouse capture. 

   But it should be possible to get the mouse up event after the resize. 
That should be considered a bug in AIR, IMO.

   The timer kludge results in delaying a REST API call for 300ms from the 
last resize event is received, making the app appear noticeably unresponsive. 

   Thanks for your response, Kyle. I guess I'll just have to live with it.

   Cheers

   Erik

   On Oct 15, 2018, at 3:33 PM, kamcknig  wrote:

   As far as I know there isn't a way, a stackoverflow user asked the same 

   
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F11014968%2Fdetect-when-the-resize-event-has-finisheddata=02%7C01%7Caharui%40adobe.com%7C61ea030b7b094f7503f008d6338cf596%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636753077852684438sdata=Sta%2FJ8fFFsdvFyCCIEjnDp0qJR4%2BAJRMNcC2bQp0l0k%3Dreserved=0
 
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F11014968%2Fdetect-when-the-resize-event-has-finisheddata=02%7C01%7Caharui%40adobe.com%7C61ea030b7b094f7503f008d6338cf596%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636753077852684438sdata=Sta%2FJ8fFFsdvFyCCIEjnDp0qJR4%2BAJRMNcC2bQp0l0k%3Dreserved=0>

   I can't think of any way to do so.

   Kyle



   --
   Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C61ea030b7b094f7503f008d6338cf596%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636753077852684438sdata=vfy0FIcb%2Bx%2F2a5jV9ptbMVOxRJfyqwbjJ4X9DGka1iU%3Dreserved=0
 
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C61ea030b7b094f7503f008d6338cf596%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636753077852684438sdata=vf

Re: Detecting window resize complete on AIR native desktop

2018-10-16 Thread Alex Harui
Erik,

Did you also ask on the Adobe forums?

I'm not sure that AIR will give you mouse events when the mouse is interacting 
with the "chrome" of a Window.  IOW, I don't think the mouse ever touched the 
pixels that represent the SWF content.

You could write a test to see if the resize event interval is dependent on how 
long it takes for your app to respond to a resize event.  Create a HelloWorld 
app that will redraw very quickly and see if you get resize events more often.

If AIR can deliver resize events at, say 50ms in a simple app, then you can 
consider making changes to your app to respond to resize more quickly.  You can 
use the performance profilers to see if there are bottlenecks responding to 
resize.  You can also consider deferring certain kinds of work via callLater.

HTH,
-Alex

On 10/16/18, 9:53 AM, "Erik Thomas"  wrote:

Yeah, I figured I'd have to use a timer kludge like in the SO thread. Just 
one more of those things about AIR that annoys me.

I've implemented that pattern and it's working, though the resize events 
fire at roughly 200ms intervals during a drag. A 50ms timer interval suggested 
in SO of course couldn't work. I had to implement a 300ms timer interval to be 
reliably notified only after the resizing process ends with the user releasing 
the mouse capture. 

But it should be possible to get the mouse up event after the resize. That 
should be considered a bug in AIR, IMO.

The timer kludge results in delaying a REST API call for 300ms from the 
last resize event is received, making the app appear noticeably unresponsive. 

Thanks for your response, Kyle. I guess I'll just have to live with it.

Cheers

Erik

On Oct 15, 2018, at 3:33 PM, kamcknig  wrote:

As far as I know there isn't a way, a stackoverflow user asked the same 


https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F11014968%2Fdetect-when-the-resize-event-has-finisheddata=02%7C01%7Caharui%40adobe.com%7C24b8a1c31a414de69b1d08d63387ea45%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636753056182036471sdata=w9Z9HLrbWsUyUDBHraKSKuqerX1O%2FLoYBqbpFLslMNE%3Dreserved=0

I can't think of any way to do so.

Kyle



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C24b8a1c31a414de69b1d08d63387ea45%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636753056182036471sdata=sD%2FloMMx%2BfXptvCzlcPFR%2B5imOqL%2BKR6o5WjeU7SWUk%3Dreserved=0






Re: New install of 4.16.1 and air 31 missing things for build

2018-10-12 Thread Alex Harui
Good to know.  Feel free to submit the build.xml changes as a pull request.

Thanks,
-Alex

On 10/12/18, 1:24 PM, "kamcknig"  wrote:

I was able to compile from the source, thank you!

I did however have to update the build.xml file to set more SWF versions
because it stops version 35



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C4af5ea484e10434957d508d63080b288%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636749726642818864sdata=wM0%2F95X01076OI1w0rB3Cn3VIzLkGeOUO9nKYFtow%2BA%3Dreserved=0




Re: New install of 4.16.1 and air 31 missing things for build

2018-10-10 Thread Alex Harui
Hi Kyle,

The Flex binary package that the installer uses does not contain a modules 
folder and probably some other files.  It is intended for using the binaries.

If you want to make changes to the source, get a source package or the repos.

HTH,
-Alex

On 10/10/18, 10:02 AM, "kamcknig"  wrote:

I have included two log files, the normal one, and one with verbose logging=


I also noticed that playerglobal.version, playerglobal.swfversion and
air.version aren't updated in the build.properties of the root folder of
the SDK when using the apache installer to install the latest versions of
the AIR and Flex framework so the ant build fails with this error until
those are set properly

check-playerglobal-home:
 [echo] PLAYERGLOBAL_HOME is
C:\development\libraries\apache\flex_air\flex_4.16.1_air_31\frameworks\libs=
\player
 [echo] playerglobal.version is 27.0

Kyle

flex_logging_without_verbose.txt


  
flex_build_log.txt


  




--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C76ca26229fa04e3c5b7608d62ed232c8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636747877663562410sdata=gqZIdw%2Fdbyd3tlNMNLpFkYnEoflEu0IKyGcSgaZHwbQ%3Dreserved=0




Re: Air31 Flex SDK 4.16.1 Failing on playerglobal.swc download

2018-10-10 Thread Alex Harui
An error #2032 is probably not a checksum problem.  Can you manually download 
that file via your browser?  SourceForge has problems with downloads on 
occasion.

If you can get a copy manually, you can try starting the install and when the 
installer creates the frameworks/libs folder, put the osmf.swc in that folder.

HTH,
-Alex

On 10/10/18, 9:30 AM, "john1of3"  wrote:

Thanks for the quick response.

I think another one might have been updated as its now failing on OSMF2

check-sum:
Validating download: C:\Users\john\Desktop\air31/in/swfobject_2_2.zip
progress 47975  47975

put-in-cache:
 [copy] Copying 1 file to
C:\Users\john\Desktop\aircache\swfobject\swfobject\archive\2.2.zip

copy-if-cached:
Download complete
[mkdir] Created directory C:\Users\john\Desktop\air31\in\swfobject
[unzip] Expanding C:\Users\john\Desktop\air31\in\swfobject_2_2.zip into
C:\Users\john\Desktop\air31\in\swfobject
[mkdir] Created directory
C:\Users\john\Desktop\air31\templates\swfobject
 [copy] Copying 1 file to
C:\Users\john\Desktop\air31\templates\swfobject\expressInstall.swf
 [copy] Copying 1 file to
C:\Users\john\Desktop\air31\templates\swfobject\swfobject.js
[mkdir] Created directory

C:\Users\john\Desktop\air31\frameworks\javascript\fabridge\samples\fabridge\swfobject
 [copy] Copying 1 file to

C:\Users\john\Desktop\air31\frameworks\javascript\fabridge\samples\fabridge\swfobject\swfobject.js

osmf-check:

osmf-download:
   [delete] Deleting file C:\Users\john\Desktop\air31\osmf.properties
Downloading OSMF2_0.swc?format=raw from:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceforge.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibsdata=02%7C01%7Caharui%40adobe.com%7Cacaf06ea730c4fc4993d08d62ecdae23%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636747858262148569sdata=g3%2F7mNcTI1gy9CEQdWLPs%2FULEvmjrkx2kuZZbS%2Fjidk%3Dreserved=0
[mkdir] Created directory C:\Users\john\Desktop\air31\frameworks\libs

check-cache:

download_using_get:

get-if-not-cached:

check-params:

get-with-no-params:

check-params:

get-with-params:
  [get] Getting

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceforge.net%2Fadobe%2Fflexsdk%2Fcode%2FHEAD%2Ftree%2Ftrunk%2Fframeworks%2Flibs%2FOSMF2_0.swc%3Fformat%3Draw%26ts%3D201810100526data=02%7C01%7Caharui%40adobe.com%7Cacaf06ea730c4fc4993d08d62ecdae23%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636747858262148569sdata=2pphzYsl5af9gWVoe2YQsKpHzeGl5SktrydgCn%2BP2h8%3Dreserved=0
  [get] To C:\Users\john\Desktop\air31\frameworks\libs\osmf.swc
[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2
text="Error #2032" errorID=2032]
  [get] [IOErrorEvent type="ioError" bubbles=false cancelable=false
eventPhase=2 text="Error #2032" errorID=2032]
Aborting Installation:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apache.org%2Ftrack-installer.html%3Ffailure%3Dtrue%26label%3DApachedata=02%7C01%7Caharui%40adobe.com%7Cacaf06ea730c4fc4993d08d62ecdae23%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636747858262158573sdata=TiGv0pqj8xgiMD%2BfWydFHI%2Ftkv%2B8tnhqeH%2FLkwIP%2FRE%3Dreserved=0
 Flex
SDK

4.16.1=4.16.1=windows=3.3.2==%20%20%20%20%20%20%5Bget%5D%20%5BIOErrorEvent%20type%3D%22ioError%22%20bubbles%3Dfalse%20cancelable%3Dfalse%20eventPhase%3D2%20text%3D%22Error%20%232032%22%20errorID%3D2032%5D






--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cacaf06ea730c4fc4993d08d62ecdae23%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636747858262158573sdata=cZzQvMsA%2F5n9Qo7H8Nc1BMolKnEjVLWJ%2FVY5imMBc%2F8%3Dreserved=0




Re: New install of 4.16.1 and air 31 missing things for build

2018-10-03 Thread Alex Harui
Please post the log.

Thanks,
-Alex

On 10/3/18, 8:30 AM, "kamcknig"  wrote:

On a fresh install using the installer of the Flex SDK 4.16.1 and AIR 31,
when I run the ant main target from the base folder, it fails on the
thirdparty-downloads target on line 158 because the modules folder doesn't
exist.

Kyle



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Ceb331a7d0bc54687fbe908d629451d75%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636741774159701369sdata=UeHJCIBMYwZiyONRV6hHZSXHYNRzAxeE1SNJL%2F5nmtA%3Dreserved=0




Re: Adobe AIR on Google Devices

2018-09-28 Thread Alex Harui
I'm not an official answer-person for AIR questions, but:

See: https://forums.adobe.com/thread/2384472

It says:

Disabling Packaging of Shared Android Applications
Starting with AIR 26, packaging of shared applications for Android is 
disabled. With this change, published applications will always have 
a captive copy of the runtime included in their installation package 
irrespective of the target selected (that is, apk or apk-captive-runtime).  
This change allows us to focus our testing and engineering on 
captive installation - by far, the most popular option."

HTH,
-Alex

On 9/28/18, 11:26 AM, "Diogo Vieira"  wrote:

I'm looking for Adobe AIR on my Google Play and I'm not finding it. Did
something happen? I received a message from Google that only apps with API
26 or above will continue to be accepted. However I installed it on my
smartphone and I'm not getting it. And when I try to run my application,
there is a message saying that my device does not have AIR 29. Can someone
help me?


Att,
Diogo




Re: QRCode with Mobile Flex (Android)

2018-09-28 Thread Alex Harui
This example worked at one time.  I don't remember if the plugin supported 
QRCode or not.

https://github.com/apache/royale-tourjs/tree/develop/cordova/BatchScanner

HTH,
-Alex

On 9/27/18, 11:33 PM, "Yishay Weiss"  wrote:

It has crossed my mind. We'll see if I get approval.



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cd782d8876546460c786708d6250c5b73%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636737132345360827sdata=zQ9d7p0eftWIwCXPD7P9d1nP0RpUr2YOpaYOj0tavs8%3Dreserved=0




Re: QRCode with Mobile Flex (Android)

2018-09-28 Thread Alex Harui
Try Royale + Cordova?

On 9/27/18, 11:13 PM, "Yishay Weiss"  wrote:

Hi,

Has anyone had luck with reading qrcode on a flex mobile app?

I've been struggling with the libraries [1,2] I've found online. 

Has anyone been successful with either? Are there other libraries out there?

Thanks.

[1] 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmyflashlab%2Fbarcode-ANEdata=02%7C01%7Caharui%40adobe.com%7Cf147c5a409fa4d6f76de08d625098de9%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636737120299761904sdata=7LJo%2BuQVIslaUj3YkpabLhyYEovLjmAew6hmo5lD6S8%3Dreserved=0
[2] 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kasperkamperman.com%2Fblog%2Fflash-code%2Fflash-qrcode-reader-as3%2Fdata=02%7C01%7Caharui%40adobe.com%7Cf147c5a409fa4d6f76de08d625098de9%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636737120299771917sdata=ssObe1r3%2FokrfalzNcUAokahk6%2BkSDej%2BSFmEikgTeM%3Dreserved=0
 



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cf147c5a409fa4d6f76de08d625098de9%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636737120299771917sdata=IJ3Hf54rpQ%2Bt0D3226LTTV3Mg3RDEYTXlcSa1axFEbI%3Dreserved=0




Re: setStyle on a Label

2018-09-20 Thread Alex Harui
Can you post a small test case?

On 9/20/18, 1:52 PM, "Scott Matheson"  wrote:

Hi

 How do I make a text label appear in the center of an lable using AS3 
code

 
 var _lsn:Label = new Label();
 _lsn.text = _”hellow”
 _lsn.setStyle("textAlign", "center");

 
 
the issue must be setStyle 

 
Scott





Re: Flex Installer Issue -- invalid file?

2018-09-19 Thread Alex Harui
Try flushing browser caches.  I think AIR uses some browser APIs on Windows and 
maybe Mac as well.

HTH,
-Alex

On 9/18/18, 9:14 PM, "DanielMcQ"  wrote:

Hi,

Just tried the Flex Installer today, seeing as how AIR 31 is out. (Thanks
for all your work keeping the installer going, Piotr!).

Installer failed at third steplooks like a mismatch on the MD5
signature? Here's my log:

Installer path: /Applications/Apache Flex/Apache Flex SDK
Installer.app/Contents/Resources
Installer version 3.3.2 (mac)
Using Locale: en_AU
Fetched the SDK download mirror URL from the CGI.
SDK version Apache Flex SDK 4.16.1
AIR version 31.0
Flash Player version 31.0
Creating Apache Flex home
Creating temporary directory
Downloading Apache Flex SDK from:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.strategylions.com.au%2Fmirror%2Fflex%2F4.16.1%2Fbinaries%2Fapache-flex-sdk-4.16.1-bin.tar.gzdata=02%7C01%7Caharui%40adobe.com%7C282b556e33f342ab417808d61de66630%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636729272732988198sdata=wNG7boaFwwFvej4jf2zZg2VsX0uwvhCgq1sK2Kmv56U%3Dreserved=0
Verifying Apache Flex SDK MD5 Signature
The Apache Flex SDK MD5 Signature of the downloaded files does not match the
reference value. The file is invalid, installation is aborted.
Aborting Installation:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apache.org%2Ftrack-installer.html%3Ffailure%3Dtrue%26label%3DApachedata=02%7C01%7Caharui%40adobe.com%7C282b556e33f342ab417808d61de66630%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636729272732988198sdata=MSl%2FkjOu8bre5qUhG8lWV9hhNguPieywA0jGefuEcWo%3Dreserved=0
 Flex
SDK 4.16.1=4.16.1=mac=3.3.2=The Apache Flex
SDK MD5 Signature of the downloaded files does not match the reference
value. The file is invalid, installation is aborted.

Best Regards,

Daniel




-
~~~
mcquilleninteractive.com
simplediagrams.com
--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C282b556e33f342ab417808d61de66630%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636729272732988198sdata=cY3wHyk1bRcRjkHG5FCRGc4E6IMeNqURUynd0NTNy4s%3Dreserved=0




Re: Apache Installer not working --!! please help

2018-09-13 Thread Alex Harui
Try clearing your browser cache.  If you are not using Internet Explorer as 
your browser, I would also suggest using Control Panel to clear the IE cache as 
well.

You can right-click and turn on more logging options to see if the right amount 
of bytes are being downloaded.

HTH,
-Alex

On 9/13/18, 12:23 AM, "sreekimpact"  wrote:

Installer path:
C:\Users\sreek\AppData\Roaming\org.apache.flex.installapacheflex\Local
Store\Win64
Installer version 3.3.2 (windows)
Available Memory: 45178880 (64-bit)
Using Locale: en_US
Fetched the SDK download mirror URL from the CGI.
SDK version Apache Flex SDK 4.16.1
AIR version 30.0
Flash Player version 30.0
Creating Apache Flex home
Creating temporary directory
Downloading Apache Flex SDK from:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmirrors.wuchna.com%2Fapachemirror%2Fflex%2F4.16.1%2Fbinaries%2Fapache-flex-sdk-4.16.1-bin.zipdata=02%7C01%7Caharui%40adobe.com%7Ca61c0cf50c0e43645cbc08d61949c454%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636724201948436594sdata=X9Qet5g%2BpZ55GepPnlB0%2Fih%2FsIC3PliajE97yJgLnOQ%3Dreserved=0
Verifying Apache Flex SDK MD5 Signature
-
After this nothing happens ..




--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Ca61c0cf50c0e43645cbc08d61949c454%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636724201948436594sdata=sj2reVbOMPdukr634X3j4KLZUF0p8eFxTZBADADoyBo%3Dreserved=0




Re: Flex Installer missing crosspromotion.swc

2018-09-06 Thread Alex Harui
If you unzip a recent AIR SDK, does it have crosspromotion.swc in it?

-Alex

On 9/6/18, 7:59 AM, "kamcknig"  wrote:

When I use the Flex installer and install Flex/AIR, if I then attempt to
build my application using IntelliJ, I get an error that crosspromotion.swc
is missing. I have tried multiple combinations, but it is always missing and
I have to go back to a very old version of my SDKs (that I can't recall
where I installed from since I've had them forever) and copy over the
crosspromotion.swc from frameworks/libs/air to the new SDK in order for it
to work.

Kyle



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Ce2c2b67d11ce4f0e610508d614095549%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636718427648510634sdata=VjasEfO4%2Bw8KhQdtKBIledcjRzGTaqRAA8M8QVIwoPA%3Dreserved=0




Re: Apache flex sdk installer fail

2018-08-28 Thread Alex Harui
Hi Phil,

I just updated the checksum for Flash 30.  Try again and if you still have 
problems, post the latest log.

Thanks,
-Alex

On 8/28/18, 9:04 AM, "phil.stephenson"  wrote:

I'm in a real bind and I'm having the same problem on my Mac. Is there any
solution to this yet?
Thanks.



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C56952c6e50c4488f834108d60cfff65d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636710690824273768sdata=y3VE31XjAql07BI0d%2FDYHAdqpR7CMAiOgeMC9Sba2pE%3Dreserved=0




Re: RichText gets bold in list when item renderer reloaded in Air App

2018-07-30 Thread Alex Harui
I also just remembered that I've seen a few cases where someone's custom 
renderers manipulate positions and visibility.  Then two renderers are created 
for a data item and one overlays the other.  If the backgrounds are transparent 
(as they usually are) then the text is one top of another copy of the text and 
it looks bold without actually being bold.

HTH,
-Alex

On 7/30/18, 8:11 AM, "Alex Harui"  wrote:

How many items in the list?  If not too many, you could set 
useVirtualLayout=false then it won't recycle renderers.

-Alex

On 7/30/18, 4:22 AM, "chris_flex"  wrote:

I am using a list with an itemrenderers that contains RichText 
components.
The list has a horizontal layout and it uses pageScrolling. When the
itemrederer is displayed fpor the first time, the RichText is "normal", 
the
from the second time the text is always "bold"... 

Does anyone has an idea why this could happen and how to fix it?



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C7d241049c65640f8e51708d5f60eb1de%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636685465358273112sdata=J1GXNmhZBIVPzpXckftIdPrrSx9NNNil0NgSZSPK8Ss%3Dreserved=0






Re: RichText gets bold in list when item renderer reloaded in Air App

2018-07-30 Thread Alex Harui
How many items in the list?  If not too many, you could set 
useVirtualLayout=false then it won't recycle renderers.

-Alex

On 7/30/18, 4:22 AM, "chris_flex"  wrote:

I am using a list with an itemrenderers that contains RichText components.
The list has a horizontal layout and it uses pageScrolling. When the
itemrederer is displayed fpor the first time, the RichText is "normal", the
from the second time the text is always "bold"... 

Does anyone has an idea why this could happen and how to fix it?



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C7d241049c65640f8e51708d5f60eb1de%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636685465358273112sdata=J1GXNmhZBIVPzpXckftIdPrrSx9NNNil0NgSZSPK8Ss%3Dreserved=0




Re: Apache Flex SDK Installer version 3.3.2

2018-07-26 Thread Alex Harui
Hmm, a real crash.  I don't think we've seen that before with swfobject.  Some 
things to try (no need to do all or in this order):

1) Try clearing browser caches, especially for Safari, and also for GitHub and 
org.apache.flex.
2) Start the Installer, then "right-click" to get the popup menu and choose 
"Configure Download Cache".  Turn it on and set the folder to some place you 
like.  Then run the Installer twice more.  The first run should add the Adobe 
AIR SDK to the cache so that on the second run, the way memory is used will be 
different.  Usually these crashes are related to memory issues.
3) Try installing different versions of the AIR Runtime. 
https://get.adobe.com/air/  I'm wondering if some of the changes in AIR 30 are 
involved, so try AIR 29. 
https://helpx.adobe.com/air/kb/archived-air-sdk-version.html
4) Start the Installer, then "right-click" to get the popup menu and choose 
Enable Verbose Logging.  Post a link to the output.
5) Start the Installer, then "right-click" to get the popup menu and choose 
both Enable Verbose Logging and Enable Progress Logging .  Post a link to the 
output.

Also, post the version of MacOS you are running and how much memory you have.

HTH,
-Alex

On 7/26/18, 12:43 PM, "robertB"  wrote:

Alex,
The Apache flex installer shuts down and this mac dialog appears:



  



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C3eab538587924b4e54e508d5f3300dcf%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636682310103655976sdata=IuOJ46ySG3m%2BulAyee4QOKKC26gWHPTPtJ3kc%2B2xRes%3Dreserved=0




Re: Apache Flex SDK Installer version 3.3.2

2018-07-26 Thread Alex Harui
When you say "crashes" what does that really mean?  Are you getting some 
exception dialog?

-Alex

On 7/26/18, 1:41 AM, "robertB"  wrote:

Hi Alex

Just tried to download 4.16.1 (AIR and Flash 30) using fresh installer
(3.3.2) install another 5 times and the installer crashes at the same place
each time. That is, it gets to 

Downloading 2.2.zip from: 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fswfobject%2Fswfobject%2Farchivedata=02%7C01%7Caharui%40adobe.com%7Cb397430a961744d4231d08d5f2d3938e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636681912884175499sdata=Hh7Bcud8jYjUOqWtVIC3Y%2FoMHoWvUWC9IvJHZeLqvnw%3Dreserved=0



Manually going to 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fswfobject%2Fswfobject%2Farchive%2F2.2.zipdata=02%7C01%7Caharui%40adobe.com%7Cb397430a961744d4231d08d5f2d3938e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636681912884175499sdata=Cn61cHaysR7S2Zj3%2FkfvWJvVl8%2BRMlSqczoQmR9AX2E%3Dreserved=0
delivers swfobject-2.2 folder .

Any ideas that I might try?

Thanks





--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7Cb397430a961744d4231d08d5f2d3938e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636681912884175499sdata=ElGQpg0SP%2FeglBshOxuM56%2BAvb6EhJCw4daeIXTnzHA%3Dreserved=0




Re: Apache Flex SDK Installer version 3.3.2

2018-07-25 Thread Alex Harui
I just tried it and it worked.  Maybe a temporary network outage?

HTH,
-Alex

On 7/25/18, 10:42 AM, "robertB"  wrote:

The Installer is crashing for me trying to install AIR 30 and AIR 27. I've
downloaded the installer several times and tried downloading the SDK around
12 times. I'm on MAC 10.11.6

Seems to be crashing at 
Downloading 2.2.zip from: 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fswfobject%2Fswfobject%2Farchivedata=02%7C01%7Caharui%40adobe.com%7Ca7a8999e46e546d3243908d5f255fd0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636681373485777042sdata=LxNAsstI3d0k42y1CqU6URtQ%2Fgf1l%2FCdP6ozIWezkg0%3Dreserved=0

Any ideas?

Thanks 


The log shows:
Installer path: /Applications/Apache Flex/Apache Flex SDK
Installer.app/Contents/Resources
Installer version 3.3.2 (mac)
Using Locale: en_GB
Fetched the SDK download mirror URL from the CGI.
SDK version Apache Flex SDK 4.16.1
AIR version 30.0
Flash Player version 30.0
Creating Apache Flex home
Creating temporary directory
Downloading Apache Flex SDK from:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache.mirror.anlx.net%2Fflex%2F4.16.1%2Fbinaries%2Fapache-flex-sdk-4.16.1-bin.tar.gzdata=02%7C01%7Caharui%40adobe.com%7Ca7a8999e46e546d3243908d5f255fd0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636681373485777042sdata=X5LeEf98MMr8yl3fO67wVE1hc0T7GdtHHk%2FGKN80VEI%3Dreserved=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: /Applications/Apache Flex
4.16.1/temp/apache-flex-sdk-4.16.1-bin.tar.gz
Finished unzipping: /Applications/Apache Flex
4.16.1/temp/apache-flex-sdk-4.16.1-bin.tar.gz
Downloading Adobe AIR Runtime Kit for Mac from:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fairdownload.adobe.com%2Fair%2Fmac%2Fdownload%2F30.0%2F%2FAdobeAIRSDK.dmgdata=02%7C01%7Caharui%40adobe.com%7Ca7a8999e46e546d3243908d5f255fd0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636681373485777042sdata=vvwRENQFmOThRvaErbNVAQxwEVU%2F8LeWEvXMxHhJaIU%3Dreserved=0
Validating download: /Applications/Apache Flex 4.16.1/in/AdobeAIRSDK.dmg
Should unzip: ${shouldUnzip}
Mounting dmg
IS WINDOWS: ${isWindows}, IS MAC: mac
Copying AIR SDK from mounted volume
Unmounting AIR SDK
Copying files from /Applications/Apache Flex
4.16.1/in/airsdk/frameworks/libs/air to /Applications/Apache Flex
4.16.1/frameworks/libs
Copying files from /Applications/Apache Flex
4.16.1/in/airsdk/frameworks/projects/air to /Applications/Apache Flex
4.16.1/frameworks/projects
Copying files from /Applications/Apache Flex 4.16.1/in/airsdk/include to
/Applications/Apache Flex 4.16.1
Copying files from /Applications/Apache Flex 4.16.1/in/airsdk/lib/android to
/Applications/Apache Flex 4.16.1/lib
Copying files from /Applications/Apache Flex 4.16.1/in/airsdk/lib/aot to
/Applications/Apache Flex 4.16.1/lib
Copying files from /Applications/Apache Flex 4.16.1/in/airsdk/lib/nai to
/Applications/Apache Flex 4.16.1/lib
Copying files from /Applications/Apache Flex 4.16.1/in/airsdk/runtimes to
/Applications/Apache Flex 4.16.1
Copying files from /Applications/Apache Flex 4.16.1/in/airsdk/samples/badge
to /Applications/Apache Flex 4.16.1/samples
Copying files from /Applications/Apache Flex 4.16.1/in/airsdk/samples/icons
to /Applications/Apache Flex 4.16.1/samples
Copying files from /Applications/Apache Flex 4.16.1/in/airsdk/templates/air
to /Applications/Apache Flex 4.16.1/templates
Copying files from /Applications/Apache Flex
4.16.1/in/airsdk/templates/extensions to /Applications/Apache Flex
4.16.1/templates
Copying files from /Applications/Apache Flex 4.16.1/in/airsdk/templates/sdk
to /Applications/Apache Flex 4.16.1/templates
Installing Adobe Flash Player playerglobal.swc from:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fget%2Fflashplayer%2Fupdaters%2F30%2F%2Fplayerglobal30_0.swcdata=02%7C01%7Caharui%40adobe.com%7Ca7a8999e46e546d3243908d5f255fd0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636681373485777042sdata=rsV3fbjvAsyMsgnnAu%2BiCVYwAUrnxxp2vtFy49VP5Kg%3Dreserved=0
Validating download: /Applications/Apache Flex
4.16.1/frameworks/libs/player/30.0/playerglobal.swc
Downloading 2.2.zip from: 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fswfobject%2Fswfobject%2Farchivedata=02%7C01%7Caharui%40adobe.com%7Ca7a8999e46e546d3243908d5f255fd0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636681373485777042sdata=LxNAsstI3d0k42y1CqU6URtQ%2Fgf1l%2FCdP6ozIWezkg0%3Dreserved=0



--
Sent from: 

Re: Apache Flex SDK Installer version 3.3.2

2018-07-14 Thread Alex Harui
I think Adobe has reorganized where playerglobal is stored.  I updated the URL 
the installer uses for FP28.  I don't have the time to update the older ones.  
I guess we'll wait until someone complains or someone else has time to update 
the older URLs.  Try 28 if you need it and let us know if it still doesn't 
work.  Make sure it is trying to hit a different URL, otherwise the file we use 
may be stale in a cache somewhere.

HTH,
-Alex

On 7/13/18, 6:53 AM, "douglasmccarroll"  
wrote:

> I think the AIR 30 checksums were out of date.  I updated them.  If it
doesn't work, post the log.

It now works. I've successfully downloaded an API with AIR 30.

> For AIR 28, can you download from the link via a Browser without error
> even with the double-slash?

No.

I get this:

Not Found
The requested URL /get/flashplayer/updaters/28/playerglobal28_0.swc was not
found on this server.



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C177c7736eb8941e129e808d5e8c80f07%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636670868301256425sdata=Na9I35X%2FB8QgXJMRtEk4iyCbmgUAx%2FTz%2BZsXxpcqGHk%3Dreserved=0




Re: hitData function. How to Determine the LineSeries I have hit

2018-07-13 Thread Alex Harui
Are you looking for something like:

var elementName:String = hitData.element.toString();
var c:int = elementName.lastIndexOf(".");
var lineSeriesName:String = elementName.substring(c + 1);

Of course, I could be wrong...

HTH,
-Alex

On 7/12/18, 4:33 AM, "npem"  wrote:

Hi,
I have a LineChart:
**

 with several LineSeries:
* 


... ...
... ...
*

Anyone any idea how I can tell (within the LineChartDataTips function, which
LineSeries I have
Hit on the chart?

One example from tracing:
*hitData.element
*

Is:

*Algebra_GCSE2.ViewNavigatorApplicationSkin4.navigator.ViewNavigatorSkin6.contentGroup.principalStresses17.SkinnableContainerSkin18.contentGroup.myScroller1.ScrollerSkin73.myVgroup1.myPanel1.PanelSkin119._PanelSkin_Group1.contents.contentGroup.myChartLive.UIComponent129.UIComponent130.LineSeries5*

But I do not know how to convert this to a string, to search for LineSeries5
(In this case)

Help would be greatly appreciated,
Phil.




--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C6e9b85b34fe04d01e42808d5e7eb5394%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636669920256572384sdata=220doB5901qMOFaASTBPYrSkYMvxcYC8Jdz5vnKKyLs%3Dreserved=0




Re: Apache Flex SDK Installer version 3.3.2

2018-07-11 Thread Alex Harui
I think the AIR 30 checksums were out of date.  I updated them.  If it doesn't 
work, post the log.

For AIR 28, can you download from the link via a Browser without error even 
with the double-slash?

HTH,
-Alex

On 7/10/18, 8:54 AM, "douglasmccarroll"  
wrote:

Today the installer is failing for me when I try to download an SDK with AIR
28 and AIR 30. (I haven't tried others.)

Log file output below.

Also, when I try running "ant -f installer.xml -Dair.sdk.version=28.0
-Dflash.sdk.version=28.0" I get the following:

check-params:

get-with-no-params:
  [get] Getting:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fget%2Fflashplayer%2Fupdaters%2F28%2F%2Fplayerglobal28_0.swc%3Fts%3D201807101127=02%7C01%7Caharui%40adobe.com%7Cf1d140f9e0844f86ae9a08d5e67d74ae%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636668348854138637=9vy64ui%2BAdSvgi%2BvEGgQpSH9pgusVCIK0SiT0ZopNOg%3D=0
  [get] To:

/Users/douglasmccarroll/_apps/flex_4_16_1_air_28/frameworks/libs/player/28.0/playerglobal.swc
  [get] Error opening connection java.io.FileNotFoundException:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fget%2Fflashplayer%2Fupdaters%2F28%2F%2Fplayerglobal28_0.swc%3Fts%3D201807101127=02%7C01%7Caharui%40adobe.com%7Cf1d140f9e0844f86ae9a08d5e67d74ae%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636668348854138637=9vy64ui%2BAdSvgi%2BvEGgQpSH9pgusVCIK0SiT0ZopNOg%3D=0
  [get] Error opening connection java.io.FileNotFoundException:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fget%2Fflashplayer%2Fupdaters%2F28%2F%2Fplayerglobal28_0.swc%3Fts%3D201807101127=02%7C01%7Caharui%40adobe.com%7Cf1d140f9e0844f86ae9a08d5e67d74ae%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636668348854138637=9vy64ui%2BAdSvgi%2BvEGgQpSH9pgusVCIK0SiT0ZopNOg%3D=0
  [get] Error opening connection java.io.FileNotFoundException:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fget%2Fflashplayer%2Fupdaters%2F28%2F%2Fplayerglobal28_0.swc%3Fts%3D201807101127=02%7C01%7Caharui%40adobe.com%7Cf1d140f9e0844f86ae9a08d5e67d74ae%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636668348854138637=9vy64ui%2BAdSvgi%2BvEGgQpSH9pgusVCIK0SiT0ZopNOg%3D=0
  [get] Can't get

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffpdownload.macromedia.com%2Fget%2Fflashplayer%2Fupdaters%2F28%2F%2Fplayerglobal28_0.swc%3Fts%3D201807101127=02%7C01%7Caharui%40adobe.com%7Cf1d140f9e0844f86ae9a08d5e67d74ae%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636668348854138637=9vy64ui%2BAdSvgi%2BvEGgQpSH9pgusVCIK0SiT0ZopNOg%3D=0
to

/Users/douglasmccarroll/_apps/flex_4_16_1_air_28/frameworks/libs/player/28.0/playerglobal.swc

I find the double slashes in the URL ("/28//playerglobal28_0.swc") somewhat
suspicious...

Installer log output:

Installer path:

/private/var/folders/lx/87c93fns7zx3kdv2ql2cf8rmgn/T/AppTranslocation/4DE42C2F-087C-4C34-9783-2FB60C97B434/d/Apache
Flex SDK Installer.app/Contents/Resources
Installer version 3.3.2 (mac)
Using Locale: en_US
Fetched the SDK download mirror URL from the CGI.
SDK version Apache Flex SDK 4.16.1
AIR version 28.0
Flash Player version 28.0
Creating Apache Flex home
Creating temporary directory
Downloading Apache Flex SDK from:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww-eu.apache.org%2Fdist%2Fflex%2F4.16.1%2Fbinaries%2Fapache-flex-sdk-4.16.1-bin.tar.gz=02%7C01%7Caharui%40adobe.com%7Cf1d140f9e0844f86ae9a08d5e67d74ae%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636668348854138637=3pLHbkWR6neEIv%2FQwHC37kLotU9IZ3tAqaagTBBmszA%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.
Uncompressing:

/Users/douglasmccarroll/_apps/flex_4_16_1_air_28/temp/apache-flex-sdk-4.16.1-bin.tar.gz
Finished uncompressing:

/Users/douglasmccarroll/_apps/flex_4_16_1_air_28/temp/apache-flex-sdk-4.16.1-bin.tar.gz
Downloading Adobe AIR Runtime Kit for Mac from:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fairdownload.adobe.com%2Fair%2Fmac%2Fdownload%2F28.0%2F%2FAdobeAIRSDK.dmg=02%7C01%7Caharui%40adobe.com%7Cf1d140f9e0844f86ae9a08d5e67d74ae%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636668348854138637=MdOu0T9u9f3xcNA1EuKcO5xJcso5zlt241Xy9Wzf7TI%3D=0
Validating download:
/Users/douglasmccarroll/_apps/flex_4_16_1_air_28/in/AdobeAIRSDK.dmg
Should unzip: ${shouldUnzip}
Mounting dmg
IS WINDOWS: ${isWindows}, IS MAC: mac
Copying AIR SDK from mounted volume
Unmounting AIR SDK
Copying files from

/Users/douglasmccarroll/_apps/flex_4_16_1_air_28/in/airsdk/frameworks/libs/air
to 

Re: Restarting an AIR desktop application

2018-07-05 Thread Alex Harui
Hi,

Just so we understand, having another 38Mb download is not viable because of 
the time it takes to download it, or something else?

If what your launcher app does is simple enough, you could look into writing 
them as shell and batch scripts or tiny native apps.

HTH,
-Alex

On 7/5/18, 2:26 AM, "After24"  wrote:

Hi Alex, Hi Om,

Thank you both for your answers.

Alex I gave a try to your solution by creating a simple launcher.app

When it's update is complete, the main application open the launcher app
using the "usr/bin/open" command and closed itself, than the launcher.app re
open the main application the same way.

It works great but then I release the launcher.app size is 38 Mb even if
laucher.swf weight only 778 bytes because of the AIR runtime
encapsulation... so this solution is not viable.

Om, I gave a try to the executeFile method you suggest but I get the
following error :

Error #3214: NativeProcessStartupInfo.executable does not specify a valid
executable file


Vincent.



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Cd65ce551d48b4729222b08d5e2595fd2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636663795844407813=W4lf%2BvBzfmu%2BPMVEFbybnQAJK46Xz7Z4c2ozLfmMTJ0%3D=0




Re: Converting many FXGs to SVGs?

2018-07-03 Thread Alex Harui
FWIW, the FlexJS/Royale repos contain an XSLT that supposedly transforms fxg to 
svg.  Look in the fxg2svg folder.  Not sure how complete it is.

HTH,
-Alex

On 7/3/18, 3:23 AM, "chris_flex"  wrote:

Thanks... I think it will not work with Photoshop (CS6 cannot import FXG) 
but
with Illustrator (also using CS6).



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C628b59d12d654cdb65f008d5e0cef355%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636662101811868685sdata=YXlEhHu5zUj77fS7OQGguO1BYYFjkgjsGPYQIN6gpgs%3Dreserved=0




Re: Unknown request to crossdomain.xml

2018-06-19 Thread Alex Harui
Jeff is correct, but to add one additional note:  IIRC, the check for "same 
host" is done by comparing the URLs, not by the underlying IP address, so even 
if your app launches from www.mscloud.com and it maps to 13.66.128.172 and your 
app is configured to hit 13.66.128.172, it will be seen as a different domain 
and crossdomain.xml will be accessed.

HTH,
-Alex

On 6/19/18, 8:16 AM, "Jeff Dafoe"  wrote:


Yes, that's part of the security mechanism used by the player to control 
where a SWF can request data from.  It comes into play if the SWF needs to 
issue requests to a host other than the one it was loaded from.  In that 
scenario, it has to sit in the root directory of the server hosting the 
resource being requested, and must be configured to allow access from the host 
that the SWF was loaded from.

-Jeff

From: mark goldin 
Sent: Tuesday, June 19, 2018 11:00 AM
To: users@flex.apache.org
Subject: Re: Unknown request to crossdomain.xml

Good guess, it's running on MS cloud.
But, in general, does FP always look for the crossdomain file?

On Tue, Jun 19, 2018 at 7:32 AM Jeff Dafoe  wrote:

>
> Maybe the app was moved to MSFT's cloud infrastructure?
>
> -Jeff
>
>
> 
> From: mark goldin 
> Sent: Tuesday, June 19, 2018 5:45 AM
> To: users
> Subject: Unknown request to crossdomain.xml
>
> My company is trying to move the app to the cloud.
> People from outside of our office did all the work and now are trying to
> rub it.
> It seems like no data is flowing into the application. I am checking
> chrome's console
> and among other errors see this:
> GET 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F13.66.128.172%2Fcrossdomain.xml=02%7C01%7Caharui%40adobe.com%7Cabc744d9dc9a4607682f08d5d5f79586%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636650181704332007=Yp2uaVKyqN1w8%2FVtiXz6Q1mkt6uNvyznSC8eroWU2mQ%3D=0
 504 (Gateway Timeout)
> I have checked that IP and it belongs to MSFT. Does anyone have an idea 
why
> the FP is trying reading it from there?
>
> Thanks
>




Re: App Locks Up On Android

2018-06-19 Thread Alex Harui
I have not done any debugging on devices or any serious Mobile app work with 
Flex.

Maybe the problem is the app isn't terminating.  If you can attach a debugger 
to the app, then debug how the app terminates as other apps open up.

-Alex

On 6/19/18, 7:58 AM, "bilbosax"  wrote:

Thanks for the reply Alex. I'm really not sure how to debug it in this
instance. The app never locks up while the app is running, only after I
minimize it and open up other apps like a browser and then come back to the
app, in which case it is locked up. On other tablets, it would usually just
start over from the beginning if you pull it up from the background and
memory has been exhausted for the app. But in the case of debugging, Scout
loses connection once the app loses focus to another app, thus I would not
be able to obtain any real useful information once I minimize the app to
open another. Can you think of any other way that I could debug it locking
up when trying to pull it up from the background?

Thanks.



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Cd3630bfce7ce415ff32d08d5d5f52414%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636650171212011218=yXaVReyypHoLQC7lUFetI2w36LmR%2F73OrD7ADP%2BZ1FY%3D=0




Re: App Locks Up On Android

2018-06-18 Thread Alex Harui
First make sure it isn't running out of memory or other resources.  Then I 
would recommend debugging the app to see where it is hung.

HTH,
-Alex

On 6/18/18, 10:31 AM, "bilbosax"  wrote:

Bueller? Bueller? LOL

Nobody else has had a mobile project lock up before? I have no idea if this
matters, but it was a development build that i just quickly pushed onto my
friends inexpensive Android device from Flash Builder. It did not contain
the captive runtime, so AIR had to be installed on his tablet to run. I
don't know if a compiled APK containing the captive runtime will behave any
differently. I have the APK sitting in Google Play, ready to be released,
but I'm hesitant to pull the trigger because because I don't want to put out
an app that is locking up when you reopen it after minimiIng it.  Again, it
has never locked up on the iPad or a Galaxy Tab S, but it does frequently on
his cheaper tablet, but only if you minimize the app, do some other things,
and then reopen the app.

Any thoughts at all would be HIGHLY welcome.



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Ca3b3892899ec47ca348108d5d5414d55%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636649398805341951=6zbl94ISEGWcAlmfiWa3nQz%2FU59QEUB2eue6vOZdCUY%3D=0




Re: How to force Ant to install the Air SDK without user validation ?

2018-06-17 Thread Alex Harui
Adobe wants you to acknowledge the terms and conditions for using the AIR SDK, 
so the install script is supposed to stop and insist that you acknowledge it.

What is the scenario where it is important to bypass this acknowledgment?  We 
don't want to encourage folks to bypass it.

My 2 cents,
-Alex

On 6/16/18, 7:55 AM, "pol2095"  wrote:

Hello,

How to force Ant to install the Air SDK without user validation ?

I used "ant -f installer.xml -Ddo.air.install=true -Dflash.sdk.version=30.0
-Dair.sdk.version=30.0" but I have the task "Do you want to download and
install the Adobe AIR SDK? (y, [n])"

Thanks



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Cb47aafd48d0640956b1008d5d3993feb%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636647577511792229=xRWNsbP5T7BGR4U8UHTyfVDSbCpi446t1uF5LG3vqUA%3D=0




Re: Cannot use the installer or build from ant source

2018-06-16 Thread Alex Harui
Hi,

Timeouts for Installer 3.3.1 is a known issue.  The Installer uses TLS1.0 and 
some servers are no longer supporting that version of TLS.  We will hopefully 
have a fix out shortly.  In the meantime, we recommend getting the binary 
package from http://flex.apache.org/download-binaries.html
Unpack it into a folder, and run:

  ant -f installer.xml

That defaults to using AIR/Flash 29.  If you want 30, use:

  ant -f installer.xml -Dair.sdk.version=30.0 -Dflash.sdk.version=30.0

Regarding your second issue, you may need to set the environment variable:

  JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"

HTH,
-Alex

On 6/15/18, 11:03 PM, "stevieboy"  wrote:

Hello,

I am running into two different errors.  First, I tried to install
ApacheFlex with the installer version 3.3.1 with FlashPlayer 30 but got this
error:

Installer version 3.3.1 (windows)
Using Locale: en_US
Fetched the SDK download mirror URL from the CGI.
Timeout
Installation aborted:

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apache.org%2Ftrack-installer.html%3Ffailure%3Dtrue%26label%3DApache=02%7C01%7Caharui%40adobe.com%7C73f0b9bb171d4eb9b46508d5d34ee217%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636647258109906982=I3kAaFLScl3pIHV%2BskHhEbiMRFs5syWptiOUV605qss%3D=0
 Flex
SDK 4.16.1=4.16.1=windows=3.3.1=Timeout

Alright, so then I tried to build from source on Windows.  I am getting this
error instead:
BUILD FAILED
C:\Apps\flex-sdk\build.xml:162: The following error occurred while executing
this line:
C:\Apps\flex-sdk\modules\build.xml:64: The following error occurred while
executing this line:
C:\Apps\flex-sdk\modules\downloads.xml:283:
java.nio.file.InvalidPathException: Illegal char <*> at index 46:
C:\Apps\flex-sdk\modules\thirdparty\batik\lib\**
at
java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at
java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at
java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at
java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.io.File.toPath(File.java:2290)


Any ideas?  Do I have to edit the build.xml?



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7C73f0b9bb171d4eb9b46508d5d34ee217%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636647258109906982=YL2nYnIMIQhHA9T%2BHYG7Ll35W%2FTni4HV%2BpidMNCtfto%3D=0




Public Facing Flex Apps?

2018-06-13 Thread Alex Harui
Hi Flex Users,

A colleague who works on the Adobe Flash Player team is looking for any public 
facing Flex apps he can use for testing some new capabilities.  The app must 
meet one of the following requirements:

1)  They’ve allowed cross domain access via CORS (so a page I host locally 
can refer to their SWF’s URL)
2)  All of the media is portable and enumerable, so my HTML is the same 
domain as the media.

Let us know if you have something that meets those requirements.

Thanks in advance,
-Alex



Re: Flex SDK Installer - is it broken?

2018-06-11 Thread Alex Harui
The Flex community is always looking for new volunteers to help maintain the 
installer and its data files.

Here's a wiki article that attempts to describe the data files.  If you can 
propose changes to the data files for AIR 30, it will be easier for a Flex 
committer to push the changes.  And if you get good at it, we'll probably make 
you a committer so you can push the changes directly.

Thanks,
-Alex

On 6/11/18, 3:06 PM, "Erik J. Thomas"  wrote:

>> "Please add Air 30 in the installer, thanks."

+1

Hey Piotr: 

To date the Apache Flex SDK installer has been invaluable to me and my 
small team as our primary means of installing Flex and AIR SDK updates. 

I agree with your earlier comment that the time spent on updating the 
installer should easily pay for itself in reduced support emails on 
installations. 

However, I also understand it's tough to keep up with releases and it seems 
Adobe has been breaking stuff lately that probably makes it harder for your 
team as well. 

But I (and I'm sure the entire Flex/AIR developer community) appreciate 
your efforts! Thanks for all you do!

Erik

On Jun 11, 2018, at 1:06 PM, pol2095  wrote:

Please add Air 30 in the installer, thanks.



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7C858e0bd7c9b0489476cb08d5cfe78c82%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636643515759611512=Jqxz%2BLvqGG%2B144CZA26iqQ8jgrDLBWGjnr2rghnlboM%3D=0






Re: Flex SDK Installer - is it broken?

2018-06-08 Thread Alex Harui
x.apache.org%2Ftrack-installer.html%3Ffailure%3Dtrue%26label%3DApache=02%7C01%7Caharui%40adobe.com%7Cecd3f2750b104333f58f08d5cd2edfe6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636640523598747604=gwuUZgjcJmF7cioes3DNcNwfhu3vMAv%2B6f3E9mUJn1k%3D=0
> Flex SDK
> 4.16.0=4.16.0=windows=3.3.1=Error
> #1000
> Error: Error #1000
> at flash.net::URLLoader/onComplete()
>
>
>
> -Ursprüngliche Nachricht-
> Von: Ulrich Andreas [mailto:andreas.ulr...@formware.de]
> Gesendet: Freitag, 8. Juni 2018 08:13
> An: users@flex.apache.org
> Betreff: AW: Flex SDK Installer - is it broken?
>
> Internal: for project use only
>
> Luky you - for me the installer is still broken. It just hangs after
> the first screen and does not come back...
> Trying the second way with the ant command also fails with the massage
> that switching vom http to https is not allowed...
>
> Any help appreciated
>
> Regards
> Andi
>
>
>
> Formware GmbH
> Stangenreiterstraße 2
> 83131 Nußdorf am Inn
> 
https://na01.safelinks.protection.outlook.com/?url=www.formware.de=02%7C01%7Caharui%40adobe.com%7Cecd3f2750b104333f58f08d5cd2edfe6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636640523598747604=vM%2BRbWOacu9rjRdkTExujV7zmf5pot1AqyyP93NQ0sw%3D=0
>
> Geschäftsführer: Björn Röttger, Peter Schindecker, Thomas Stampf Sitz
> der
> Gesellschaft: 83131 Nußdorf am Inn Registergericht und Reg.Nr.: AG
> Traunstein HRB 5359
>
>
> *** Bitte vormerken: Formware OPEN HOUSE am 20.& 21.09.2018 Infos und
> Anmeldung unter 
https://na01.safelinks.protection.outlook.com/?url=www.formware.de%2Fopen-house%2F=02%7C01%7Caharui%40adobe.com%7Cecd3f2750b104333f58f08d5cd2edfe6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636640523598747604=qRlhCnN0xHlEKkLZfCbSESiSiLcyRPLHJW%2FeQquHxBo%3D=0
>
> *** Support-Hotline:
> +49 8034 9038-7799 | Mo.-Fr. von 8.00-17.00 Uhr
>
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen.
> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
> erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten diese Mail.
> Die unerlaubte Weiterverarbeitung, insbesondere durch unerlaubtes
> Kopieren, sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.
> Informationen gemäß Artt. 13,14 und 21 DSGVO finden Sie unter
> 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.formware.de%2Fdatenschutz%2F=02%7C01%7Caharui%40adobe.com%7Cecd3f2750b104333f58f08d5cd2edfe6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636640523598747604=phlP2KoCHIhC4zU9p7I1HC4%2BoQLbotqWnxaxwk%2Bd3oM%3D=0
>
> Bitte denken Sie an die Umwelt, bevor Sie diese Mail drucken.
>
> -Ursprüngliche Nachricht-
> Von: 1600...@gmail.com [mailto:1600...@gmail.com] Im Auftrag von
> Douglas McCarroll
> Gesendet: Sonntag, 27. Mai 2018 17:03
> An: Flex-Users (Apache) 
> Betreff: Re: Flex SDK Installer - is it broken?
>
> Strange. I just tried it again and it worked.
>
> First I did some experimentation, but in the end I successfully
> created an SDK running both thirdparty-downloads and the installer. I
    > have no idea why this didn't work previously, but worked this time. In
> any case, now I have an SDK, and Life Is Good.  :)
>
> As requested by Piotr, I'll hold off on posting the SDK for now.
>
> Thanks for your help!
>
>
>
> On Sun, May 27, 2018 at 5:24 AM, Alex Harui 
> wrote:
>
> > That list looked reasonable.  I just downloaded the tar.gz and
> > extracted the files and before running any scripts there were SWCs
> > in frameworks/libs.  If you haven't run any scripts yet, see what is
> > in your frameworks/libs.
> >
> > I think you should run either "ant thirdparty-downloads" or "ant -f
> > installer.xml" but maybe not both.
> >
> > HTH,
> > -Alex
> >
> > On 5/26/18, 10:46 PM, "1600...@gmail.com on behalf of Douglas
> McCarroll"
> > <1600...@gmail.com on behalf of
> > list.apache-flex@brightworks.com>
> > wrote:
> >
> > Alex wrote:
> >
> > > extract the binary package and before running any scripts post
> > the list
> > of files at the top level.
> >
> > Here's the list:
> >
> > Douglass-MacBook-Pro:apache-flex-sdk-4.16.1-bin
> > 

Re: Flex SDK Installer - is it broken?

2018-05-27 Thread Alex Harui
That list looked reasonable.  I just downloaded the tar.gz and extracted the 
files and before running any scripts there were SWCs in frameworks/libs.  If 
you haven't run any scripts yet, see what is in your frameworks/libs.

I think you should run either "ant thirdparty-downloads" or "ant -f 
installer.xml" but maybe not both.

HTH,
-Alex

On 5/26/18, 10:46 PM, "1600...@gmail.com on behalf of Douglas McCarroll" 
<1600...@gmail.com on behalf of list.apache-flex@brightworks.com> wrote:

Alex wrote:

> extract the binary package and before running any scripts post the list
of files at the top level.

Here's the list:

Douglass-MacBook-Pro:apache-flex-sdk-4.16.1-bin douglasmccarroll$ ls

CONTRIBUTING asdoc installer.properties

CONTRIBUTORS bin installer.xml

LICENSE build.properties lib

NOTICE build.xml licenseParts

README env-template.properties samples

RELEASE_NOTES flex-sdk-description.xml templates

ant frameworks

apache-flex-sdk-installer-config.xml ide




    On Sun, May 27, 2018 at 12:03 AM, Alex Harui <aha...@adobe.com.invalid>
wrote:

> Delete the folder of extracted files. Then extract the binary package and
> before running any scripts post the list of files at the top level.
>
> Get Outlook for 
Android<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36=02%7C01%7Caharui%40adobe.com%7C154c5fcea4314892211a08d5c3953c03%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636629968110222550=2684lfrALyuyzpePuVZiVyWi%2Fz98e4MTBg19Xx9b0vk%3D=0>
>
> 
> From: 1600...@gmail.com <1600...@gmail.com> on behalf of Douglas
> McCarroll <list.apache-flex@brightworks.com>
> Sent: Thursday, May 24, 2018 7:39:49 AM
> To: Flex-Users (Apache)
> Subject: Re: Flex SDK Installer - is it broken?
>
> Hi Piotr & All,
>
> I've downloaded and extracted the apache-flex-sdk-4.16.1-bin.tar.gz file
> from the page you specified.
>
> As the page suggests, I've run "ant thirdparty-downloads" in the 
frameworks
> subfolder to install optional dependencies. This runs successfully.
>
> When I run "ant -f installer.xml -Dair.sdk.version=29.0
> -Dflash.sdk.version=29.0" in the main folder, I get a message that says
> that the folder "is not an Flex binary package".
>
> When I look in installer.xml I find this in the 'install' target:
>
> 
> 
> 
> 
>  file="${basedir}/frameworks/libs/framework.swc" />
> 
> 
> 
>
> Obviously, it is looking for /frameworks/libs/framework.swc and not 
finding
> it.
>
> When I look in the libs folder the only file I see there is osmf.swc.
>
> Can you tell me what I am doing wrong?
>
> Thanks,
>
> Douglas
>
>
> On Wed, May 23, 2018 at 2:01 AM, Piotr Zarzycki <piotrzarzyck...@gmail.com
> >
> wrote:
>
> > Hi Guys,
> >
> > I have my hands full with other tasks, so not sure when I will find the
> > time to look into that. If you would like to download SDK you have also
> > other option by using ant.
> >
> > 1) Download SDK binaries from here [1]
> > 2) Run in downloaded folder:
> >
> > "ant -f installer.xml -Dair.sdk.version=29.0 -Dflash.sdk.version=29.0"
> >
> > [1] https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fflex.apache.org%2Fdownload-binaries.html=
> 02%7C01%7Caharui%40adobe.com%7Ca816db683efd473420ed08d5c2e83dd6%
> 7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636629225118231214=
> CZ2vfsQrAtwj5AaG3VT9cEArODajyAAIElVANnCRbMA%3D=0
> >
> > Thanks,
> >
> > 2018-05-23 1:21 GMT+02:00 lixusnet <jamal.rom...@gmail.com>:
> >
> > > I am having the same problem. I used install Flex SDK using the
> installer
> > > without any problems. But now it fails. Sometimes I get connection
> > timeout.
> > > Please helo
> > >
> > >
> > >
> > > --
> > > Sent from: https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%
> 2F=02%7C01%7Caharui%40adobe.com%7Ca816db683efd473420ed08d5c2e83dd6%
> 7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63662922511823121

Re: Flex SDK Installer - is it broken?

2018-05-26 Thread Alex Harui
Delete the folder of extracted files. Then extract the binary package and 
before running any scripts post the list of files at the top level.

Get Outlook for Android


From: 1600...@gmail.com <1600...@gmail.com> on behalf of Douglas McCarroll 

Sent: Thursday, May 24, 2018 7:39:49 AM
To: Flex-Users (Apache)
Subject: Re: Flex SDK Installer - is it broken?

Hi Piotr & All,

I've downloaded and extracted the apache-flex-sdk-4.16.1-bin.tar.gz file
from the page you specified.

As the page suggests, I've run "ant thirdparty-downloads" in the frameworks
subfolder to install optional dependencies. This runs successfully.

When I run "ant -f installer.xml -Dair.sdk.version=29.0
-Dflash.sdk.version=29.0" in the main folder, I get a message that says
that the folder "is not an Flex binary package".

When I look in installer.xml I find this in the 'install' target:










Obviously, it is looking for /frameworks/libs/framework.swc and not finding
it.

When I look in the libs folder the only file I see there is osmf.swc.

Can you tell me what I am doing wrong?

Thanks,

Douglas


On Wed, May 23, 2018 at 2:01 AM, Piotr Zarzycki 
wrote:

> Hi Guys,
>
> I have my hands full with other tasks, so not sure when I will find the
> time to look into that. If you would like to download SDK you have also
> other option by using ant.
>
> 1) Download SDK binaries from here [1]
> 2) Run in downloaded folder:
>
> "ant -f installer.xml -Dair.sdk.version=29.0 -Dflash.sdk.version=29.0"
>
> [1] 
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fflex.apache.org%2Fdownload-binaries.html=02%7C01%7Caharui%40adobe.com%7Ca816db683efd473420ed08d5c2e83dd6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636629225118231214=CZ2vfsQrAtwj5AaG3VT9cEArODajyAAIElVANnCRbMA%3D=0
>
> Thanks,
>
> 2018-05-23 1:21 GMT+02:00 lixusnet :
>
> > I am having the same problem. I used install Flex SDK using the installer
> > without any problems. But now it fails. Sometimes I get connection
> timeout.
> > Please helo
> >
> >
> >
> > --
> > Sent from: 
> > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Ca816db683efd473420ed08d5c2e83dd6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636629225118231214=e6LPD05%2B9vNyNBYr4A%2FvII99Kbpq97Bx1E9C2Vyydns%3D=0
> >
>
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: 
> *https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki=02%7C01%7Caharui%40adobe.com%7Ca816db683efd473420ed08d5c2e83dd6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636629225118231214=1nVP0JK2G3sl2QIUBH%2FqYQPYY4syZYRsGi1hRSnzyW0%3D=0
> *
>


Re: Memory Leak

2018-05-24 Thread Alex Harui
Unfortunately, you can't override event listeners in Flash.  But the framework 
code is theoretically designed to not cause pin modules in memory when used 
"properly".  The ComboBox dropdown probably isn't the culprit here, I was 
mainly using it to illustrate that your clean up code can't clean up everything.

There is another technique to try to figure out what is pinning the module in 
memory.  You can create a module loading test harness.  It loads the module 
using ModuleManager instead of ModuleLoader.  When the module loads, you run 
code that unloads it.  That tests that the module doesn't have any 
initialization code that is a problem.  If it doesn't unload, then you know to 
examine the initialization code in the module.  If it does unload, then you 
enhance the harness to put the module on the display list.  Then once it is on 
the display list, find some way to unload it without interacting with it, maybe 
a timer, or a button elsewhere in the UI.  That tests that the property 
validation code is a factor or not.  And so on.

Another technique I use is to stop in the debugger when the module doesn't 
unload and validate the number of children on the Stage, the 
SystemManager.rawChildren.  Because if something really is still attached at 
that level, that will be a problem.

BTW, are you using embedded fonts or remote classes that are unique to a 
module?  I think they can pin a module.  Anything that registers with a central 
registry.

It is rarely an easy or quick process, but maybe you'll see a pattern after a 
few modules so you will know where to look in the others.

HTH,
-Alex

On 5/24/18, 7:38 PM, "aceinc"  wrote:

Alex, I took a different but similar approach. I created a small class, and
kept adding stuff to it until it failed. I determined it failed using the
profiler. I did this back in December, but resolving this seems like it will
take a fair amount of dedicated sleuthing. Large blocks of time can be hard
to come by.

So how would you resolve the issue where the drop down event listener is
added to the stage? I assume this is an example of a number of similar
things that can bite me in the butt.

Can I override the event listeners in the stage? If so, how do I determine
which events are pointing to things that I have removed, or am about to
remove?

Is there a way to tell all event listeners to use weak references?



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Caf9c1574056e4a6fd36408d5c1e8a0b7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636628127235729630=BUHpt%2Ffh7WjMM7U6WAIq9VGMSeDsgNmvrgv8w4y7Loc%3D=0




Re: Memory Leak

2018-05-24 Thread Alex Harui
AIUI, no.  If ValidatedComboBox subclasses mx.controls.ComboBox but doesn't 
override the DropDown, then the dropDown will make itself a child of the Stage 
and may also attach a listener to the Stage (stage.addEventListener).  I don't 
think your code can override the Stage's addEventListener so any cleanup calls 
will not work.   I think you would have to wrap every UIComponent in the 
framework.

I still think using the profiler or commenting out code is your best bet.

HTH,
-Alex

On 5/24/18, 2:13 PM, "aceinc"  wrote:

I never use combobox directly, I always use "ValidatedCombobox" which has my
clearEvents method in it. Both ValidatedComboBox as well as the class (the
module that is loaded) that has the code;

var cb:ComboBox = new ValidatedComboBox(); 
addChild(cb); 
trace(cb.dropDown); 

in it, have the overridden event handler as well as the clearEvents code.
Would it not clear all of the events created explicitly as well as
implicitly when clearModuleEvents was call during just prior to unload?



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7C21ce82c537da4a35661e08d5c1bb3abf%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636627932246987998=ttGJoB%2F3lrApmzYWeXJuChZMpQ9cr0oAoBZ0bxJwWuc%3D=0




Re: Memory Leak

2018-05-24 Thread Alex Harui
Hi,

I might be missing something, but AFAICT, even if all of that works perfectly, 
you still don't know if your code has caused some Flex framework code to attach 
a listener to the stage, a Timer, a network class, etc.  IOW, I think you can 
run code like:

import mx.controls.ComboBox;
var cb:ComboBox = new ComboBox();
addChild(cb);
trace(cb.dropDown);

IIRC, simple code like this can pin a module into memory, and your clean up 
code won't catch it.

HTH,
-Alex

On 5/24/18, 1:30 PM, "aceinc"  wrote:

Alex, I have implemented the code to destroy event listeners in all of my
widgets, as well as the calling class. The calling class is called from the
root as a module. Before unloading the module I do the following to try and
remove all event listeners;

private function clearModuleEvents(mdlModule:ModuleLoader):void
{
trace('Starting clearModuleEvents')
for(var idx:int = mdlModule.numChildren - 1; idx >= 0; idx--)
{
trace('idx=' + idx + 'isContainer(objChild)=' 
+isContainer(objChild) +
'isContainer(mdlModule.getChildAt(idx))=' +
isContainer(mdlModule.getChildAt(idx)));
var objChild:DisplayObject = mdlModule.getChildAt(idx);
trace('flash.utils.getQualifiedClassName(objChild)=' +
flash.utils.getQualifiedClassName(objChild)); 
var childContainer:DisplayObjectContainer = objChild as
DisplayObjectContainer;
clearChildEvents(childContainer);
if ("clearEvents" in objChild)
{
var fncClearEvents:Function = objChild["clearEvents"];
if (objChild.hasOwnProperty('id')) trace('Clearing Events 
in==>>' +
objChild['id']);
fncClearEvents();
fncClearEvents = null;
}
if ("dataProvider" in objChild)objChild["dataProvider"] = null;
if ("selectedIndex" in objChild)objChild["selectedIndex"] = -1;
if ("selectedItem" in objChild)objChild["selectedItem"] = null;
if ("value" in objChild)objChild["value"] = null;
}
objChild = null;
trace('Finished clearModuleEvents')
}

private function clearChildEvents(dpsContainer:DisplayObjectContainer):void
{
for(var idx:int = dpsContainer.numChildren - 1; idx >= 0; idx--)
{
var objChild:DisplayObject = dpsContainer.getChildAt(idx);
if (isContainer(objChild))
{
var childContainer:DisplayObjectContainer = objChild as
DisplayObjectContainer;
clearChildEvents(childContainer);
}
if ("killMe" in objChild)
{
var fncKillMe:Function = objChild["killMe"];
if (objChild.hasOwnProperty('id')) trace('Killing Events 
in==>>' +
objChild['id']);
fncKillMe();
fncKillMe = null;
}
else if ("clearEvents" in objChild)
{
var fncClearEvents:Function = objChild["clearEvents"];
if (objChild.hasOwnProperty('id')) trace('Clearing Events 
in==>>' +
objChild['id']);
fncClearEvents();
fncClearEvents = null;
}
if ("dataProvider" in objChild)objChild["dataProvider"] = null;
if ("selectedIndex" in objChild)objChild["selectedIndex"] = -1;
if ("selectedItem" in objChild)objChild["selectedItem"] = null;
//  if ("value" in objChild)objChild["value"] = null;
objChild = null;
}
}





--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7C110b4012ca394ee4b27b08d5c1b53108%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636627906328800733=DIbMjs4iq5lHDN1NDhD8dKXQI9vdXxp71xlu4VcW9ys%3D=0




Re: FLEX SDK Installer Timeout on First Screen

2018-05-24 Thread Alex Harui
FWIW, I debugged into this and it appears that ApacheURLLoader is not returning 
any responses other than "connect" for 
https://www.apache.org/dist/flex/4.16.1/binaries/apache-flex-sdk-installer-config.xml

That link works fine from my browser, but the custom handling in 
ApacheURLLoader is not working.  I think it is calling 
org.httpclient.HttpClient.  I wonder why it would suddenly stop working.  
@que...@apache.org do you have time to look into this?

HTH,
-Alex

On 5/24/18, 4:24 AM, "Piotr Zarzycki"  wrote:

Hi,

Yes I know about that. If you would like to install SDK use for now
following instruction [1]

[1]

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2FFlex-SDK-Installer-is-it-broken-tp17005p17011.html=02%7C01%7Caharui%40adobe.com%7Cccd35a00f06d44c5da0d08d5c168f9ac%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636627578977324948=dKCc9eWfrsAoCBM%2FKfPsaohBLVJhJhGeh2hJzf7dGqs%3D=0

Thanks,
Piotr

2018-05-24 13:20 GMT+02:00 Lydecker :

> Hi issue with the installer on macOS.
>
> After selecting the Flex / Air versions and clicking the green Next button
> it never proceeds to the next page. The next button remains disabled and
> the
> following log is given:
>
> Installer version 3.3.1 (mac)
> Using Locale: en_GB
> Fetched the SDK download mirror URL from the CGI.
> Timeout
> Aborting Installation:
> 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.apache.org%2Ftrack-installer.html%3Ffailure%3Dtrue%26label%3DApache=02%7C01%7Caharui%40adobe.com%7Cccd35a00f06d44c5da0d08d5c168f9ac%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636627578977324948=TKDdYu7LgotrSZyIULnn81qPDl5UHrDTAcWkf8T84mM%3D=0
 Flex
> SDK 4.16.1=4.16.1=mac=3.3.1=Timeout
>
> Have tried on multiple machines.
>
>
>
>
> --
> Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Cccd35a00f06d44c5da0d08d5c168f9ac%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636627578977324948=PP%2BCILf2%2F1ztoeDDXzj6cL7%2F6WU3DiUV0uY54lCrFxQ%3D=0
>



-- 

Piotr Zarzycki

Patreon: 
*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki=02%7C01%7Caharui%40adobe.com%7Cccd35a00f06d44c5da0d08d5c168f9ac%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636627578977324948=nAI8mOoDUzs9W9f20XoEN%2FYGZ20yDmkAC%2FKQiQ5ux9w%3D=0

*




Re: Memory Leak

2018-05-23 Thread Alex Harui
In general, child UI widgets don't cause leaks unless they attach something to 
the stage.  So ComboBox is always suspect because it has a dropDown that is 
attached to the SystemManager/Stage.  A few other components listen for events 
from the stage.

Also, I want to remind you that foo.addEventListener("someEvent", 
this.someHandler) creates a reference from foo to the 'this' object.  What you 
are tracking in your addEventListener override appears to be who is attaching 
listeners to objects you control the code for, but the leak often stems from 
module code attaching listeners to objects outside of the module, like the 
stage, the main app, data objects coming from a server.

Hopefully one of the techniques I suggested earlier will help you figure it out.

HTH,
-Alex

On 5/23/18, 7:25 PM, "aceinc"  wrote:

This is a traditional business application. There are no videos or other
gimcracks. 

However some of the modules have multiple tabs with close to 200 (maybe
more) data entry objects, including enhanced versions of the combo box, text
input, text area, etc.



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7C52a3974da3d141c52fce08d5c11d9450%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636627255140560646=kNoHoiaHksF41QSqzuux943JuO8xoEoKlJabzUmP%2BYE%3D=0




Re: Memory Leak

2018-05-23 Thread Alex Harui
IIRC, if you can run the Flash Builder profiler, you can try to see what the 
references are to the objects coming from the modules.

Another technique is to comment out parts of the module until it unloads.

Are there any SWF assets in the modules?  Animations and 
timer-based/interval-based code tends to pin modules in memory.

Also note that anonymous functions can pin a module as well, especially when 
the anonymous function is an event handler.  The entire scope chain is pinned 
while the event handler is attached to a dispatcher.

HTH,
-Alex

On 5/23/18, 4:01 PM, "aceinc"  wrote:

To get a flavor for the application, think of a desktop application where
there is a menu bar, from which you select items. These items would bring up
"programs" (modules/panels) which are discreet items that perform very
specific functions. When finished with the "program" it exits (unloads the
module) and waits for the user to select the next "program" to run.

It is of course much more complex than this, and there is some communication
between modules which can be visible at the same time through parent
application or sometimes directly.

However the problem I have is if I load the application, select a single
menu item, close that same menu item 10 times, I end up with 10 occurrences
in the profiler. I also end up with 10x the classes that were called by the
module. For example if I have 5 objects of "X" in the module, after loading
& unloading 10 times there will be 50 occurrences of "X" in the profiler.



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Cd44f1b28156848461a2d08d5c1010890%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636627132607933665=acGI8LRXjCuohRIIvSVca72dKIP84pDmd%2BqhzW1D5po%3D=0




Re: Flex SDK Installer - is it broken?

2018-05-23 Thread Alex Harui
I updated some of the MD5s.  Adobe had updated some of the downloads.

HTH,
-Alex

On 5/22/18, 11:01 PM, "Piotr Zarzycki"  wrote:

Hi Guys,

I have my hands full with other tasks, so not sure when I will find the
time to look into that. If you would like to download SDK you have also
other option by using ant.

1) Download SDK binaries from here [1]
2) Run in downloaded folder:

"ant -f installer.xml -Dair.sdk.version=29.0 -Dflash.sdk.version=29.0"

[1] 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fflex.apache.org%2Fdownload-binaries.html=02%7C01%7Caharui%40adobe.com%7Cd81325d062cf4672325f08d5c072a53b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636626521013159534=J9KipE8XgGF9GuHlCOEIpxAocxQWzngKqNTcpTmOSrI%3D=0

Thanks,

2018-05-23 1:21 GMT+02:00 lixusnet :

> I am having the same problem. I used install Flex SDK using the installer
> without any problems. But now it fails. Sometimes I get connection 
timeout.
> Please helo
>
>
>
> --
> Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Cd81325d062cf4672325f08d5c072a53b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636626521013159534=7zU4umzdWgmT7b5WfM5MccvC3%2F6oSuLVnBhy%2FDnmY2A%3D=0
>



-- 

Piotr Zarzycki

Patreon: 
*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki=02%7C01%7Caharui%40adobe.com%7Cd81325d062cf4672325f08d5c072a53b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636626521013159534=zAYnO1vBYYJBxEFU2i3whfpnFsL1YCBJVkZpefpcjAw%3D=0

*




Re: Make Your Voice Heard Fast Regarding 32-bit Support!!!

2018-05-07 Thread Alex Harui
Regarding installing different AIR SDK's with Flex:  In theory, when you run 
the installer, you can override settings by putting a local.properties file in 
the destination folder.  The AIR install is looking for properties like:

air.sdk.url.server
air.sdk.url.folder
air.sdk.url.file
air.sdk.url.md5

In theory, if you set these four values to correct values in local.properties 
it will override what you pick from the UI.  Probably you only need to override 
the folder and md5 values.  That said, I don't see AIR 29.0.0.112 on the Adobe 
AIR Archived SDK list.  But if you have it downloaded somewhere already, you 
can probably set 

air.sdk.url.server=file:///Users/myusername
air.sdk.url.folder=path/to/downloaded/archive

HTH,
-Alex

On 5/7/18, 1:29 PM, "Erik J. Thomas"  wrote:


Or, if you know of a way to install a fresh 4.16.1 + AIR 29.0.0.112 I'm all 
ears but installer 3.1 allows selecting AIR 29 and it will only install build 
122. I need 112 for development. 





Re: Flex VideoPlayer still work with youtube videos?

2018-05-07 Thread Alex Harui
I thought we had Spark Video working with OSMF2.  There are some flv files in 
the mustella folder.  You can try those to see if the Flex video components 
work at all.

-Alex

On 5/7/18, 4:32 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" 
 wrote:

Thanks Jaco,

I think implementing a OSMF video player on my own is out of my scope now.
So I'll need to go other way.
After some research, seems youtube is now only HTML5, so is not possible to
show youtube videos with VideoPlayer.

Maybe another video service could be used, how is people serving video
content this days in flex?
Should I put an iFrame? some combination of video service + flex video
component that currently works?

thanks


2018-05-07 12:35 GMT+02:00 jaco :

> hi,
>
> i think they removed crossdomain.xml
> Apart this fact, in my experience spark videoplayer is far from being
> stable
> ad usable, much better to build your own video player with osmf 2.
>
> :)
> Jaco
>
>
>
> --
> Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Cfe3f99ad98e34fe9b9dd08d5b40e2a35%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636612895331102879=rUkzYx8yNG4DNXdSZO5CdnQIX2y2qlDarsIArsN2FQg%3D=0
>



-- 
Carlos Rovira

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira=02%7C01%7Caharui%40adobe.com%7Cfe3f99ad98e34fe9b9dd08d5b40e2a35%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636612895331102879=Gw8lqSakhGqX0CzJI3hI5%2FwxMNmRKw%2FZIXG9YaYo9xA%3D=0




Re: Consume URL information

2018-05-03 Thread Alex Harui
I'm not sure I fully understand your scenario.  But maybe think of it this way: 
 What would you do for desktop if you didn't use AIR?  Would you run a shell or 
batch script?  Call some other app that came with the OS?  Whatever it is 
(launch the browser or mail client with a 'mailto;' for example, can probably 
be done with NativeProcess on AIR Desktop.

HTH,
-Alex

On 5/3/18, 5:31 PM, "bilbosax"  wrote:

Thank you Olaf.  This "deep linking" was exactly what I was looking for.  I
will have to read it more thoroughly, but my concern at this point is
desktop solutions.  After a surface read, deep linking looks pretty well
covered on mobile devices, but our app will be written for both mobile and
desktop, and I am less confident that an email link that is clicked will be
able to open a desktop app to the state that I want it in as easily as it
will open a mobile app the proper state.  The best solutions I have stumbled
across so far are ANE's, which won't work on desktop.



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7C2d5e29363c5c49bbad8008d5b156668d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636609907062512975=VdlWwxFWOsEwQQWV1JV1jmFvLTyHZuE9eI9Hz4V3mw4%3D=0




Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Alex Harui
The embedding of one font might bring in the EmbeddedFontRegistry classes into 
the main ApplicationDomain so they are shared among all sub-SWFs.  You could 
probably have success just force-linking EmbeddedFontRegistry and not have to 
embed the font.

https://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-799a.html

Note also that using sub-applications is heavier than using modules, so if you 
are going to refactor you might be better off using modules.  Once you get set 
up with EmbeddedFontRegistry in the main ApplicationDomain, things should work 
without extra work on your part.

HTH,
-Alex

On 4/24/18, 12:19 PM, "Olaf Krueger"  wrote:

I just noticed that if I just add one ttf font file to the shell/booloader
app and I also define it within the styles section, it works!
Even if I just define one font-face in the shell app, all other fonts (e.g.
Flatspark) of the loaded SWF are working now. Magic...

Thanks to all for your help!

Olaf

[1]
@font-face {
src: url("fonts/raleway/Raleway-Light.ttf");
fontFamily: "RalewayLight";
}   



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7C0af741712b8346ddcdc008d5aa183fa9%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636601943563109093=IY0qKsf0sJRadtL9Otp50KXPRkwhNaaQOTO6QJwkdzs%3D=0




Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Alex Harui
Is this a desktop app or mobile app?

Is the shell written in Flex?  Is the loaded SWF?

For desktop, there should be code in the framework that should get this right 
most of the time.  The rule is that the SWF that contains the embedded font 
must be used to generate the TextField or TextLine that displays the font.  As 
soon as you have more than one SWF running, you can run into problems because 
the way ApplicationDomains work cause your code to want to always instantiate 
TextFields and TextLines in the first SWF loaded.

For Mobile, I'm less clear on the rules since the SWFs are no longer SWFs in 
IOS, IIRC

HTH,
-Alex

On 4/24/18, 1:35 AM, "Olaf Krueger"  wrote:

I also just noticed that the FontAwesome fonts which are part of the SDK 
also
doesn't work within the swf which was loaded dynamically at runtime.

Thanks,
Olaf



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7C08c9f1cbbe71455126c308d5a9be5ccc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636601557530327738=txvY391u1BtFIFFXpo9ETNKP8RS8ML3N2UMDD4P6zbM%3D=0




Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Alex Harui
Apple will let your app load a SWF?  I thought there were restrictions on that.

-Alex

On 4/24/18, 1:36 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" 
 wrote:

Hi Olaf,

that's an interesting topic. I'm interested in what things come from this,
since I was thinking in make something similar for a mobile App. One of the
problems with iOS-Apple Store is we need to wait around 3 working days to
see updated apps in Apple Store. Something like this will overcome that
problem.

2018-04-24 10:32 GMT+02:00 Olaf Krueger :

> Hi,
> we're using AIR (captive runtime) here and instead of always deploying the
> latest version of our app(s) I'd like to download the latest version as 
swf
> from an internal server 'automatically'.
> The idea is to deploy just a shell AIR app one time which will never be
> changed.
> This app has to load the latest swf(s) on demand from an internal server
> which means that the users would have the same experience as with Flash in
> the Browser.
> No need to manually install anything anymore.
>
> The swf loading at runtime using SWFLoader and URLLoader works like a 
charm
> but the (embedded) fonts of the loaded swf are lost.
> I am using the [Embed] tag and thought this makes the fonts part of the 
swf
> [1].
>
> I' am not experienced with this stuff so I guess I am missing something.
>
> Any help is appreciated!
>
> Thanks,
> Olaf
>
>
>
>
>
>
> [1]
> [Embed(source='.../Raleway-Light.ttf',
>fontName='RalewayLightFont',
>fontStyle='normal',
>mimeType='application/x-font',
>embedAsCFF='true'
> )]
>
>
>
>
>
> --
> Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7C342f04789169470c2c5708d5a9be69df%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636601557640015364=%2FSc5wYos6BPs3eP03PByv5E%2BZHyu1KUXqtn8e%2F88VuE%3D=0
>



-- 
Carlos Rovira

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira=02%7C01%7Caharui%40adobe.com%7C342f04789169470c2c5708d5a9be69df%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636601557640015364=mt4rbImA0ESznDvo5PvimUuOlzxQ2ai3jA2w%2FHcpBzw%3D=0




Re: Trying to get by the Apple Rejections for non-public API callsw

2018-04-17 Thread Alex Harui
One problem with the direct copy-over is that AIR SDK has an
air-config.xml that blows away the air-config.xml that Flex expects.  I'm
not sure what errors you are running into, but replacing that one file
might help.

On the other hand, the installer is running a subset of Apache Ant, and
you can look at the installer.xml script, and place a local.properties
file in the destination folder and override certain variables.  It might
be that you can override the air.sdk.url.* properties and get past your
problem.

HTH,
-Alex

On 4/17/18, 7:02 PM, "Erik J. Thomas"  wrote:

>I did exactly that. No go. Still researching.
>
>Thanks for responding.
>
>Erik
>
>On Apr 17, 2018, at 5:20 PM, OmPrakash Muppirala 
>wrote:
>
>On Windows, I just copy the new AIR SDK into the current Flex SDK folder
>and it prompts me to duplicate/replace/skip/etc.  If you simply select
>replace, it should do the trick.
>
>Although please back up your current flex sdk first before trying this,
>just in case :-)
>
>Thanks,
>Om
>
>On Tue, Apr 17, 2018 at 4:58 PM, Erik J. Thomas  wrote:
>
>> Hey all:
>> 
>> We got bit today by the new non-public API rejection notice from Apple
>>due
>> to AIR making these non-public calls:
>> 
>> 
>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fforums.a
>>dobe.com%2Fthread%2F2472510=02%7C01%7Caharui%40adobe.com%7C079d10ce0
>>3234a34982b08d5a4d068a8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>>96137378183652=yvg1blN4OfbM%2BYMwQ%2FloBid6fpB7VShDviVI9uU4q5A%3D
>>eserved=0 
>>>adobe.com%2F=02%7C01%7Caharui%40adobe.com%7C079d10ce03234a34982b08d5
>>a4d068a8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636596137378183652&
>>sdata=QS6%2FdP98WdtRWexDdChq8Ybf3DhyXGNWqmbkxbwyJb4%3D=0
>> thread/2472510>
>> 
>> But Adobe just created a special build of AIR 29.0.0.122 that fixes this
>> issue but I can't figure out how to upgrade just the AIR SDK on top of
>>my
>> Flex SDK 4.16.1 release. I can't use the FlexSDK installer because it
>> doesn't have the pre-release AIR 29.0.0.122 build with the fix for Apple
>> rejections.
>> 
>> Piotr, did you embed the new 122 build into the latest FlexSDK
>>installer I
>> read about a few days ago? I use the Flex SDK installer normally to
>>install
>> new SDKs that embeds the AIRSDK you choose from the install menu.
>> 
>> Assuming Piotr did not use build 122 in latest Flex SDK installer
>>because
>> his last message about the installer was before Adobe released 122
>>patch.
>> So I tried following these directions:
>> 
>> 
>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelpx.ad
>>obe.com%2Fx-productkb%2Fmulti%2Fhow-overlay-=02%7C01%7Caharui%40adob
>>e.com%7C079d10ce03234a34982b08d5a4d068a8%7Cfa7b1b5a7b34438794aed2c178dece
>>e1%7C0%7C0%7C636596137378183652=Jnhn%2Bs7u7EmC6Jxwx2Mos8aQrPusIAQkL
>>T8ncIlGUp8%3D=0
>> air-sdk-flex-sdk.html
>>>dobe.com%2Fx-=02%7C01%7Caharui%40adobe.com%7C079d10ce03234a34982b08d
>>5a4d068a8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636596137378183652
>>=9DXWKKJssa7G8S2Ctrf6ig%2BEcnVeN934p5%2BwfNj5k6E%3D=0
>> productkb/multi/how-overlay-air-sdk-flex-sdk.html>
>> 
>> But am getting compiler errors:
>> 
>> Information:4/17/18, 4:43 PM - Compilation completed with 3 errors and 0
>> warnings in 11s 891ms
>> Error:[FlexCommons]: java.net.SocketTimeoutException: Accept timed out
>> Error:[FlexCommons]: Exception in thread "main"
>> Error:[FlexCommons]: java.lang.NoClassDefFoundError:
>> flex2/tools/VersionInfo
>>at com.intellij.flex.compiler.FlexCompiler.(
>> FlexCompiler.java:19)
>> Caused by: java.lang.ClassNotFoundException: flex2.tools.VersionInfo
>>at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>>at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>>at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>... 1 more
>> 
>> Does anyone know how to manually overlay an unreleased version of AIR
>>SDK
>> 29 onto FlexSDK 4.16.1? I'm sure this is some simple thing I'm doing
>>wrong.
>> 
>> Thanks for your help!
>> 
>> Erik
>



Re: DataGridSkin not working

2018-04-14 Thread Alex Harui
GridView should be available because it is listed in
frameworks/spark-manifest.xml.  It doesn't need to be in SparkClasses.as
if it in the manifest.

It could be that your merge wasn't quite right.  See this email:
https://lists.apache.org/thread.html/d954a087c7453a8427a3c58484faec216e95b5
b15c3301f60e1bcb48@%3Cusers.flex.apache.org%3E

Other people have tripped over something like this.

HTH,
-Alex

On 4/13/18, 4:42 PM, "Alex P"  wrote:

>Blank DataGrids led me to the new DataGridSkin implementation, but when I
>merged my changes with the Apache Flex changes, the compiler cannot find
>
>
>Should 
>
>import spark.components.gridClasses.GridView; GridView;
>
>be added to the SparkClasses.as file in frameworks\projects\spark\src ?
>
>
>
>--
>Sent from: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7C0dd2f
>d58f28640b5aae908d5a1984222%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36592597742136892=hJS2ZeZ6cuF%2BK6KfZ6Q4URK8fmetMjZLNLG48xCzoGE%3D
>eserved=0



Re: Unable to find Embedded CFF Font

2018-04-13 Thread Alex Harui
If you are going to use Adobe Flex 4.6 some day (which you might do just
to see if something changed in Apache Flex), you should leave those files
in that lib folder and copy them to your Apache Flex.

I looked in my Adobe Flex 4.6 sdk and flex-fontkit is there.

HTH,
-Alex

On 4/13/18, 10:47 AM, "Alex P"  wrote:

>Unfortunately I wasn't able to get the installer to work, so I'm doing
>everything by hand.
>Should the leave the original files (all but flex-fontkit were there) in
>the
>lib directory?
>
>
>
>--
>Sent from: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Ce984b
>8cfbdf3445e26e608d5a166a024%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36592384502145272=khNQ6fH4yovqm9TqJwGMmnW%2B5dFDH1xpTAkBTDueLPk%3D
>eserved=0



Re: Unable to find Embedded CFF Font

2018-04-12 Thread Alex Harui
Embedded Font support is optional in Apache Flex because the code that
supports it is Adobe proprietary and not open source.  The installer.xml
Ant scripts and/or the Apache Flex Installer should give you the option of
downloading the Adobe font libraries.

You can see if the embedded font libraries are in your Apache Flex SDK by
looking for these four files:
lib/external/optional/afe.jar
lib/external/optional/aglj40.jar
lib/external/optional/flex-fontkit.jar
lib/external/optional/rideau.jar


If you want to install them manually, you can find the same four files in
the lib folder of an Adobe Flex 4.6 SDK.  Just make sure you copy them to
lib/external/optional in the Apache Flex SDK.

HTH,
-Alex

On 4/12/18, 4:15 PM, "Alex P"  wrote:

>Migrating from Adobe Flex 4.6 to Apache Flex 4.16 I have lost the ability
>for
>find Embedded CFF fonts. In my mxml file I have load the same font twice,
>once as CFF
>
>   @namespace s "library://ns.adobe.com/flex/spark";
>   @namespace mx "library://ns.adobe.com/flex/mx";
>   @font-face {
>   src: url("C:\Users\...\src\fonts\Maretron.ttf");
>   fontFamily: "Maretron";
>   fontStyle: normal;
>   fontWeight: bold;
>   advancedAntiAliasing: false;
>   embedAsCFF:false;
>   }
>   
>   @font-face {
>   src: url("C:\Users\...\src\fonts\Maretron.ttf");
>   fontFamily: "Maretron Embedded";
>   fontStyle: normal;
>   fontWeight: bold;
>   advancedAntiAliasing: false;
>   embedAsCFF:true;
>   }
>
>
>In my code I go looking for the fonts using Font.enumerateFonts(false),
>and
>get 
>   Font name:'Maretron', style: 'bold', type: 'embedded'
>   Font name:'Maretron Embedded', style: 'bold', type: 'embedded'
>
>Previously the font type of the second was 'embeddedCFF'.
>Is there something I need to include to recognize CFF fonts?
>
>
>
>
>
>--
>Sent from: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.246.n4.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7C5c79d
>8fe0b81496f3def08d5a0cf668e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36591735009727268=eEBwfi%2FYo%2F6Nf7LanrXNcQFCh8MsR4ZPcEa3hSN4muo%3D
>=0



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