Getting started with PS CS4 Panels.. need some help

General Discussion of Scripting for Flex, Flash & CS SDK

Moderators: Tom, Kukurykus

izo

Getting started with PS CS4 Panels.. need some help

Post by izo »

DAMN, my exemple works......


ok, now i can send one arguments, how i can send multiple arguments ?
renderhjs

Getting started with PS CS4 Panels.. need some help

Post by renderhjs »

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.
d3mac123

Getting started with PS CS4 Panels.. need some help

Post by d3mac123 »

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