Re: [Flashcoders] how can I set the end of a dynamic tween

2009-04-01 Thread Taka Kojima
You need to use an event listener, (or if it's as2 assign an onComplete function). Not to be rude, but you should probably go out and buy a book on ActionScript -- this is a very basic question, and where I can answer this in depth, it really won't do you much good in the long run without a good

RE: [Flashcoders] how can I set the end of a dynamic tween

2009-04-01 Thread Cor
Gustavo, The IF statement is over before your logoCacao is on 645 so it is never triggered. Use a timer like this: Var t:Timer = new Timer(10); t.addEventListener(TimerEvent.TIMER, time_tick); t.start(); function time_tick(e:TimerEvent):void{ if(logoCacao.y=645){ trace(I'm here);

Re: [Flashcoders] how can I set the end of a dynamic tween

2009-04-01 Thread Taka Kojima
To: Flash Coders List Subject: Re: [Flashcoders] how can I set the end of a dynamic tween Actually, probably better off using a TweenEvent, instead of a Timer. stop(); import fl.transitions.Tween; import fl.transitions.easing.*; var ballXTween:Tween = new Tween(logoCacao, y,Bounce.easeInOut

Re: [Flashcoders] how can I set the end of a dynamic tween

2009-04-01 Thread Gustavo Duenas
Well I did, but was a Event.On_Complete, instead of the one you mentioned later, anyway thanks for your help. gus On Apr 1, 2009, at 2:29 PM, Taka Kojima wrote: You need to use an event listener, (or if it's as2 assign an onComplete function). Not to be rude, but you should probably go

Re: [Flashcoders] how can I set the end of a dynamic tween

2009-04-01 Thread Paul Andrews
@chattyfig.figleaf.com Sent: Wednesday, April 01, 2009 7:43 PM Subject: Re: [Flashcoders] how can I set the end of a dynamic tween Actually, probably better off using a TweenEvent, instead of a Timer. stop(); import fl.transitions.Tween; import fl.transitions.easing.*; var ballXTween:Tween = new Tween

Re: [Flashcoders] how can I set the end of a dynamic tween

2009-04-01 Thread Gustavo Duenas
: [Flashcoders] how can I set the end of a dynamic tween Actually, probably better off using a TweenEvent, instead of a Timer. stop(); import fl.transitions.Tween; import fl.transitions.easing.*; var ballXTween:Tween = new Tween(logoCacao, y,Bounce.easeInOut, logoCacao.y, 645, 2, true

Re: [Flashcoders] how can I set the end of a dynamic tween(solved)

2009-04-01 Thread Gustavo Duenas
. Paul - Original Message - From: Taka Kojima t...@gigafied.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 01, 2009 7:43 PM Subject: Re: [Flashcoders] how can I set the end of a dynamic tween Actually, probably better off using a TweenEvent, instead

RE: [Flashcoders] how can I set the end of a dynamic tween

2009-04-01 Thread Cor
april 2009 20:43 To: Flash Coders List Subject: Re: [Flashcoders] how can I set the end of a dynamic tween Actually, probably better off using a TweenEvent, instead of a Timer. stop(); import fl.transitions.Tween; import fl.transitions.easing.*; var ballXTween:Tween = new Tween(logoCacao