random timing and color actionscripts
Here are the actionscripts used in the example swf. First the random timing script:
//random playstop();var delay = (Math.floor((Math.random())*10))*30000; setTimeout(my_delayedFunction, delay); function my_delayedFunction () { play(); }
Random colour script:
//random color movieclip onClipEvent(load){ r=Math.floor(Math.random()*255) g=Math.floor(Math.random()*255) b=Math.floor(Math.random()*255) colourobj=new Color(this) colourobj.setRGB(r<<16|g<<8|b) }






Leave a Comment