Code Monkey home page Code Monkey logo

Comments (5)

shaucky avatar shaucky commented on August 18, 2024

Hello,

I have no experience in iOS development, but have to remind you:
If you tries to load SWF in AIR app on iOS, due to Apple's policy, applications are not allowed to load external code or other JIT technologies without being reviewed by the App Store. So AIR for iOS can't load SWF, and they are not using ABC as software.

For other OS, loading external SWF is a very normal behavior. You should show more information about the issue, including SDK version, sample code and so on…

from adobe-runtime-support.

ponarangan avatar ponarangan commented on August 18, 2024

Could you provide sample code for android OS

from adobe-runtime-support.

shaucky avatar shaucky commented on August 18, 2024

I think load SWF from a server is clear easy and isn't it a basic operation in Flash development?

Just something like this:

package yourpackagename {
    import flash.display.Sprite;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.net.URLRequest;
    
    public class SimpleClass extends Sprite {
        private var loader:Loader = new Loader();
        public function SimpleClass() {
            loader.load(new URLRequest("http://yourDomain.com/URL/to/SWF/file.swf"));
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handlerForLoadComplete);
        }
        private function handlerForLoadComplete(e:Event) {
            //things to do on load complete
            //For example: Add as child
            addChild(e.target.content);
        }
    }
}

I think this is enough, isn't it the same operation as on Windows/MacOS? I did the same when developing Android. Or do you encounter problems during regular loading?

from adobe-runtime-support.

ponarangan avatar ponarangan commented on August 18, 2024

Let me implement the codes you have given and get back to you with the result. Thanks

from adobe-runtime-support.

ajwfrost avatar ajwfrost commented on August 18, 2024

If you're just looking at SWFs with resources, then that should work, but I think if you want to access AS3/code definitions from the loaded SWF within your main application then you'd also need to pass in a LoaderContext to the load() command, with the "allowCodeImport" value set to true.

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.