Copy link to clipboard
Copied
Hello!
I'm trying to pass variables between a Photoshop panel I'm building in Flash Builder and a jsx file. The problem I'm runing into is that anything involving the CSXSInterface doesn't seem to work. I can't figure out where it's failing. It seems to be importing succesfully, if I try to do something like CSXSInterface.instance.evalScript("functionName") it simply doesn't respond. When I wrap it in a try statement it returns Error 1069. I've tried testing sample projects by saving the files without modifying them and they suddenly don't function either. Could it be a problem with the CSXS library?
Here's what I'm importing:
import com.adobe.csxs.core.CSXSInterface;
import com.adobe.csxs.events.*;
import com.adobe.csxs.types.*;
import com.adobe.csxs.external.*;
import com.adobe.csxs.external.resources.*;
import mx.collections.*;
import mx.controls.Alert;
import mx.events.FlexEvent;
import mx.rpc.events.*;
As an example, this comes back as Error 1069
try {
var csxs:CSXSInterface = CSXSInterface.getInstance();
csxs.requestStateChange(StateChangeEvent.WINDOW_RESIZE, getGeometry());
} catch (errObject:Error) {
Alert.show(String(errObject));
}
I have the CSXSLibrary-2.0-sdk-3.4.swc in my libs folder. Does the name matter and would that be causing my problem? That library is the only thing that has remained constant between every non-functioning file.
The weird thing I've noticed is that
try {
CSXSInterface;
} catch (errObject:Error) {
Alert.show(String(errObject));
}
Doesn't return an error, but
try {
CSXSInterface.getInstance();
} catch (errObject:Error) {
Alert.show(String(errObject));
}
does return one.
Any thoughts? I've been trial and erroring this for two days and the interenet is sadly sparse on this topic.
Copy link to clipboard
Copied
On day 3 of trying to solve this I came across this post:
http://forums.adobe.com/message/3095927#3095927
Using the library that's included there, I've been able to get my panel to work in CS4, but I'm trying to make this panel work in both CS4 and CS5.
Any chance this is an obvious problem that I'm missing?
Copy link to clipboard
Copied
I finally solved my problem. It was a matter of tracking down the actual Flex SDK and the libraries it holds. It appears that the CSXS librarys that come with the Photoshop panel developer's guide don't work.
Copy link to clipboard
Copied
THANK YOU! I've been having this problem, but had no luck with it.
One more question though... I can't find the csxs library .swc file in the flex sdk.
I tried "Flex 4 Release" (Adobe Flex SDK) and (Adobe Add-Ons), its not in there. Where did you find it again?
I was looking in here: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4
Thanks in advance!
Copy link to clipboard
Copied
Pain in the ass, right? I found it at this link. I just swaped the old library I was using with the one included here and it worked fine.
http://www.adobe.com/devnet/creativesuite/sdk/eula_cs5.html
Copy link to clipboard
Copied
Awesome! Thank you so much. I will try it tonight/tomorrow and keep my fingers crossed.