[AIR] Font of loaded swf is lost

2018-04-24 Thread 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 t

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Olaf Krueger
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: http://apache-flex-users.246.n4.nabble.com/

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Carlos Rovira
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 overco

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Olaf Krueger
Sorry, I should mention, that I am loading the swf into a ByteArray in order to avoid sandbox/securitiy issues. This is the source code [1]. I've got this idea from here [2]. [1] https://gist.github.com/olafkrueger/017820407c79408226581e79853604ca [2] https://stackoverflow.com/questions/2713865

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Olaf Krueger
> we need to wait around 3 working days to see updated apps in Apple Store Interesting, I am not sure but I think Google needs max 24 hours? -- Sent from: http://apache-flex-users.246.n4.nabble.com/

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Piotr Zarzycki
When we are submitting Moonshine to App Store we are waiting less than 24 hours. 2018-04-24 11:08 GMT+02:00 Olaf Krueger : > > we need to wait around 3 working days to see updated apps in Apple Store > > Interesting, I am not sure but I think Google needs max 24 hours? > > > > -- > Sent from: ht

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Carlos Rovira
Hi Piotor, maybe that's on Mac Apple Store, you think is the same in iOS Apple Store? Several months has past since we update last App, maybe Apple has improve the timings since that thanks 2018-04-24 11:10 GMT+02:00 Piotr Zarzycki : > When we are submitting Moonshine to App Store we are wait

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Piotr Zarzycki
Carlos, Not sure. I'm not responsible for submitting. However I doubt that is something different. Piotr 2018-04-24 16:05 GMT+02:00 Carlos Rovira : > Hi Piotor, > > maybe that's on Mac Apple Store, you think is the same in iOS Apple Store? > Several months has past since we update last App, may

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 m

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 tha

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread 0xC3
Olaf, I am doing a boot loader style as well, for different reasons. The child app may not be looking at itself for all the resources. There are more then 1 style of loading the child app into the boot loader https://help.adobe.com/en_US/as3/dev/WSd75bf4610ec9e22f43855da312214da1d8f-8000.html I h

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread 0xC3
I have only used this in production for desktop and have good success. Mobile is not a big concern for me but I have tested on Android by side loading and it works there as well. I have never tried iOS but from what I have read you can remote download swf's for assets but it cannot contain or execu

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Olaf Krueger
>Is this a desktop app or mobile app? >Is the shell written in Flex? Is the loaded SWF? It's a desktop app (captive runtime), anything written in Flex/AS3. >As soon as you have more than one SWF running, you can run into problems... Because our app is divided into several sub-apps I had the

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Olaf Krueger
Hi 0xC3, thanks for your helpful hints and the link! >Olaf, I am doing a boot loader style as well, for different reasons. Did you notice any drawbacks or performance issues by using this approach? Thanks, Olaf -- Sent from: http://apache-flex-users.246.n4.nabble.com/

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Olaf Krueger
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!

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/WS2db

[Announce] Apache Flex SDK Installer 3.3.1 Released

2018-04-24 Thread Piotr Zarzycki
Hello, The Apache Flex community is pleased to announce the release of Apache Flex SDK Installer 3.3.1 Apache Flex SDK Installer 3.3.1 is an update to Apache Flex SDK Installer 3.3. It provides the ability to install other SDKs like the FlexJS SDK. This update provide fix for problem with down

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread 0xC3
I didn't see any performance issues, once its loaded it seems to work the same as everything else. The style I did was more like loading a remote module (child domain) then hosting a sandboxed app instance. Like Alex said it is heavier then modules (not really sure how much, as we didn't test modul

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Olaf Krueger
>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. I remember some issues years ago (but don't remember which kind of issues) by using modules so I tried using sub-applications at first now. But it seems to

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Olaf Krueger
>The style I did was more like loading a remote >module (child domain) then hosting a sandboxed app instance. I guess I don't understand it completely: Do you also have a main app SWF which just loads an child/sub remote app SWF into the local main app? Or do you use another approach? Thanks, Ol

Re: [Announce] Apache Flex SDK Installer 3.3.1 Released

2018-04-24 Thread Olaf Krueger
Thank you for working on this Piotr!! @Community Take a look at Piotr's Patroen program and support this guy! ;-) [1] [1] https://www.patreon.com/piotrzarzycki -- Sent from: http://apache-flex-users.246.n4.nabble.com/

Re: [Announce] Apache Flex SDK Installer 3.3.1 Released

2018-04-24 Thread Carlos Rovira
+1 to Piotr support on Patreon! 2018-04-24 22:49 GMT+02:00 Olaf Krueger : > Thank you for working on this Piotr!! > > @Community > Take a look at Piotr's Patroen program and support this guy! ;-) [1] > > [1] https://www.patreon.com/piotrzarzycki > > > > -- > Sent from: http://apache-flex-users.23

Re: [Announce] Apache Flex SDK Installer 3.3.1 Released

2018-04-24 Thread Piotr Zarzycki
Guys <3 :) Many Thanks! On Tue, Apr 24, 2018, 10:51 PM Carlos Rovira wrote: > +1 to Piotr support on Patreon! > > 2018-04-24 22:49 GMT+02:00 Olaf Krueger : > > > Thank you for working on this Piotr!! > > > > @Community > > Take a look at Piotr's Patroen program and support this guy! ;-) [1]

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread 0xC3
There are 3 types of loading for ApplicationDomain depending on the need of interaction and use. This page explains it better. https://help.adobe.com/en_US/as3/dev/WSd75bf4610ec9e22f43855da312214da1d8f-8000.html Our use case is reverse of yours. The child swf's are located on site and we do not ha

Re: [AIR] Font of loaded swf is lost

2018-04-24 Thread Olaf Krueger
Got it! Many thanks for the explanation, it's always interesting to read about others use cases! Thanks, Olaf -- Sent from: http://apache-flex-users.246.n4.nabble.com/