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
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);
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
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
@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
: [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
.
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
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
8 matches
Mail list logo