<div class='quotetop'>QUOTE(Shurai &#064; Apr 22 2006, 08&#58;29 PM) [snapback]166522[/snapback]</div>
Could be in your code.

Like your if/else statements..

First of all....
What does gotoAndStop() do?
What does gotoAndPlay() do?

I&#39;ll assume that gotoAndPlay() plays the movie :P, and if that is the case, then it will execute without actually loading the bytes since its in the else construct. So thats probably why it will play without finishing loading.
[/b]
ok.. i will explaing you the whole code.

this is the whole code:
Code:
total_bytes = _root.getBytesTotal&#40;&#41;;
loaded_bytes = _root.getBytesLoaded&#40;&#41;;
percent_done = int&#40;&#40;loaded_bytes/total_bytes&#41;*100&#41;;
bar.gotoAndStop&#40;percent_done&#41;;
if &#40;loaded_bytes == total_bytes&#41; {
****gotoAndStop&#40;2&#41;;
} else {
****gotoAndPlay&#40;1&#41;;
}
this:
Code:
total_bytes = _root.getBytesTotal&#40;&#41;;
tells flash to get the total number of bytes of the file

this:
Code:
loaded_bytes = _root.getBytesLoaded&#40;&#41;;
tells flash to get the number of bytes already loaded

this:
Code:
percent_done = int&#40;&#40;loaded_bytes/total_bytes&#41;*100&#41;;
tells flash to write 0.100 % in a text box on the stage.

this:
Code:
bar.gotoAndStop&#40;percent_done&#41;;
tells the load bar to to show frames 1-100 of the loade bar movie clip.

this:
Code:
if &#40;loaded_bytes == total_bytes&#41; {
****gotoAndStop&#40;2&#41;;
}
tells flash to see if total bytes and the number of bytes loaded is equal or not, and if it is, it tells it to go to and stop at frame 2 of scene 1.

this:
Code:
else {
****gotoAndPlay&#40;1&#41;;
}
tells flash to go to and play frame 1 of scene one if the total bytes and bytes loaded isnt same.

so far to me it looks goo dbut if anyone knows better plz tell me how to fix my problem.

i might know what the problem is but i donno one of the code component (if it esists) to fix it..... does anyone know a script component which is the opposite of "=="? i.e == means "equal" so the other one should mean "does not equal".........