package com.widged.particles {
  
  import com.widged.particles.CustomEvent;
  import com.widged.particles.Slidebar;
  import com.widged.vegeParticles.VegeParticles;
  
  import flash.display.Graphics;
  import flash.display.MovieClip;
  import flash.display.Sprite;
  import flash.events.Event;
  import flash.events.EventDispatcher;
  import flash.events.KeyboardEvent;
  import flash.events.MouseEvent;
  import flash.events.TimerEvent;
  import flash.utils.*;

  [SWF("428", height="428", backgroundColor="#FFFFFF", frameRate="20")]
  public class Interactive extends Sprite {
    
    private var particles:VegeParticles;
    private const PARTICLES_W:Number = 400;
    
    private var anim:Sprite;
    
    public function Interactive() {

      anim = new Sprite();
      var g:Graphics = anim.graphics;
      this.addChild(anim);

      particles = new VegeParticles(PARTICLES_W)
      particles.x = 0
      particles.y = 0
      anim.addChild(particles)

      playAnim()
    }
    

     private function playAnim():void {
      particles.animPlay();
    }

     private function pauseAnim():void {
      particles.animPause()
    }

     private function stopAnim():void {
      particles.animStop()
    }



        
    
  }
}