SWF Loader (Flash CS3)

click here to see the code for loading anykind of swf files inside swf generated using Flash CS3, with Seamless effort. This example AS loads ‘1.swf’ to ‘8.swf’. For which u can control with buttons prev_btn, next_btn to navigate among them. swfLoader_mc is the movieclip used to load them. preloader_mc with loadbar_mc and myText(txt) shows the loading.

6 Responses to “SWF Loader (Flash CS3)”

  1. Mike Says:

    This sounds like the solution I’ve been looking for, however I’ve never used flex and have no programing skills. Is there any more information you could give me about how to go about setting this up? I’m looking to recreate the flash header found at http://www.hottoys.com.hk/ this does exactly what I want, a main swf file that loads external swf’s in a sequential order while giving the user the ability to skip forward or backward.

    Any help would be greatly appreciated.

    Thanks,
    Mike

  2. asd Says:

    SecurityError — Local SWF files may not set LoaderContext.securityDomain to anything other than null. It is not permitted to import non-local media into a local sandbox, or to place other local media in anything other than its natural sandbox.

    SecurityError — If this SWF file is from an untrusted local sandbox and is attempting to access a network URL.

    SecurityError — If the applicationDomain or securityDomain properties of the context parameter are from a disallowed domain.

    SecurityError — If a local SWF file is attempting to use the securityDomain property of the context parameter.

    See also
    contentLoaderInfo

  3. nsdevaraj Says:

    hi asd,
    Can you share your files with me. To resolve the bug.

  4. Yoshi Says:

    Thanks for sharing

  5. shaked Says:

    Hey,

    I JUST PASTE YOUR CODE INTO FLEX ACTIONSCRIPT FILE, USING FLEX 3 SDK.
    I GET THIS ERROR, COULD YOU PLEASE HELP ME WITH THAT I DO REALLY NEED IT!!
    :
    A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package. swfLoader swfLoader.as

  6. shaked Says:

    Everything is fixed now.
    Great Job!
    I was just confused by the category where you placed this post :FLEX.
    It was a Flash CS3 code.
    Maybe it can be useful to say it
    Cheers!

Leave a Reply