| Ultrashock Forums
• preloading sound. |
|||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
|
|
|||||||||||||||||||||||||
![]() |
Ultrashock Member Comments:
|
2006-11-22
#2 |
||
|
Last edited by nonak : 2006-11-22 at 17:13.
|
|
|
|
2006-11-23
#3 |
||
|
Hey mate, thanks for your answer. I need this sound to be my background music for the website, so its not an object event (well it is an event actually if you think of it as playing when the _root.onLoad=function() - so when the root loads). I am a bit confused, can you please point me in the right direction about the streaming suggestion? a bit of code would be much appreciated. So actually, all I need is that I load this sound file from outside my main swf , even if that means inserting it into another separate swf . by doing so, it will not modify the size of my main swf. |
|
|
2006-11-23
#4 |
||
|
this topic is beaten to death, u could search a bit in the forums, anyway hope that helps: http://www.kennybellew.com/tutorial/drag.htm |
|
|
2006-11-23
#5 |
||
|
as simple as possible: ActionScript Code:
true/false toggles stream/download mode |
|
17 Creative Assets
|
2006-11-23
#6 |
||
|
The Sound class also has getBytesLoaded() and getBytesTotal() methods, so you can check the load progress easily enough if you don't want to stream the audio. ActionScript Code:
|
|
|
2006-11-23
#7 |
||
|
thanks, Nutrox - flawless like always! |
|
|
|
2006-11-23
#8 |
||
|
thank you BVX, and Splat - you are amazing, that was my next question
|
|
17 Creative Assets
|
2006-11-23
#9 |
||
|
No problem. ![]() There is also the Sound.onLoad event that you can use when the sound has loaded... if you don't need any load progress info. ActionScript Code:
|
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|


8 comments
| 577 views


17 Creative Assets

Linear Mode
you could try streaming the sound in..
if you need it loaded as an event sound , you can load it into a movie clip once the rest of the movie is playing...
just a couple thoughts..