hide side navigation
    5 most recent
    Web Services
    Library's
    Component's
    Applications
    Articles
  Flash streaming servers  Flash button as Flex icon  Flex form by email  Hello Remoting with AS3  AS3 Saving data from Flash  AS3 Loading data into Flash  Fire Effect  Contact form  Dragable buttons  Hello World with openamf  Loading helper classes  Upload with Flash 8  Transitions effects  Snapshot with Flash 8  Hello World Remoting AS2  Flash AS2 Remoting Connector  Saving data from Flash  Loading data into Flash  FlashCom & Remoting login  Cell Renderer API  Editing a table using remoting components  Flash MX2004 web service classes  Browsing a catalog  amfphp Documentation  Hello World Remoting  Online Store with AMFPHP  Flash clients for Web Services  Web Service Walk Though with NuSoap  Popup windows in flash with javascript  Installing Apache/PHP  MoreOver News Feeds  Load Edit Save Text Files via CGI  Save Movie Clip Postion via PHP and MySQL
Current Page (1) Next Page >>  View Article Example >> 1 | 2

1.First step is to make gradient source movie clip that make fire color and shape :

Use createCustomGradientMovieClip(..) function from MovieEx class to create custom gradient Movie Clip and pass drawFunc parameter which is a pointer to function which make a movie clip egg shape.

  //create gradient movie that form the fire color
  
mcEx.createCustomGradientMovieClip(mcFire,"fireGradientSource",drawFunc,9,colors,alphas,ratios,
  
"pad","LinearRGB",0,new Point(0,0),null,width,height,90); 

2.Second step need to create flame granularity texture.

Create perlinNoiseBitmap by using perlinNoise(...) function. Code that makes flame granularity in FireClass:


//creation of perlin noise bitmap for flame granularity
classObject.perlinNoiseBitmap.perlinNoise(classObject.sampleSize/2,classObject.sampleSize,3,
classObject.rnd,false,true,1,true,classObject.noiseOffsets);

 

Current Page (1) Next Page >> 1 | 2