View Full Version : Automaticly rotate streaming music
djbflash
02-17-2001, 04:34 PM
Hi, I have a streaming song start when people visit my page is it possibe to automaticly rotate diffrent streaming songs?.
Dean
If you want to load a random swf name your swf's sound1 sound2 sound3 and so on. Then use;
set variable: "ran" = Random (3)+1
Load movie ("sound"&ran&".swf",1)
mgb
djbflash
02-20-2001, 08:54 AM
Originally posted by mgb
If you want to load a random swf name your swf's sound1 sound2 sound3 and so on. Then use;
set variable: "ran" = Random (3)+1
Load movie ("sound"&ran&".swf",1)
mgb
Thanks for replying,
Im not sure where Im soposed to put that action in the swfs?, (sound1, 2, 3,) because my sites main page is an html page not a swf.
Dean.
If you just load the page with a small swf in it you can then use that swf to load the sounds as indicated. Make a small swf (I think the smallest you can get is 18 x 18)
Make it the same colour as the background page colour and reduce it further. Put the code in this swf and it will load your sounds.
~mgb
djbflash
02-22-2001, 10:20 AM
Hi, this is exactly what I have in one frame of my rotator.swf file
set variable: "ran" = Random (3)+1
Load movie ("sound"&ran&".swf",1)
I have all the sound.swf files sound1.swf,2,& 3 in the same directory as the rotator.swf file but it doent seem to be playing any of them, Im using dreamweaver3 to insert the rotator.swf file I make a layer and instert.
Dean.
Make your rotoator a few frames long and put a tell target with go to and Play action in the last frame.
Begin tell target (_"level1")
go to and Play (2)
end tell target
Stop
and in the last frame of each loaded swf;
begin tell target ("_level0")
go to and Play(1)
end tell target
Stop
this way level0 will go through the loading process again.
cheers ~ mgb
djbflash
03-03-2001, 09:00 PM
Originally posted by mgb
Make your rotoator a few frames long and put a tell target with go to and Play action in the last frame.
Begin tell target (_"level1")
go to and Play (2)
end tell target
Stop
and in the last frame of each loaded swf;
begin tell target ("_level0")
go to and Play(1)
end tell target
Stop
this way level0 will go through the loading process again.
cheers ~ mgb
Hi, sorry for the late reply, I have made my rotator.swf 5 frames long in the first frame I have:
set variable: "ran" = Random (3)+1
Load movie ("sound"&ran&".swf",1)
in last frame I have :
Begin tell target ("_level1") wont work with(_"level1") (:) you might of done a typo there.)
go to and Play (2)
end tell target
Stop
and in the last frame of each movie to be loaded I have:
begin tell target ("_level0")
go to and Play(1)
end tell target
Stop
I have them all in the same directory, when I double click the rotator.swf nothing happends, still doesnt seem to be opening or playing the movies.
Dean.
Try putting the load movie action in the second frame.
and make sure you have your files named sound1.swf, sound2.swf etc.
Don't hit the spacebar between 'sound' and the number or it might cause an error...
mgb
djbflash
03-03-2001, 09:57 PM
I put the acton:
Load movie ("sound"&ran&".swf",1)
in the second frame of my rotator.swf , it still doesnt open them up.
Dean.
Have you checked the ' = ' sign for the load movie action? It must be an expression.
If you are using Flash 4 you can send me the file. You'll get my email address on my home page....
mgb
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.