The place where everyone hangs out, chats, gossips, and argues
User avatar
By Stephen.
#82647
When making an intro for a website does anyone know how to make it so that the whole thing loads first before playing so that it isn't jumpy?

That may be a bit vague but I'm sure some one will know.

Stephen.
By David
#82649
what are you using to make your flash? You using the actual 'Flash' - or something like Swish? I know how to do it in Swish.
By Mcqueen_
#82650
Make a preloader.
By Mcqueen_
#82657
Its just an action.

Code: Select all
ifFrameLoaded ("Scene 2", 1) {
    gotoAndPlay("Scene 1", 2);
}


Choose what scene and frame you want it to check is loaded in the first line, and then what scene and frame you want it to start from in the second line.
User avatar
By Stephen.
#82691
Ah right cheers, does this just make it wait then or is a loading thing displayed?

If it doesn't, what is the code to make and image appear?
By Mcqueen_
#82694
That is the action to just make it wait. In Scene 1 you could have some text/image saying 'loading...' or a small movie clip.

Image

The first action should be:
Code: Select all
ifFrameLoaded ("Scene 4", 45) { 
    gotoAndPlay("Scene 2", 1);
}

The second action should be:
Code: Select all
gotoAndPlay(1);

Put your text/image or movie clip in the second layer.

Obviously change the scene names and frame numbers to match your movie.

That should then loop the movie or show the text/image until the rest has loaded.