Created
October 20, 2011 16:14
-
-
Save NicolaiSattler/1301561 to your computer and use it in GitHub Desktop.
Main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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