A television static effect with sound using Flash 8 BitmapData Class and the Noise filter. It also uses EventDispatcher and listeners to trigger a “volumeMax” event and a “kill” event to enable you to add further actions upon each event firing.

Simply create a mask of any shape to define the area you want to become animated static and use code such as this :

tv = this.attachMovie("mc_tvStatic", "mc_tvStatic", this.getNextHighestDepth(),{_x:417, _y:90, seed:1000, low:0, high:255, channelOptions:1|2|4, greyScale:true, sound:"sfx_static", alphaInc:3, volInc:5});

This will pass in variables for different noise effects (eg. greyScale=false will produce coloured noise), positioning, a sound effect linked from the library and some default alpha and volume increment/decrement values to fading the noise in/out.

Then to start, call :

tv.startFadeIn(2,20); //fade in with alpha of 2 and volume of 20 each onEnterFrame

And to stop, call :

tv.startFadeOut(20,50); //fade out with alpha of 20 and volume of 50 each onEnterFrame.
by
by
by
by
by
by