CS4 CSXSLibrary: CSXSInterface.instance always null
i wanted start scripting custom panels photoshop cs4 everytime compile flexsdk (just pure as3, no flex code) errors saying:
[fault] exception, information=typeerror: error #1009: cannot access property or method of null object reference.
so means:
csxsinterface.instance turns out null. , makes impossible me communicate photoshop or jsx functions.
i using csxslibrary-2.0-sdk-3.4.swc in combination photoshop cs4. library perhaps not suited cs4? need older library , if can download it. of libraries seem rather difficult find on internet.
my as3 source (just 1 class) looks this:
package { import com.adobe.csxs.types.*; import com.adobe.csxs.events.*; import com.adobe.csxs.core.csxsinterface; import flash.display.sprite; import flash.events.event; public class main extends sprite { public function main():void { if (stage) init(); else addeventlistener(event.added_to_stage, init); } private function init(e:event = null):void { csxsinterface.instance.addeventlistener(statechangeevent.window_open, creationcomplete); } private function creationcomplete(e:event):void { } } }
i display swf panel in photoshop ignores commands associated csxsinterface.instance because results null within photoshop.
i downloaded latest photoshop panel developer's guide archive comes csxslibrary-2.0-sdk-3.3 , csxslibrary-2.0-sdk-3.4.swc null result booth libraries. though flashdevelop shows me swc library has been importet, mean can access csxsinterface just not singleton instance.
any insight or input appriciated
edit:
some irritating bb shortcut triggered pre release of post.
the best place ask these questions in cs sdk forum:
http://forums.adobe.com/community/creativesuites/cs_sdk
harbs
More discussions in Photoshop Scripting
adobe
Comments
Post a Comment