|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Well I am trying to Load a external music SWF file and the file loads great but the music doesn't play. I am using this code
-------------------- on (release) { _root.contents.loadMovie("data.swf"); } -------------------- So now I dont know what to do. If you guys have any suggestions on what is the best way to load music the FASTES way to do if possible (Fastes I mean is the Loading time) If you guys know a better way please show me Thank you very much |
|
#2
|
|||
|
|||
|
some could please help I really need this
|
|
#3
|
|||
|
|||
|
hey man. what do you mean by external music .swf? Did you import the sound and drag it on to the layer? or did you use attachSound to attach the sound from the library, or did you load the sound in using the loadSound method?
1. if you have a timeline that is just sound, it should play automatically (it will act like a normal sound timeline) 2. if you used attachSound, you need to tell your sound object to play: mySound = new Sound(); mySound.attachSound("bgmusic"); mySound.start(); 3. if you used the loadSound, you have two options, one is to load the sound into a sound object, and the other is to set streaming to true. The latter way is probably the fastest method, although you can only control the volume and start/stop of the sound. //load sound without streaming mySound = new Sound(); mySound.loadSound("mymp3.mp3",false); mySound.onLoad = function(){ mySound.start(); } //load sound with streaming loadSound("mymp3.mp3",true); with streaming, it will automatically start playing once adequate info has been loaded. cheers, bret |
|
#4
|
|||
|
|||
|
Its not a external mp3 its a external swf file with muisc playing.
|
|
#5
|
|||
|
|||
|
Try it :
on (release) { _root.contents.loadMovie("data.swf",1); } or on (release) { _root.contents.loadMovie("data.swf","1"); } may be first is right ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Loading external music |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|