Can a glow filter be applied to a transparent object?
Hi guys, once again...
I have this green rectangle, with the following properties:
targetc.width = 142;
targetc.height = 144;
targetc.x = 273;
targetc.y = 218;
targetc.alpha = 1000;
targetc.antiAliasType = AntiAliasType.ADVANCED;
and I also have the letter C which is glowing and needs to be placed into the rectangle:
function dragC(event:MouseEvent):void {
stage.removeEventListener(Event.ENTER_FRAME, stage_onEnterFrame);
var item:MovieClip=letritaC(event.target);
item.startDrag();
var topPos:uint=this.numChildren-1;
this.setChildIndex(item, topPos);
}
function cRelease(event:MouseEvent):void {
var item:MovieClip=letritaC(event.target);
item.stopDrag();
if (targetc.hitTestPoint(item.x,item.y)) {
item.x=targetc.x;
item.y=targetc.y;
} else {
item.x=273;
item.y=(stage.stageHeight - 100);
}
}
Now, as per the alpha property (if I am right), the rectangle is not visible in the screen due to its transparency... how can I make it glow, seeing only the glow, so I know where I have to put the letter C?
Thanks so much!
