joeri
10-13-2002, 01:18 PM
Hi out there!
I want to ask something about the following script :
++++++++++++++++++++++++++++++++++++++++++++++
bladeSound = new Sound();
bladeSound.loadSound("music/blade rave.mp3",false);
total = bladeSound.getBytesTotal();
_root.onEnterFrame = function(){
loaded = bladeSound.getBytesLoaded();
percent = Math.round((loaded/total) * 100);
//trace(percent);
}
//trace(percent);
if(percent == 100){
bladeSound.start();}
++++++++++++++++++++++++++++++++++++++++++++++
1) When the swf loads the mp3 the dynamic textfield shows 'Infinity' ?? I rounded it........??
2)When I trace the percent after the onEnterFrame block it prints
level0.percent....???
percent should be known after the block?? Isnt it?
thanx, Joeri
I want to ask something about the following script :
++++++++++++++++++++++++++++++++++++++++++++++
bladeSound = new Sound();
bladeSound.loadSound("music/blade rave.mp3",false);
total = bladeSound.getBytesTotal();
_root.onEnterFrame = function(){
loaded = bladeSound.getBytesLoaded();
percent = Math.round((loaded/total) * 100);
//trace(percent);
}
//trace(percent);
if(percent == 100){
bladeSound.start();}
++++++++++++++++++++++++++++++++++++++++++++++
1) When the swf loads the mp3 the dynamic textfield shows 'Infinity' ?? I rounded it........??
2)When I trace the percent after the onEnterFrame block it prints
level0.percent....???
percent should be known after the block?? Isnt it?
thanx, Joeri