-
HI,
I want to make a preloader for movies loaded in levels. For that i need to know how to detect if the level is loaded.
-
Rather than checking whether "a level is loaded" you just check the bytes loaded and total bytes of that level, allowing you to calculate a percentage...
if you're checking the movie on level one, you can use the following to calculate the percentage loaded, for example:
Code:
loaded = _level1.getBytesLoaded();
total = _level1.getBytesTotal();
percentage = 100 * loaded / total;
Obviously this needs a bit more work to implement as a proper preloader - but perhaps you're happy with the basic preloader creation. If you need more info, get back to me.
-
Thanks.
I'm happy with it.
Yuppa
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|