Draw from Null
Posted On: July 26, 2009
Price: Free!
Flash Player Version: 6
Swishmax Version: Swishmax 2, 2008.08.12
Comments: No comments yet
Price: Free!
Flash Player Version: 6
Swishmax Version: Swishmax 2, 2008.08.12
Comments: No comments yet
Just click and draw with your mouse!

19 downloads
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | function setDep(){ _global.dep = 1.01 + (random(10)/5); } function changeColor(){ tt = new Object(); tt.rb = Math.randomRange(0,255); tt.gb = Math.randomRange(0,255); tt.bb = Math.randomRange(0,255); tt.ga = Math.randomRange(0,100); tt.ba = Math.randomRange(0,100); } onFrame (1) { this.onMouseDown = function(){ _parent.click._visible = false; this.clear(); s = 1; this.oldx = _xmouse; this.oldy = _ymouse; setDep(); }; this.onMouseUp = function(){ s = 0; }; this.onEnterFrame = function(){ for (var a in t) { for (var b in tt){ if (a == b){ t[a] += (tt[b]-t[a])/10; t[a] = int(t[a]); break; } } } c.setTransform(t); }; this.onMouseMove = function(){ if (!s){ return; } g++; this.createEmptyMovieClip("mc"+g, g); eval("mc"+g).onEnterFrame = function(){ this._alpha -= 2; if (this._alpha<=0){ removeMovieClip(this); } }; eval("mc"+g).beginFill(0xFFFFFF, 15); eval("mc"+g).lineStyle(0, 0xFFFFFF, 50); eval("mc"+g).moveTo(this.oldx, this.oldy); eval("mc"+g).lineTo(_xmouse, _ymouse); eval("mc"+g).lineStyle(); eval("mc"+g).lineTo(275+(_xmouse-275)/_global.dep, 200+(_ymouse-200)/_global.dep); eval("mc"+g).lineTo(275+(this.oldx-275)/_global.dep, 200+(this.oldy-200)/_global.dep); eval("mc"+g).lineTo(this.oldx, this.oldy); eval("mc"+g).endFill(); this.oldx = _xmouse; this.oldy = _ymouse; updateAfterEvent(); }; this.c = new Color(this); this.t = this.c.getTransform(); setInterval(changeColor, 1000); changeColor(); } |

