Steven Sacks | BLITZ wrote:
Here's a great option to accomplish this.

Make a movieclip with a 50x50 black rectangle in it, and delete the
outline.  Put that movieclip behind your video clip, set its _x and _y
to the video _x and _y minus 2 and set its _width and _height to the
video _width and _height plus 4.

If the target size isn't exactly 50x50, that'll still cause it to scale.

Though if Andreas can target Flash Player 8 or above (which I presume is a valid assumption since he's considering using setPixel), applying your technique with a scale9Grid will rectify the situation quite nicely.

It's both pixel-perfect and dog-gone fast in terms of rendering speed
(at least compared with pixel-pushing).

Jim
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to