New window that resizes content


hi,

 

how can open <mx:window> component inside photoshop csxswindowtype.panel resizes contents?

i trying detect windowresize event doesn't seem work.

 

that's code extralayers.mxml

 

 

<?xml version="1.0" encoding="utf-8"?> <mx:window           xmlns:csxs="com.adobe.csxs.core.*"            xmlns:mx="http://www.adobe.com/2006/mxml"            layout="absolute"            minwidth="300"            minheight="300"           width="100%"           height="100%"           windowresize="resizehandler()"             windowcomplete="init()"           >   <mx:script>          <![cdata[                public function init():void             {                  trace("csxs window init");             }                public function resizehandler():void             {                  trace("resized");              }          ]]>   </mx:script>         <mx:vbox>           <mx:button name="close" click="this.close()" />   </mx:vbox> </mx:window>  

 

and how trying open it:

 

if (!layers_panel) {      layers_panel = new extralayers();      if (layers_panel) {           layers_panel.type = csxswindowtype.panel;            layers_panel.title = "extra layers";            layers_panel.width = 300;           layers_panel.height = 500;           layers_panel.resizable = true;      } }                                           if (layers_panel) {      layers_panel.open(true);      layers_panel.addeventlistener(event.close, function():void { layers_panel = null;}); }  

hi,

 

i haven't done photoshop plug-in development "some" indesign.  still not understand try achive? other have "syntax error" in code

 

 

layers_panel.addeventlistener(event.close, function():void { layers_panel = null;});

 

should be

 

 

layers_panel.addeventlistener(event.close, function() {

                                                            layers_panel = null;

                                                       }

                              );

 

you not append "return type" in java/actionscript extendscript function declaration.

 

are using flashbuilder this? barebones cssdk editor?

 

would help

 

regards

 

b.



More discussions in Creative Suite SDK


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support