A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Loading Frame from external swf

  1. #1

    Loading Frame from external swf

    on (rollOver) {
    loadMovie("Headers.swf", "content");
    gotoAndStop(2);
    }


    I know this is probably wrong... the gotoAndStop part, so what should I do?

  2. #2
    nobody
    Join Date
    Aug 2002
    Posts
    269
    You forgot to reference the movie.
    content.gotoAndStop(2);
    kra, kra

  3. #3

    umm

    Well I added that line and it loads the movie in the container but only frame 1.

    If i put frame 2 or 3 or 10 it still loads frame 1.

  4. #4
    nobody
    Join Date
    Aug 2002
    Posts
    269
    Availability of frames of the movie clip that is loaded into a container depend upon file size of the loaded mc and the speed of the internet. frame 2 probably does not even exist at the begining of loading. Maybe this code would work:
    content.onLoad=function(){
    this.gotoAndStop(2);
    }
    kra, kra

  5. #5
    on (rollOver) {
    loadMovie("Headers.swf", "content");
    content.onLoad = function() {
    this.gotoAndStop(2);
    };
    }



    This is what I have now. But it still loads only the first frame for some reason. And, I'm viewing it locally so nothing needs to be downloaded.

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