Hi everyone,
Im trying to create a simple panel in Flex that you would be able to create a new PS document. I want to pass 4 parameters from Actionscript to my Javascript function. For some reason Im only able to pass one parameter, it will not work when I pass more the one. For example:
My AS function:
public function callCloseDocument():void{
CSXSInterface.instance.evalScript("testFunc", "10", "10", "myDocName");
}
My JS function:
function testFunc(theWidth, theHeight, docName){
thisWidth=parseFloat(theWidth);
thisHeight=parseFloat(theHeight);
app.documents.add(thisWidth, thisHeight, 72, docName, NewDocumentMode.RGB, DocumentFill.WHITE);
}
This will not work, when I pass just one parameter no matter which one it works no problem. I can't figure out how come this is happening. Any help would be greatly appreciated.
Chris R.