Giter Site home page Giter Site logo

Comments (3)

FliplineStudios avatar FliplineStudios commented on September 27, 2024

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.

Odd1Apps avatar Odd1Apps commented on September 27, 2024

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.

ajwfrost avatar ajwfrost commented on September 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.