Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: HomeFlash ForumFlash TutorialsFlash Video TutorialsWeb Streaming ForumAdobe FlashPodcast

Re: import gradient alpha

Cow Forums : Adobe Flash
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Re: import gradient alpha
by Ross Gerbasi on Feb 27, 2008 at 4:24:16 pm

I dont think i have ever reallyhad this problem but, you could also just do the gradient mask in flash? as of flash 8 gradient masks have been supported. You need to do something like this.

make a movieclip to be masked (maskee)
make a movieclip that is the mask (theMask)

in theMask make your shape and fill it with a gradient that has 0 alpha on one end and 100% on the other, or whatever combination you need,

then you need to do the rest in code, this is a AS3 example

maskee.cacheAsBitmap = true;
theMask.cacheAsBitmap = true;
maskee.mask = theMask;

AS2 would be the same except it would be
maskee.setMask() instead of maskee.mask


yay!
-ross



Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:


Related Tags:
DI



Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]