You can also store references to functions in an array and call them from the 
array.

FuncArr= []
FuncArr[0]=func0
FuncArr[1]=func1

// call func 1

FuncArr[1]()

// call a load of funcs in sequence
Var len=FuncArr.length
For(var i=0; i<len; i++){
FuncArr[i]()
}

M

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Andreas Rønning
> Sent: 09 August 2006 15:11
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Calling functions in sequence
> 
> I might be mistaken, but:
> 
> function doAll(){
>       func1();
>       func2();
>       func3();
>       func4();
> }
> 
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

Reply via email to