Jump to content
Search Community

delay / overwrite issue

isaacalves test
Moderator Tag

Recommended Posts

how can i cancel an existing delayed tween when i create another tween that tweens the same object´s propoerty?

 

for example, i have:

 

private function showPopUp():void
{
	var inpopup:TweenLite = new TweenLite(popup, 0.25, {alpha: 1, ease: Linear.easeIn,
		onComplete:function()
		{
			var outpopup:TweenLite = new TweenLite(popup, 0.25, {alpha: 0, delay: 3.5, ease: Linear.easeIn});
		}
	});			
}

 

that function is called in different situations, to show a popup with some text.

 

i´ll try to say it simple :

 

let´s say the popup mc pops in and before it pops out, i tell him to pop in again, let´s say, after 3 seconds.

 

then the popup mc pops out within 0.5 seconds, instead of 3.5.

shouldn´t it overwrite "itself" ? i get confused.

 

its "overwrite" property defaults to true, right?

i´ve tried already in different manners, for example, by only creating a new tween instead of declaring it into a variable.

 

obs: it works well in my computer but not in the server !!!

help!

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