Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Community Boards > Just for Kicks Challenges

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-02-2006, 01:15 AM   #1
colfaxrev
Music247
 
colfaxrev's Avatar
 
Join Date: Mar 2006
Location: Los Angeles
Posts: 632
Default cool BitmapClass effects.

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);
}
try to keep it within 30 lines of code
colfaxrev is offline   Reply With Quote
Old 08-02-2006, 06:07 PM   #2
timothyph
heh
 
Join Date: Jul 2004
Location: Long Beach, CA
Posts: 62
Default

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();
timothyph is offline   Reply With Quote
Old 08-02-2006, 06:57 PM   #3
colfaxrev
Music247
 
colfaxrev's Avatar
 
Join Date: Mar 2006
Location: Los Angeles
Posts: 632
Default !!!

ahhhhh!! HAHA LOL. I almost had a seizure man! that was awesome!
colfaxrev is offline   Reply With Quote
Old 08-02-2006, 07:01 PM   #4
timothyph
heh
 
Join Date: Jul 2004
Location: Long Beach, CA
Posts: 62
Default

Yeah, it's strangely hypnotic, no?
timothyph is offline   Reply With Quote
Old 08-02-2006, 10:48 PM   #5
timothyph
heh
 
Join Date: Jul 2004
Location: Long Beach, CA
Posts: 62
Default

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);
};
timothyph is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 04:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.