Home
Basics
Flash Games
Design Patterns
Animations & Effects
Back
Flash AS3 & OOP
Tutorials/Sample

Simple Fountain :- Creating random color fountain particles
Category : AS3.0 Sample Author : Raina       level: Intermediate

Download source code :

 

PerlinNoise :- Creating clouds using PerlinNoise()
Category : AS3.0 Sample Author : Ankita Acharya      level: Beginner

Download source code :

Code Explanation:
bitmap.perlinNoise(200,100,5,1,true,true,12,false);
//bitmap.perlinNoise(baseX,baseY,octaves,seed,stitch,fractal,channel, // grayscale );
// baseX and baseY defines the size of pattern
//octaves determines iterations of noise
// seed determines number to give you different pattern each time
//fractal for smoothing edges if set to true
//channel can be red,green,blue and aplha or combination (1,2,4,1n 8 etc)
// greyscale if set to true gives grayscale only
Change the values to get new effects.