A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: load in the wright order.how do this

  1. #1
    Senior Member
    Join Date
    Oct 2002
    Location
    belgium
    Posts
    611

    load in the wright order.how do this

    how can I change this code so>first visual1.swf or2,3 or 4 should be loaded( depending on witch button the vistor hits).after the visual has loaded load in sound.swf.if sound.swf has loaded load in content 1 or 2,3,4( depending on witch button the vistor hits. The external file are all coded by buttons on the main swf file.Have a look at the code.Hope someone can help out.Big thx in advance.

    coded on frame2:
    but1.onRelease=function(){
    //set a variable that stores the next external movie to be loaded
    nextMovie="visual1.swf";
    //tell the cover mc to play its closing animation
    cover.gotoAndPlay("close");
    }
    but2.onRelease=function(){
    nextMovie="visual2.swf";
    cover.gotoAndPlay("close");
    }
    but3.onRelease=function(){
    nextMovie="visual3.swf";
    cover.gotoAndPlay("close");
    }
    but4.onRelease=function(){
    nextMovie="visual4.swf";
    cover.gotoAndPlay("close");
    }
    _root.visual.loadMovie("visual1.swf");

    loadMovieNum("sound2.swf",1);

    coded on button(object)
    on(release){
    _level1.unloadMovie(); // empty old song from level 1
    loadMovieNum("sound2.swf",1); // load new song in level 1
    }
    on(release){
    loadMovie("content3.swf", "content");
    }

  2. #2
    Junior Member scudsucker's Avatar
    Join Date
    Feb 2003
    Location
    Cape Town, RSA
    Posts
    1,509
    Hariyemadzisawira nhaka yedu! Down the SCUD and win!
    I'm too lazy to read Private Messages.

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