1 Reply Latest reply on Jul 11, 2009 10:24 AM by kglad

    TV Static Download Sample

    riceroman3 Level 1

      I can't remember where I came across a Flash download that simulates TV Static.   Does anyone know the source and/or have a reccomendations for other sample downloads?

       

      Thanks,

       

      Mike

        • 1. Re: TV Static Download Sample
          kglad Adobe Community Professional & MVP

          you can use the bitmapdata classes noise method:

           

          function startStaticF() {
              clearInterval(staticI);
              staticI = setInterval(staticF, 40);
          }
          function staticF() {
              //bmp.perlinNoise(glassScreenMC._width/30,glassScreenMC._height/30, 2, Math.floor(Math.random() * 10), false, true, 15, true, null);
              bmp.noise(Math.floor(1000*Math.random()),0,255,1 | 2 | 4 | 8,grayscaleBool);
              updateAfterEvent();
          }