Sign in to follow this  
vanwoods

Start mc invisible

Recommended Posts

Hi all,

 

I'm trying to figure this out:

I'm want an mc to show up later in the timeline but it's already visible when my movie starts playing. Is there a way to make the mc "sint" invisible when the movie starts and then let it fade in later after the first 2 mc are finished?

 


var timeline:TimelineLite = new TimelineLite();
timeline.append(new TweenLite(moon, 2, {y:"145"}));
timeline.append(new TweenLite(textField, 3, {typewriter:"Hij komt..."}));
timeline.append(new TweenLite(sint, 2, {y:"0", alpha: 0 }));

 

Greetings vanWoods

Share this post


Link to post
Share on other sites

I'm not sure I understand your question - judging by your code, it looks like you're trying to fade it out instead of in. Is that right? You can certainly do something like this:

 

sint.visible = false;
sint.alpha = 0;
var timeline:TimelineLite = new TimelineLite();
timeline.append(new TweenLite(moon, 2, {y:"145"}));
timeline.append(new TweenLite(textField, 3, {typewriter:"Hij komt..."}));
timeline.append(new TweenLite(sint, 2, {autoAlpha:1}));

 

(just don't forget to activate the AutoAlphaPlugin once first)

 

Does that answer your question?

Share this post


Link to post
Share on other sites

You're right, it had to fade in.

 

Not every mc has to show up imediately at the beginning of the swf, some of them have to show up later. So that was my question, it works now.

 

thnx greensock!

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.