This content has been marked as final. Show 7 replies
I whipped this up real quick just now and I only have AS2 but your welcome to it.
I hope it's useful, with a Symbol_mc already on stage:
duplicateMovieClip(Symbol_mc, "newSymbol_mc", swapDepths(Symbol_mc));
var my_color:Color = new Color(newSymbol_mc);
newSymbol_mc._x = Symbol_mc._x - (outline / 2); // you can leave this out for a dropshadow
newSymbol_mc._y = Symbol_mc._y - (outline / 2); // you can leave this out for a dropshadow
newSymbol_mc._width = Symbol_mc._width + outline;
newSymbol_mc._height = Symbol_mc._height + outline;
Thanks Craus but that won't create a proper outline except for simple shapes (with complex shapes, the outline width will be uneven in the middle). It's fine for drop shadow though.
Any other ideas?
use the blur filter with an alpha of 1, blurX and blurY the width of your border and a strength of 255.
Hi kglad - in CS3, blur doesn't have alpha and strength properties. It is also more memory instensive than glow.
then use glow and assign its parameters as per the above message.
Thanks kglad, but that was what I was doing originally (see opening question).
I'll assume this means that that was the best way to do things.
there's no blur with strength at max so from your first message it didn't look like you were doing what i suggested.
but yes, i don't know any easier or better or more efficient way to add a dynamic border.