Is there anyway to monitor the loading of an swf into a screen (Form) using a custom progress bar. It seems odd that the screens class inerits all the events of the Loader class (complete and progress). However it does not seem to inherit the properties bytesTotal and bytesLoaded. This makes it really hard to monitor the loading of content into a screen (Form) I've also tried using getBytesLoaded and getBytesTotal but this dosent work either. Screens are a really good idea but they are very hard to understand. (I dont even want to think about the registration issues). I really think macromedia should publish an INDEPTH tutorial clearly detailing how to use every aspect of screens in real world projects. (Think 56k modem). If they don't people will simply not use them. I've given them a go several times and for one reason or another had to go back to the good old time line. Come on macromedia give us a hand here. Not even Colin Moocks new book is going to cover screens. If he can't figure them out what chance do the rest of us have?
It's probably not the answer you want but the only way I can see to do this is to make everything on each screen a movie clip with an instance name and then you will be able to getBytesLoaded and getBytesTotal for the clips. It does not seem possible to get the bytes for the screen itself even though it is correctly targeted.
The thing is I'm loading swf files into the screen. (I might add, this is something that macromedia encorage) There has to be a way of monitoring the progress. A quick and dirty work around would be to place a loader on the screen but this just seems really clunky and if I do that, it gets tricky to control the screen events for transitions etc. Come on macromedia the clocks ticking.
Your right. You can do this but it just seems wrong. I find it hard to believe that although the screen class inherits all the events of the Loader class it is not possible to do something as simple as a progress bar.
Don't see what you're looking for? Try a search.
|