A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: load external swf automatically??

  1. #1
    Junior Member
    Join Date
    Dec 2001
    Posts
    19

    load external swf automatically??

    I am trying to set up my main movie so that it loads an external clip into a blank clip automatically after the main swf loads, but can't figure it out. Here's a link to the page: http://www.frogpound.com/main.htm

    Any help is appreciated!

  2. #2
    In the root timeline, or in the main timeline of whatever clip you want the movie to load into, insert the following code:

    this.createEmptyMovieClip("myEmptyMovie", 0);
    myEmptyMovie.loadMovie("/external.swf");

    swap out "/external.swf" for the URL/path to your external swf file, I think that should work!

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center