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.

    • Mike
    • October 15th, 2008

    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

  1. 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

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

  3. Thanks for sharing

    • shaked
    • April 29th, 2009

    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

    • shaked
    • April 29th, 2009

    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!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: