Skip to main content
Participant
February 13, 2013
Answered

Pre-loading the next swf

  • February 13, 2013
  • 1 reply
  • 468 views

Guys,

i gonna tell the situation from the very beginning:

I'm doing a book, wich each chapter is separated by swf (chapter_1.swf, chapter_2.swf, etc).

In the final of each swf, he calls the next by the command: _root.loadMovie("next.swf")

(PS: i'm not using the MovieClip load method)

The problem is; when the swf are uploaded on my server, and i click to load the next swf, my screen goes blank while he download it.

All i want to do, is pre-load the next swf, while the user is reading the actual chapter, to avoid this blank screen time. Is it possible?

I read something about getBytesLoaded/Total, but don't know how to execute it.

Please explain it clear cuz i'm new with this. And thank you very much for the support!

This topic has been closed for replies.
Correct answer Ned Murphy

If you want to have information regarding the loading progress of a file then you need to use the MovieClipLoader class.

If you search Google you should be able to find a tutorial using search terms like "AS2 MovieClipLoader tutorial"

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
February 13, 2013

If you want to have information regarding the loading progress of a file then you need to use the MovieClipLoader class.

If you search Google you should be able to find a tutorial using search terms like "AS2 MovieClipLoader tutorial"