Help me: how to Call function in panel from jsx

General Discussion of Scripting for Flex, Flash & CS SDK

Moderators: Tom, Kukurykus

nobita-vn

Help me: how to Call function in panel from jsx

Post by nobita-vn »

Hi all.
i'm have Photoshop Panel test_panel.swf and file test_panel.jsx.
In file test_panel.swf, i define a function test_function().
How to call function test_function in test_panel.swf from file test_panel.jsx?

i used Flex 4 and CSXSLibrary.swc

Thanks.
nobita-vn

Help me: how to Call function in panel from jsx

Post by nobita-vn »

Example

test_panel.mxml
Code: Select all<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="absolute"
            width="242" height="580"
            minWidth="274" minHeight="580"
            maxWidth="274" maxHeight="580"
            verticalScrollPolicy="off" horizontalScrollPolicy="off"
            >
   <mx:Script>
      <![CDATA[
         import com.adobe.csxs.core.CSXSInterface;
         
         public function test_function():void{
            // TODO code here
         }
                  ]]>
   </mx:Script>

</mx:Application>



how to call function test_function() from file test_panel.jsx?

plz help me.
undavide

Help me: how to Call function in panel from jsx

Post by undavide »

You can read this Adobe CookBook, it'll help you.
Regard,

Davide