| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Music247
Join Date: Mar 2006
Location: Los Angeles
Posts: 632
|
here's mine
Code:
import flash.display.BitmapData;
import flash.filters.BlurFilter;
import flash.geom.Point;
var bmap = new BitmapData(550,400, false, 0x000000);
var filter:BlurFilter = new BlurFilter(2, 2, 1);
bmap.draw(source);
_root.attachBitmap(bmap, 1);
_root.onMouseMove = function() {
bmap.setPixel(_xmouse, _ymouse, 0xffffff);
bmap.setPixel(_xmouse-1, _ymouse, 0xffffff);
bmap.setPixel(_xmouse+1, _ymouse, 0xffffff);
bmap.setPixel(_xmouse, _ymouse-1, 0xffffff);
bmap.setPixel(_xmouse, _ymouse+2, 0xffffff);
}
function blurMe() {
bmap.applyFilter(bmap, bmap.rectangle, new Point(0, 0), filter);
}
setInterval(blurMe, 50);
_root.onMouseDown = function() {
for(var i=0; i<10000; i++) bmap.setPixel(random(550), random(400), 0xffffff);
}
|
|
|
|
|
|
#2 |
|
heh
Join Date: Jul 2004
Location: Long Beach, CA
Posts: 62
|
The most annoying thing I ever produced:
(set to 99 fps for SUPER annoyance!) Code:
import flash.display.*;
import flash.filters.*;
import flash.geom.*;
var bmp:BitmapData = new BitmapData(550, 400, false, 0xFFFFFF);
_root.attachBitmap(bmp, 0);
function init(){
_root.onEnterFrame = function(){
var rm:Number = Math.random();
var gm:Number = Math.random();
var mm:Number = Math.random();
var am:Number = Math.random();
var ro:Number = random(255);
var go:Number = random(255);
var bo:Number = random(255);
var ao:Number = random(255);
bmp.colorTransform(bmp.rectangle, new ColorTransform(rm, gm, bm, am, ro, go, bo, ao));
}
}
_root.onMouseDown = function(){
delete _root.onEnterFrame;
}
_root.onMouseUp = function(){
init();
}
init();
|
|
|
|
|
|
|
|
|
#3 |
|
Music247
Join Date: Mar 2006
Location: Los Angeles
Posts: 632
|
ahhhhh!! HAHA LOL. I almost had a seizure man! that was awesome!
|
|
|
|
|
|
#4 |
|
heh
Join Date: Jul 2004
Location: Long Beach, CA
Posts: 62
|
Yeah, it's strangely hypnotic, no?
![]() |
|
|
|
|
|
#5 |
|
heh
Join Date: Jul 2004
Location: Long Beach, CA
Posts: 62
|
Wanted to create something that was actually usable, so heres something similar to my previous annoyance, but usable for realistic TV snow:
Code:
import flash.display.BitmapData;
var bmp:BitmapData = new BitmapData(550, 400, false, 0xFFFFFF);
_root.attachBitmap(bmp, 0);
_root.onEnterFrame = function() {
bmp.noise(random(256), 0, 255, 0, true);
};
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cool textline effects; how did they do it..? | xipe | Animation and Effects | 41 | 09-24-2007 09:27 AM |
| Cool Effects WITHOUT ActionScript | vcosmin | ActionScript 1.0 (and below) | 0 | 03-12-2004 10:50 AM |
| cool text effects | captainswf | Animation and Effects | 2 | 02-20-2004 02:30 PM |
| Where can I find some fla's with some cool zooming effects? | dtrace | Other Flash General Questions | 2 | 02-03-2004 11:01 AM |
| Cool 3D effects and 3D objects!!! How did they do that?? | Wimpyburger | Animation and Effects | 13 | 07-04-2002 10:34 AM |