Is it possible to pass two (or more) parameters using asfunction? The function I am using with asfunction requires that two variables are passed into it.
If it is possible, how do you format this syntactically? Here is what I've got:
Note that the parameters here that I am trying to pass into the pathLinkTo function using asfunction are "file1.swf" and "1" respectively.
The above code successfully passes the first parameter into the function, but not the second (which comes in as undefined).
What do you think?
If it is possible, how do you format this syntactically? Here is what I've got:
Code:
infobox.htmlText = "<a href='asfunction:pathLinkTo,file1.swf,1'>File 1</a>";
function pathLinkTo(link,ID) {
_global.pgID = ID;
_global.fileLink = link;
}
Note that the parameters here that I am trying to pass into the pathLinkTo function using asfunction are "file1.swf" and "1" respectively.
The above code successfully passes the first parameter into the function, but not the second (which comes in as undefined).
What do you think?