Search  
Search Options

PRELOADER ISSUES

HomeForumsFlash DiscussionPreloader issues
35173 Xtremefaith
35 posts

Currently I have my preloader calculating bytesLoaded & bytesTotal of the root and of _level99 because level 99 is loading a movie, now when I traces the progress it looks perfect and when bytesLoaded bytesTotal the movie plays as it should.
The Problem
I want to do something to the movie once it loads, (right now it finishes loading before the rest of the swf and then it starts playing). so I made a statement like so: if(_root._level99.getBytesLoaded() _root._level99.getBytesTotal()){ //perform action } but when I insert that it makes my current preloader go NaN. When I trace the percentage.text now it just says NaN, if I cut out that little line of code than I get percentage.text to count again like it’s suppose to. Anyone know why that is and how I can fix it. Thanks in advance for any help you can provide

Posted 2 months ago
29040 URanimEnigma
683 posts
Exclusive author Author was featured Sold between 1 000 and 5 000 dollars

You might be better off posting some code so it can be looked at by other users who might be able to help.

Posted 2 months ago
Default-profile beautyMath
3 posts

if(_root._level99.getBytesLoaded() _root._level99.getBytesTotal()){ ... ”<” or ”>” misspelled or what?

Posted 2 months ago
Default-profile beautyMath
3 posts

just rtfm to the debugging, then you can set a variables to var v1 = _root._level99.getBytesTotal() and v2 = ...getBytesLoaded(), and then to view the values of v1 and v2. Maybe “_level99” is buggy. Who knows? anyway by debugging you will see the real reasons. You can use try..catch mechanics to know better the download status. The third reason can be of security, if another host.

Posted 2 months ago