In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: BitmapFilterEffect&Particles

ステージクリックでパーティクルを置きます。MAX60個。
定番のブラー+スクロールに一工夫して、見た目変化つかないかなー、という営為。
実際の軌跡を別レイヤーに描いといて、網々っぽかったり影っぽい表現になってる?
もともとは衝突判定やろうと思って始めたんだけど脱線したw 変数定義とかぐちゃぐちゃだし いろんな意味でくそコード…orz
高速・軽量化か・・・(遠い目)
/**
 * Copyright es335dotr ( http://wonderfl.net/user/es335dotr )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/hoIO
 */

Sending Code to Compiler Server...
Recompile: partest.as
Recompile: partest.as
partest.as(29): col: 13 Warning: var 'shape1' will be scoped to the default namespace: partest: internal.  It will not be visible outside of this package.
        var shape1:Shape;
            ^
partest.as(30): col: 13 Warning: var 'shape2' will be scoped to the default namespace: partest: internal.  It will not be visible outside of this package.
        var shape2:Shape;
            ^
partest.as(31): col: 13 Warning: var 'tmpBmd' will be scoped to the default namespace: partest: internal.  It will not be visible outside of this package.
        var tmpBmd:BitmapData;
            ^
partest.as(32): col: 13 Warning: var 'bmp' will be scoped to the default namespace: partest: internal.  It will not be visible outside of this package.
        var bmp:Bitmap;
            ^
partest.as(33): col: 13 Warning: var 'emptymatrix' will be scoped to the default namespace: partest: internal.  It will not be visible outside of this package.
        var emptymatrix: Matrix = new Matrix();
            ^
partest.as(36): col: 13 Warning: var 'flg' will be scoped to the default namespace: partest: internal.  It will not be visible outside of this package.
        var flg:Boolean;
            ^
partest.as(40): col: 29 Warning: The constant was not initialized.
        static public const _RADIANS:Number;// = _DEGREES * (_PI / 180);
                            ^
partest.as(51): col: 27 Warning: variable 'stageWidth' has no type declaration.
        static public var stageWidth;
                          ^
partest.as(52): col: 27 Warning: variable 'stageHeight' has no type declaration.
        static public var stageHeight;
                          ^
partest.as(53): col: 27 Warning: variable 'mouse_X' has no type declaration.
        static public var mouse_X;
                          ^
partest.as(54): col: 27 Warning: variable 'mouse_Y' has no type declaration.
        static public var mouse_Y;
                          ^
partest.as(55): col: 13 Warning: var 'centerX' will be scoped to the default namespace: partest: internal.  It will not be visible outside of this package.
        var centerX:uint;
            ^
partest.as(56): col: 13 Warning: var 'centerY' will be scoped to the default namespace: partest: internal.  It will not be visible outside of this package.
        var centerY:uint;
            ^
partest.as(58): col: 13 Warning: var 'count' will be scoped to the default namespace: partest: internal.  It will not be visible outside of this package.
        var count:uint=0;
            ^
partest.as(67): col: 38 Warning: return value for function 'init' has no type declaration.
        private function init(e:Event) {
                                     ^
partest.as(81): col: 80 Warning: return value for function 'anonymous' has no type declaration.
            stage.addEventListener(MouseEvent.MOUSE_DOWN, function(e:MouseEvent) { flg = true; } );
                                                                               ^
partest.as(82): col: 78 Warning: return value for function 'anonymous' has no type declaration.
            stage.addEventListener(MouseEvent.MOUSE_UP, function(e:MouseEvent) { flg = false; particles[particles.length - 1].cut = true; } );
                                                                             ^
partest.as(93): col: 44 Warning: return value for function 'mouseclickHandlr' has no type declaration.
        private function mouseclickHandlr(e) {
                                           ^
partest.as(93): col: 43 Warning: parameter 'e' has no type declaration.
        private function mouseclickHandlr(e) {
                                          ^
partest.as(100): col: 43 Warning: parameter 'e' has no type declaration.
        private function enterframeHandlr(e)
                                          ^
partest.as(101): col: 7 Warning: return value for function 'enterframeHandlr' has no type declaration.
        {
      ^
partest.as(104): col: 17 Warning: variable 'flg_2' has no type declaration.
            var flg_2 = 0;
                ^
partest.as(110): col: 22 Warning: variable 'i' has no type declaration.
            for (var i = 0; i < particles.length; i++) {
                     ^
partest.as(111): col: 21 Warning: variable 'tmpObj' has no type declaration.
                var tmpObj = particles[i];
                    ^
partest.as(112): col: 21 Warning: variable 'velo' has no type declaration.
                var velo=Math.abs(particles[i].tx) * Math.abs(particles[i].ty);
                    ^
partest.as(161): col: 21 Warning: variable 'newX' has no type declaration.
                var newX = mouse_X + (Math.random() * 100-50) * flg_2;
                    ^
partest.as(162): col: 21 Warning: variable 'newY' has no type declaration.
                var newY = mouse_Y + (Math.random() * 100-50) * flg_2;
                    ^
partest.as(185): col: 18 Warning: function 'getLineLength' will be scoped to the default namespace: partest: internal.  It will not be visible outside of this package.
        function getLineLength(p:Rectangle):Number
                 ^
partest.as(187): col: 17 Warning: variable 'vx' has no type declaration.
            var vx=p.x-p.width;
                ^
partest.as(188): col: 17 Warning: variable 'vy' has no type declaration.
            var vy=p.y-p.height;
                ^
partest.as(189): col: 17 Warning: variable 'vl' has no type declaration.
            var vl=Math.sqrt(Math.pow(vx,2)+Math.pow(vy,2));
                ^
partest.as(215): col: 13 Warning: var 'col' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var col:uint = 0;
            ^
partest.as(216): col: 13 Warning: var 'ox' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var ox:Number=0;
            ^
partest.as(217): col: 13 Warning: var 'oy' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var oy:Number=0;
            ^
partest.as(218): col: 13 Warning: var 'ol' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var ol:Number=0;
            ^
partest.as(219): col: 13 Warning: var 'xx' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var xx:Number=0;
            ^
partest.as(220): col: 13 Warning: var 'yy' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var yy:Number=0;
            ^
partest.as(221): col: 13 Warning: var '_x' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var _x:Number=0;
            ^
partest.as(222): col: 13 Warning: var '_y' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var _y:Number=0;
            ^
partest.as(223): col: 13 Warning: var 'tx' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var tx:Number=0;
            ^
partest.as(224): col: 13 Warning: var 'ty' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var ty:Number=0;
            ^
partest.as(225): col: 13 Warning: var 'dx' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var dx:Number=0;
            ^
partest.as(226): col: 13 Warning: var 'dy' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var dy:Number=0;
            ^
partest.as(227): col: 13 Warning: var 'dl' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var dl:Number=0;
            ^
partest.as(228): col: 13 Warning: var 'cnt' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var cnt:Number=0;
            ^
partest.as(229): col: 13 Warning: var 'obj' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
        var obj:particle;
            ^
partest.as(230): col: 20 Warning: var 'cut' will be scoped to the default namespace: particle: internal.  It will not be visible outside of this package.
               var cut:Boolean = false;
                   ^
partest.as(243): col: 17 Warning: variable 'tmptime' has no type declaration.
            var tmptime = new Date();
                ^
partest.as(252): col: 50 Warning: return value for function 'enterframeHandlr' has no type declaration.
        private function enterframeHandlr(e:Event) {
                                                 ^
partest.as(256): col: 37 Warning: return value for function 'calcVector' has no type declaration.
        private function calcVector() {
                                    ^
partest.as(289): col: 32 Warning: parameter 'o' has no type declaration.
        public function setObj(o):void {
                               ^
Compile Complete (8567 bytes)
Reloading swf
Auto Saved
Taking Capture...
Sending Capture to Server...
Capture Saved