Hello,
I have this tutorial code from AS3 Cookbook, fog like effect on Bitmap data
Code:
import flash.display.Sprite;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.events.Event;
import flash.geom.Point;
var offset:int=0;
var bitmap:BitmapData = new BitmapData(330, 100,true,0x0);
var image:Bitmap = new Bitmap(bitmap);
addChild(image);
image.x=0;
image.y=190;
addEventListener(Event.ENTER_FRAME, onEnter);
function onEnter(event:Event):void {
offset++;
var point:Point = new Point(0, offset);
bitmap.perlinNoise(150, 100, 5, 500, false, true,
8, true, [point, point]);
}
and interested in blending it on some background.It needs to be on the bottom of movie clip, but without that bitmaps border showing around the noise effect..Threshold? Gradient?How is that achieved?
Heres fla.
i'm not clear on what you want to achieve... do you want a gradient mask so it appears to gradually fade across the y axis?
Thats right! I did some masking with setMask but it didnt do..Always geting that top of bitmaps border visible. I know thats either with treshold of bitmap, or some gradient masking, but just cant get that bitmap transparency right..
Anyway You got my point, so, HOW?
Thanx in advance!
Last edited by duchman; 11-20-2010 at 06:46 AM.
Reason: Better explanation
Oh thanx my friend, its so simple, (and thus perfect) meanwhile I actually did the code but it looks more like Ben Hur scenario..
3months of beginers as3 course is still nothing..
Yes, this is it,
THANX for Tut, and May The Code Be With You!