AS3 :: Gradient Mask

Posted: June 16, 2010 in AS3 Stock
Tags: , , ,

Gradient Mask in AS3 หรือ cacheAsBitmap
โคตตามนี้
mc1 = คือวัตถุที่จะถูก mask
mc2 =  วัตถุที่จะMask

mc2.cacheAsBitmap = true
mc1.cacheAsBitmap = true;
mc1.mask = mc2;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s