Or u can use a setTimeout in Flash 8.
example:
function aaa():Void
{
trace( "aaa called!");
}
setTimeout( this , "aaa" , 1000); // 1000 milli = 1sec
or use setInterval :
var myInterval;
function aaa()
{
trace( "aaa called!" )
clearInterval( myInterval );
}
myInterval = setInterval( this , "aaa" , 1000 );
hugs
MauricioMassaia
On 3/23/07, Pedro Taranto <[EMAIL PROTECTED]> wrote:
you should use setInterval, see it in documentation
--Pedro Taranto
Gustavo Duenas escreveu:
> Hi, I'm trying to launch an event using a timer so far the code for
> trace something is this:
>
> var now = new Date();
>
> var seconds:Number = now.getSeconds();
>
> trace(seconds);
>
> var newSeconds: Number = seconds+10;
>
> if ( seconds == newSeconds){
> trace("plus 10");
> }
>
> var seconds:Number = seconds;
>
>
>
> the problem is that this ones doesn't trace" plus 10", instead just
> traces the var seconds.
>
> Do you know what is wrong here?
>
>
> Regards.
>
>
>
> Gustavo Duenas
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com