updated version
more music clips added, code altered a bit to make it a bit more interesting (switches clips less predictably)
coo'
*edit: for some reason swfcabin's shrunk this one, so you can't see the pretty new animations :/ hopefully this'll fix itself in future uploads, cause i didn't do anything different
Thursday, 24 November 2011
Wednesday, 23 November 2011
man that's a lot of live tracing
so i've spent the least [year, it seems] week cutting out lots of photos of all the band playing, stuck 'em in a bowl, mixed the heck out of it, and got a pretty decent sprite of each band member. apart from Tommo, soz mate yours is under construction still. Just wanted to show roughly what it'll look like, which you can see right about here.
The more blessed of you will also notice within a minute or so that some drums are playing. this is possible thanks to my tutor Chris helping me to CoMbInE tHe CoDeS from my video- and sound-focused files. So once i get some lovely backgrounds it'll move AND play music AND change how it does both depending on the time.
:3
Friday, 11 November 2011
current progress
right where i'm up to is i've got the concept down, gonna have the band dancing around in a 'room' of sorts. got some lovely photos to animate. this is what i've done today:
http://www.swfcabin.com/open/1321019830
http://www.swfcabin.com/open/1321019830
Thursday, 20 October 2011
pop
'nother one, this uses the left and right channels to make the Russes' faces pop out of holes. Just what you want.
bug eyes
used the code from my last post to make Russ' face and eyes pop according to the volume in the right and left channels respectively. not a perfect fit but that could be fixed by putting his eyes into two separate movie clips.
In fact I just did that:
i also put the eyes within the movie clip containing the head, so they stay in the right places compared to the face. This meant i had to play the sound channel again within this movie clip, as i don't know if you can access properties defined outside of the object you're writing the code in. help with that?
In fact I just did that:
i also put the eyes within the movie clip containing the head, so they stay in the right places compared to the face. This meant i had to play the sound channel again within this movie clip, as i don't know if you can access properties defined outside of the object you're writing the code in. help with that?
Tuesday, 18 October 2011
useful bits of code
found these in the Sound Programming Video Textbook section of http://www.developphp.com/list_flash_video.php
Define the sound object and the sound channel:
Define the sound object and the sound channel:
var snd:Sound = new Sound();
var req:URLRequest = new URLRequest("mp3_files/raquel my body.mp3");
snd.load(req);
var channel:SoundChannel;
channel = snd.play();
status_txt.text = "The song is now playing";
This could be useful, as it allows streaming of external mp3 files. The dude doing the tutorial says that having whole songs in your .fla file can greatly increase its size, along with that of its .swf file. However my idea depends heavily on the clips syncing up perfectly, and varying loading/buffering times could affect this.
Enter Frame Event:
addEventListener(Event.ENTER_FRAME, onEnterFrame);
function onEnterFrame(event:Event):void {
leftpeak_txt.text = ""+(Math.round(channel.leftPeak * 100));
rightpeak_txt.text = ""+(Math.round(channel.rightPeak * 100));
leftBar.height = (Math.round(channel.leftPeak * 100));
rightBar.height = (Math.round(channel.rightPeak * 100));
}
Initiates a function every time the movie reaches the frame the actionscript is in. In a one-frame clip this will correspond to the framerate.
Sound completion event function and its listener
channel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);
function onPlaybackComplete(event:Event){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
status_txt.text = "The song is over";
}
Can be used to start another sound clip immediately after one finishes.
Subscribe to:
Posts (Atom)









