Results 1 to 5 of 5

Thread: Loading External Swf files

  1. #1
    Join Date
    Jan 2007
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow Loading External Swf files

    Hey Everyone...

    I think this is another issue that i'm over complicating. What is the simplest way to import in an external swf file.

    I don't want to do anything fancy with it, just to load as soon as the frame that contains its container is played.

    I've looked through about 5 online tutorials but for some reason it's just not working.

    I know i have to use the MovieClipLoader class but I read something about calling event listeners and was totally confused.

    Any help would be appreciated.

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    For what you are doing you don't need event listeners.

    Just use something like the following:

    Code:
    _root.empty.loadMovie("file.swf");
    where "_root.empty" is the name of your container, and "file.swf" is the name of your movie to load.

    That should do it. If you are having issues check to ensure you are publishing as Flash 8. If you are and still have the problem, post back as there are a few other "work arounds"
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Jan 2007
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey...

    thanks for the help
    but it's not working

    this is the code that i first tried using but for some reason its not working and am not sure why.

    i checked the publishing, i am indeed publishing in Flash 8.
    so what are these "work arounds"?

    Thanks once again for the help. you really are a life saver.

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    You have ensured as well that ALL files to be uploaded are in the exact same directory?

    If so, post up the codes you are using right now, or better yet attach your fla and I will take a peek and get it working.

    (with full explanation of course)
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Jan 2007
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks Blizzard.

    I think I'm going to change my design a bit so I won't be needing to import an external swf.

    I figured out that the problem wasn't with the importing of the swf. That part was working fine. Rather, when the swf was imported it appeared off the stage. Not sure why this happened because the containing movie clip and the imported swf were both the same size. :-\

    But thanks anyway!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •