Comments (3)
How are you loading these multiple SWF files in your app? Do you have one main SWF for your app, and then loading in extra content at runtime from other external SWFs using a Loader? And is it taking 60 seconds just to load your initial content SWF, or 60 seconds including loading all of the additional SWFs? Some more info on how you've structured things may be helpful to give any feedback.
I don't often use multiple SWFs, but in general I'd recommend adding a brief delay in the main SWF before trying to load external content (in case you're trying to start up a Loader immediately upon launch), since trying to do too much immediately can affect the speed of launching an app on Android. I would also likely wait until one external SWF is loaded before loading the next, rather than loading multiples all at once.
And depending on the compiler you're using, you may be able to add a preloader that will speed up the application launch -- I think this is only with the older mxmlc compiler and not with the newer ASC 2.0 compiler (it was being added at one point, but not sure if that was fully completed -- maybe it works with that now too though?)
from adobe-runtime-support.
Taking 60 seconds for the app to open. Is it possible to load the SWF files from the server and if so how to load it? Could you provide the code for it? Give guidance for loading multiple SWF files from the server within an app.
@ajwfrost
from adobe-runtime-support.
@Odd1Apps see #3076 which has some sample code. It can probably be fleshed out with progress events if you wanted to display some download progress bar or similar...
If this is for an app then you probably don't want to do this every time, so I'd suggest having a location under File.applicationStorageDirectory that you use for these files; if they don't exist then download them from the server via URLStream(), but then just use the Loader from that local storage location (you should be able to use a URL such as "app-storage:/local_swfs/download1.swf").
thanks
from adobe-runtime-support.
Related Issues (20)
- [Linux] No sound under sudo after `AudioDeviceManager.audioDeviceManager.deviceNames` call HOT 2
- [Linux] Empty `AudioDeviceManager.audioDeviceManager.deviceNames` under sudo
- iOS App Crashing on launch HOT 5
- Crash on Amazon device with AIR 5.1.1.1 and beyond HOT 2
- [AIR 51.1.1.4][Windows] `EncryptedLocalStore.reset()` cause internal error HOT 1
- App crash on all android test devices HOT 3
- PrintJob : add two-sided (duplex) printing and select printer paper tray
- [Linux] `TimeZone` return `rawOffset` in seconds, not milliseconds HOT 1
- Wrong debug line HOT 6
- [Windows] `TimeZone` return `rawOffset` and `daylightSavingsOffset` with incorrect sign HOT 4
- [Linux] `TimeZone::daylightSavingsOffset==0` if `TimeZone::usesDaylightSavings==false` HOT 1
- function.declaration enhancement
- [Android] Updated Android Studio, can no longer run on mobile device (Gradle.. but what?) [/`Unable to run java: com.adobe.air.ADTException: gradle tool failed`] HOT 4
- App crashes on Ipad
- The following exception occurred when use AIRSDK MacOS 51.1.1.4 version HOT 5
- Can't create a DEBUG version - Animate for android HOT 1
- [Bug] The "Magic Date" (31.07): `Date` object - strange bug where `Date` will not properly assign month the first time HOT 2
- string.normalize() implement
- [Feature Request] `IDataInput::readLine()`
- iOS Mac crashes on Mac Silicon, Camera / Mic permission not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adobe-runtime-support.