Photoshop plugin with CSXS swc and Flash
I’m trying to do a simple psd plugin with flash - following the tutorial given here, Shortcut Buttons Panel #4:
Photoshop Panel Developer’s Guide
http://www.adobe.com/devnet/photoshop/
Shortcut Buttons Panel #4
My problem is:
I don’t understand how to rewrite the flex files in the tutorial so they work with the CSXS library, but in flash? In the online documentation they hint that it should be possible in flash. but all documentation is with flex?
the .jsx is working as it should
I tried to rewrite the flex to this but no love:
(in the stage I have a button calling on callAddDocument…)
package
{
import flash.display.MovieClip;
import flash.events.*;
import com.adobe.csxs.core.*;
public class myPlugin extends MovieClip
{
public function callAddDocument(event:Event ):void{
dtf.text = "clicked";
CSXSInterface.instance.evalScript("addDocument");
}
public function callCloseDocument():void{
CSXSInterface.instance.evalScript("closeDocument");
}
}
}
there is an error thrown:
ReferenceError: Error #1065: Variable com.adobe.csxs.core::CSXSInterface is not defined.
at myPlugin/callAddDocument()