function funcB() {
trace(arguments);
}
function funcA() {
funcB.apply(null, arguments);
}
Function.apply()
http://livedocs.adobe.com/flash/8/main/00002235.html
regards,
Muzak
----- Original Message -----
From: "Swapnil Dubey" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, July 18, 2007 12:55 PM
Subject: [Flashcoders] Variable argument list
Hi all,
I want to implement an function funcA that takes a variable list of
arguments, and passes on that list to another function funcB, just like
setInterval does.
funcA = function(){
// Here I can access the arguments through the arguments array.
// But how do I pass it on the arguments to funcB that I am calling
below.
// I mean I cannot write funcB(arguments[0], arguments[1],
arguments[n]....);
// as the last index n will be specified at runtime.
funcB();
}
_______________________________________________
[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