:nerd:

I spent some time mucking with a feature of Swiftmp3 today, and explored the whole "audio spectrum" ability that comes with it. When using it to convert mp3 files to swf files, it will also spit out variables (s0 up through s17) that track the levels (is that even the right term?). So… all you have to do is wire up some animations to check those variables, and it’ll adjust accordingly as the song plays.

Pretty nifty.

I had a lot of the same code pasted on all 18 movies, and each time I made a change/tweak… I had to go through and update each damn one. Prime moment for making a function, and pointing to it. I’ve still not yet mastered functions, but I can typically get them to do what I want with a little tinkering.

And so – I had a function that I named "jive" for some reason. Just because I figured it would be funny. Next thing I know, I’m passing it two parameters, and I end up with this:

function jive (ass, turkey) {
     if (Number(ass) > 0) {
          turkey.gotoAndStop(Number(ass) + 1)
     } else {
          turkey.gotoAndStop(1);
     }
}


heeeehhhhhhh.

At any rate, here’s what I came up with. A nice, generic setup. Hopefully, I’ll get some time to play around more and make some variations. Ah, the loading is a bit fucked up. But hey, I’ve been drinking Maker’s Mark since I got home, so deal with it. Hopefully, folks on dialup aren’t suffering too much with this thing.

This Post Has 0 Comments

Leave A Reply