I’ve been workning on this footer for a friend and its all working how its supposed to but I noticed that if I play the swf and listen to music at the same time, the music will jump and skip and lag and stuff like that.
I’m on WinXP so I hit Ctrl+Alt+Del to check how much of the CPU was being used and it was up at 100%, when I closed the flash player, the CPU Usage jumped back down to around 5%
Heres the code:
[AS]onClipEvent (load) {
ch=0;
}
onClipEvent (enterFrame) {
if (Math.ceil(Math.random()*20)==1){//random number, if its “1” then change direction
ch=Math.ceil(Math.random()*3)-2;//sets ch to 1, 0 or -1
}
if(_alpha<-20)ch=1;// if ch gets too low, switch directions
if(_alpha>80)ch=-1;// if ch gets too high, switch directions
_alpha+=ch*10;//add ch * 10 to the _alpha of the movie clip
}[/AS]
What it does is makes the movie clip get more or less Alpha’ed