Jump to content
Search Community

Help making a simple alpha tween

vdubplate test
Moderator Tag

Recommended Posts

Can someone help me out.

I have a simple tween and I want to add an alpha tween over the coarse of the tween fro 100% to 0% over the coarse of a second.

 

Here is what I have:

TweenMax.to(mask_mc, 1, {x:512, y:0, scaleX:0, delay: 4});

 

I've tried the interactive demo but all I can achieve out of that is the mc moves then faces out real quick at the end. I want to start at 100 and end at 0.

 

Thanks in advance

Link to comment
Share on other sites

You're using AS3, right? It should be as simple as:

 

TweenMax.to(mask_mc, 1, {x:512, y:0, scaleX:0, alpha:0, delay:4}); 

 

Or is mask_mc not the object you want to fade? If it's a mask, then you must turn cacheAsBitmap on for both the mask and your object (and you probably have to do the masking via ActionScript, not the IDE). That has nothing to do with TweenMax - it's just a Flash requirement.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...