File: loops.swf-(9.96 MB, 1280x720, Loop)
[_] Question inside Anonymous 08/09/17(Wed)12:56:00 No.3270959
How would you make a flash like this where a new song plays when you click the screen/flash?
I've been tinkering around with different action script stuff but I'm greener than the summer
grass when it comes to adobe flash.
Just looking for a simple way to do this
flash opens>plays song>click flash for new song but keep the same video playing with no
interruption
>> [_] dedo !drZ3h7esek 08/09/17(Wed)13:27:56 No.3270960
>>3270959
put the video inside a movie clip in the first frame
create an invisible square covering the whole stage.
convert the square also into a movie clip
call it MC_1 (or whatever you want)
now put your songs into a library and there should be a AS linkage (right next to Name) or right
click on the song in the library, hit properties, ActionScript tab and check "Export for
ActionScript" and in the class write "song1" (or whatever you want)
do the same for each song but change the number so it's not the same
now for some coding
//play music
var channel1:SoundChannel;
var channel2:SoundChannel;
var channel3:SoundChannel; // and so on for every song you have
var music1:song1 = new song1();
var music1:song2 = new song2();
var music1:song3 = new song3(); // and so on for every song you have
channel1 = music1.play(0, 99*99^99999); //this starts the first song; 0 means start from the
beginning in milliseconds, the other number means how many times it plays (since I didn't find
anything that resembles infinity in AS)
cont
>> [_] Anonymous 08/09/17(Wed)13:30:03 No.3270961
http://swfchan.org/10164/
>> [_] dedo !drZ3h7esek 08/09/17(Wed)13:34:56 No.3270962
>>3270960
well scratch this, >>3270961 is superior
I tried to go for one frame (but I didn't test that and I thought I could figure it out) but it
appears you need a frame for each song
>> [_] Anonymous 08/09/17(Wed)13:37:51 No.3270963
>>3270962
>>3270961
>>3270960
Cheers lads you've been a huge help!