Skip to content

Instantly share code, notes, and snippets.

@NicolaiSattler
Created October 20, 2011 16:14
Show Gist options
  • Select an option

  • Save NicolaiSattler/1301561 to your computer and use it in GitHub Desktop.

Select an option

Save NicolaiSattler/1301561 to your computer and use it in GitHub Desktop.
Main
package
{
import flash.display.Sprite;
[SWF(FrameRate='24',backgroundColor='#000000', width='800',height='600')]
public class screensaver extends Sprite
{
public function screensaver()
{
//stage.scaleMode = "noScale";
var emitor:RandomEmitor= new RandomEmitor();
emitor.setSpawnPosition(Math.random()*stage.stageWidth, Math.random()*stage.stageHeight,Math.random()*100);
addChild(emitor);
var trail:LineTrail = new LineTrail();
addChild(trail);
var bg:Background = new Background();
addChild(bg);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment