Jump to content
Search Community

Tween with a mask problems

meylo test
Moderator Tag

Recommended Posts

Hey guys,

Kinda new here so excuse my elementry level AS3 and Greensocks questions. Maybe you can help. I'm having some good luck learning TweenLite/Max and TimeLineLite/Max but unfortunatly I hit a brick wall.

 

What I am wanting to do is introduce a new movieclip to the end of the tweening sequence. The only problem is that the movieclip has an animated mask within. So when the movie loads, the masked sequence starts at the very beginning of the SWF file. I need it to start later, after a few other tweens. I thought about doing a loadMovieclip function at the end of the tween sequence, but that's a bit more complicate for my current AS3 skills

 

Any ideas?

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums.

 

I'm a little confused as your title mentions a mask, but your description doesn't make it sound like the masking aspect is a problem.

 

I think you can solve your problem by adding an onComplete callback to your last tween that will either 

 

1) load a swf

2) play the swf that you have already loaded

 

TweenLite.to(mc, 1, {x:200, delay:0.5, onComplete:completeHandler});

 

function completeHandler():void{

 // load your movie

 // or play your movie

}

Link to comment
Share on other sites

Thanks

 

Hi and welcome to the GreenSock forums.

 

I'm a little confused as your title mentions a mask, but your description doesn't make it sound like the masking aspect is a problem.

 

I think you can solve your problem by adding an onComplete callback to your last tween that will either 

 

1) load a swf

2) play the swf that you have already loaded

 

TweenLite.to(mc, 1, {x:200, delay:0.5, onComplete:completeHandler});

 

function completeHandler():void{

 // load your movie

 // or play your movie

}

Thanks Carl, I got it to work, thanks to you.

Carl, I got it to work, thanks to you.

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...