package { import flash.display.Sprite; import net.eidiot.particles.SnowSystem; // Swf info. [SWF(width = 640, height = 480, backgroundColor = 0xFFFFFF)] // Generate a pre-loader frame. [Frame(factoryClass="net.eidiot.app.Preloader")] /** * A demo for using SnowSystem. * * @author eidiot ( http://eidiot.net ) */ public class PicF1 extends Sprite { // The class for the image embeded. [Embed(source="../assets/f1.jpg")] private var picClass:Class; public function PicF1() { // Add the image. addChild(new picClass()); // The simplest way to use SnowSystem. addChild(new SnowSystem(640, 480)); } } }