LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-17-2008, 12:33 AM
Tamz Tamz is offline
Registered User
 
Join Date: Oct 2007
Posts: 27
Rep Power: 0
Tamz is on a distinguished road
Games onMotionFinished

Hey yall

I need to access the tween object that's been called iniside a function, outside of that function. (hmm?)

eg
Code:
function counterTween(x){
	easeType = mx.transitions.easing.Regular.easeInOut;
	begin = 0;
	end = 700;
	time = 3;
	cTween = new mx.transitions.Tween(x,"_x",easeType,begin,end,time,true);
}

counterTween(myMc);

cTween.onMotionFinished = function{
	counterTween(myMc);	
}

What I'm trying to do here is loop the counterTween so that as soon as CTween is complete, cTween.onMotionFinished function is called - every time ...is this possible? Or is there a better way?
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump




All times are GMT. The time now is 07:06 AM.