DAMN, my exemple works......
ok, now i can send one arguments, how i can send multiple arguments ?
Getting started with PS CS4 Panels.. need some help
Getting started with PS CS4 Panels.. need some help
well first off that's good news for you. As for the multiple arguments, have you tried accepting and sending multiple arguments like:
AS3:
Code: Select allCSXSInterface.instance.evalScript("testFunction","John","Wayne");
JSX:
Code: Select allfunction testFunction(a,b){
alert("Meet "+a+", "+b);
}
I haven't tested that, but again if you would use the concept of evaluating code from within the JSX layer like I suggested some posts back that wouldn't be a problem at all.
And as for flex, I don't know or care about flex - I avoided it ever since even though I am a experienced flash developer. If you are more confident with visual driven applications like Flash CS3,CS4 you could perhaps use that instead of Flex. Flex is more a wrapper around AS3 with some ugly GUI simplifications, but I assume that you have your reasons why you use Flex.
AS3:
Code: Select allCSXSInterface.instance.evalScript("testFunction","John","Wayne");
JSX:
Code: Select allfunction testFunction(a,b){
alert("Meet "+a+", "+b);
}
I haven't tested that, but again if you would use the concept of evaluating code from within the JSX layer like I suggested some posts back that wouldn't be a problem at all.
And as for flex, I don't know or care about flex - I avoided it ever since even though I am a experienced flash developer. If you are more confident with visual driven applications like Flash CS3,CS4 you could perhaps use that instead of Flex. Flex is more a wrapper around AS3 with some ugly GUI simplifications, but I assume that you have your reasons why you use Flex.
Getting started with PS CS4 Panels.. need some help
This code...
Code: Select allCSXSInterface.instance.evalScript("testFunction","John","Wayne");
...works perfectly in CS5 but, unfortunately not at CS4. How can I send multiple parameters to a JSX function in CS4?
thanks!
Alex
Code: Select allCSXSInterface.instance.evalScript("testFunction","John","Wayne");
...works perfectly in CS5 but, unfortunately not at CS4. How can I send multiple parameters to a JSX function in CS4?
thanks!
Alex