How to add your method in photoshop plugin & call it from javascript?

pls help me i have to add a method in photoshop sample plugin & call it through any script like javascript?don't have to use any listener like script listener?

You create the plugin, so you defined the terminology for the plugin.
So there should be no reason to use the listener because you already know the terminology needed.

Similar Messages

  • How to add button inside move clip and call it from main timeline?

    Hi,
    On the main timeline I  have a movie clip called clock_mc and playBtn
    playBtn is  placed in the center of clock_mc
    When you press playBtn clock_mc starts playing
    playBtn.addEventListener(MouseEvent.CLICK, playClock);
    function playClock(event:MouseEvent):void
        if (event.target == playBtn)
            clock_mc.play();
            playBtn.visible = false;
            trace ("play button was clicked");
    This is working fine for me.
    But I want to add replayBtn to the last frame of clock_mc and set up the function on main Timeline.
    Another words when the clock_mc rich last frame you see replayBtn.
    code example:
    replayBtn.addEventListener(MouseEvent.CLICK, playClock);
        if (event.target == replayBtn)
            clock_mc.play();
            replayBtn.visible = false;
            trace ("replay button was clicked");
    I've tryed to placed the replayBtn on the stage on the main timeline and I've set it up to replayBtn.visible = false;
    And then I add replayBtn.visible = true; to last AS frame of clock_mc but it wont work
    Even when I put the button physically to the last frame of clock_mc it will not work either.
    Please help

    I've solved the problem:-)
    I've set replayBtn.visible = false; on first frame of clock_mc
    and  replayBtn.visible = true; at the last frame
    and than as you sugested I'v add:
    clock_mc.replayBtn.addEventListener(MouseEvent.CLICK, replayClock);
    function replayClock(event:MouseEvent):void
            clock_mc.play();
            trace ("replay button was clicked");
    I couldn't see replayBtn at the firs stage because I have clockTween assosiated with clock:
    clockTween = new Tween(clock_mc, "x", Regular.easeOut, -469,438, .5, true);
    and I had replyBtn in the wrong place so when clock_mc was coming up on the stage replayBtn was on the left side of the stage :/
    Now I have to solve only one thing.
    Maybe you would have any suggestions please.
    I've set up stop(); in a first frame of clock_mc
    that when you see clock_mc sliding in it has to wait for playBtn to be clicked
    because I have two tween:
            clockTween = new Tween(clock_mc, "x", Regular.easeOut, -469,438, .5, true);
            playTween = new Tween(playBtn, "x", Regular.easeOut, -720,514, .5, true);
            playBtn.visible = true;
    so when you click on playBtn:
    function playClock(event:MouseEvent):void
        if (event.target == playBtn)
            clock_mc.play();
            playBtn.visible = false;
            trace ("play button was clicked");
    everythink is working fine except when I clik on replayBtn it play for I sec because there is stop(); on the first frame of clock_mc

  • How to add HTTP Header Response X-Frame-Options:SAMEORIGIN from OWA published via Forefront TMG 2010 to stop Clickjacking

    How to add HTTP Header Response X-Frame-Options:SAMEORIGIN from OWA published via Forefront TMG 2010 to stop Clickjacking. I have put the IIS setting X-Frame-Options:SAMEORIGIN  on my Internal CAS Server. However as the OWA page is published through
    Forefront TMG 2010, the iFrame tag is not blocked when the page is first opened. Only when you login with your credentials to the OWA page inside the frame and the page reaches IIS on the Internal CAS it gets blocked. I want to block it in the first
    instance when it is opened from TMG.

    Hi,
    Thank you for the post.
    To modify the http header, please refer to this blog:
    http://tmgblog.richardhicks.com/2009/03/27/using-the-isa-http-filter-to-modify-via-headers-and-prevent-information-disclosure/
    Regards,
    Nick Gu - MSFT

  • How to keep your email on the server after deleting from the phone?

    how to keep your email on the server after deleting from the phone?

    If this is a POP mail account:
    Settings > Mail.... > Your account > Advanced > Delete from server > Never.
    However, this will risk re-downloading as new mail
    IMAC  accounts mirror what's on the phone in the server, so deleting from the inbox on the phone will either send it to the trans folder on the server or leave it in the inbox but marked as deleted (depending on the server)
    Settings > Mail.... > your account > Advanced > Deleted Mailbox > On My iPhone Trash

  • How to build my own HDR photoshop plugin?

    Hi, I am a true fresh here and trying to build a HDR photoshop plugin, with an existing HDR merging algorithm in a static C lib. What I need to do is just to provide a file dialog to read in several images, then to process pixels of these images with the C lib, and last return a result image. In this case, which type of plugin should I focus? Automation, filter, or any others ? Besides that, what should be the key to read files and get their pixels? Would anyone be so kind to offer a hint? Thank you very much!

    Hi Bowie,
    Here is one possible approach...
    1) Set "Do Not Use SOAP Envelope" in your Receiver SOAP Adapter.
    2) Add this xsl as a second step in your interface mapping.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="/">
        <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
          <env:Body>
            <xsl:copy>
              <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
          </env:Body>
        </env:Envelope>
      </xsl:template>
      <xsl:template match="@*|node()">
        <xsl:copy>
          <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
      </xsl:template>
    </xsl:stylesheet>
    You can then modify the soap envelope nodes above to create what you need.
    -Russ

  • How to add purchased filter to Photoshop CC? [was:filter]

    как добавить купленный  фильтр в Photoshop cc?
    How can i add bought filter at photoshop cc?

    Which filter?
    3rd party vendors normally provide installation instructions for their products.

  • How to add payment methods in infotype Bank Details

    Hi to all, could someone help me in this question: i want to add payment methods in infotype 9..how i can to that?
    i have clue that is going to this view: V_T042ZL and also i dont know what options i have to choose...can anyone help me??
    regards
    Mário

    Hello Mio,
    Please try the below IMG node.
    PERSONAL MANAGEMENT---> Personal Administration >Personal Data-> Bank details--->Define payment methods.
    This will make it a bit simpler.
    But you are at the right place.
    Best Regards.
    Karan.

  • How to add these symbols to Photoshop

    Hi there,
    I am trying to add some texts to my picture in photoshop and I would like to add symbols like the ones I attached here.
    Does anyone know where to find and how to add them?
    thanks,
    Rose110ca

    You need to ues the text tool from the toolbox. Simply click it and put it on a location you would like to create a text layer.  Once created you can use the selection tool to move it around.
    Vancouver wedding photography <a href="http://www.vividdreams.ca">vancouver wedding photography</a>

  • How to add your own videos or photos?

    I want to know how to add Photos and Videos from my PC to my iPod...

    Well, there are a few ways. I'll tell ya two. First is iCloud. If you don't already, you can create an Apple ID and set up iCloud. To set up iCloud on PC, visit this site. Everything should sync after that.
    You can also use iTunes to sync up everything. First, put the photos that you wanna put on your iPod on to iPhoto. Put the videos you wanna put on iTunes. Like, drag the video into the "Videos" tab on iTunes. Then, go to the the iPod in "Devices" connected to iTunes. Once you select the phots and videos, press Apply/Sync.
    You're done.

  • How to add a link to update firefox ? URL from which it is updated ?

    need to add exceptions for DLP system

    Hi Sam,
    Firstly, you have an error in your SQL statement:
    SELECT FILE_NAME,
    '&lt;img onclick="javascript:showImage(this);" &gt;src="#OWNER#.DISPLAY_IMAGE?inID=' || NVL(IMAGE_ID, 0) || '" &gt;height="50" width="50" /&gt;' IMAGE
    FROM A_IMAGES
    ORDER BY FILE_NAMEYou have an extra &gt; - it should be:
    SELECT FILE_NAME,
    '&lt;img onclick="javascript:showImage(this);" src="#OWNER#.DISPLAY_IMAGE?inID=' || NVL(IMAGE_ID, 0) || '" height="50" width="50" /&gt;' IMAGE
    FROM A_IMAGES
    ORDER BY FILE_NAMEFor the Region Header - I just click on the report in the page definition and scrolled down to the setting called "Region Header". Then I pasted in:
    &lt;div id="imagediv" style="display:none; position:absolute; top:0px; left:0px; height:0px; width:0px; margin:0px; padding:0px; border:0px; background-color:whitesmoke;" align="center" onclick="javascript:closediv();"&gt;&lt;table style="border:0px; padding:0px; margin:0px; width:100%; height:100%;" cellpadding=0 cellspacing=0&gt;&lt;tr&gt;&lt;td style="vertical-align:middle; text-align:center"&gt;
    &lt;img id="largeimage" src="" style="border:3px double darkblue;"&gt;
    &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
    &lt;/div&gt;
    &lt;script type="text/javascript"&gt;
    var iDIV = document.getElementById("imagediv");
    var iIMG = document.getElementById("largeimage");
    function showImage(i)
    iIMG.src = i.src;
    iDIV.style.width = document.body.clientWidth;
    iDIV.style.height = document.body.clientHeight;
    iDIV.style.display = "block";
    function closediv()
    iDIV.style.width = 0;
    iDIV.style.height = 0;
    iDIV.style.display = "none";
    iIMG.src = "";
    &lt;/script&gt;If you go back to my page, you will see that I have added two screenshots (Page41ReportSource.gif and Page41RegionHeader.gif) that show you what I have done on my report.
    Andy

  • How to add more methods to class methods

    Hello all
    I don?t know how exactly explain my problem but I will try .
    I have base class that has some methods that I use on the jsp page.
    my base class looks like this :
    class base {
             public static String getName(){
                 String myName =  new String("miki");
                 return myName;
             public static int  getAge(){
                 int myAge =  new Int(30);
                 return myAge;
    }now I will like this methods to have more methods for example toBoolean()
    so if I will do :
    <%
    base.getAge().toBoolean();
    or
    base.getAge().toBoolean();
    %>
    it will return me true or false if age is less then 0 so false
    and if the name string len is 0 also flase
    and other wise true ;
    how can I implement this functions on my methods?
    hope I made my self clear
    thanks

    Think about what is actually happening with those strung calls. Using your example, what would toBoolean() be being called on. It is not being called on base, and you cannot call a method on a method, so it is not being called on getAge(). What it is being called on, is what is returned by getAge(). The only way to string calls in this manner, is when the object returned by the previous method, contains the next method. Since getAge() returns an int, you can't string anything onto it. You would have to modify getAge to return an object that you created, which, of course, would also mean to modify anything that has used getAge() up to this point to expect your new object and use it, rather than an int.

  • How to add a parallax scrolling (jquerry plugin) to Muse with Insert HTML?

    I know the parallax scrolling feature will come to muse in 2 weeks. But I must do a website with parallax scrolling before that time.
    I actually have a site ready in MUSE but i want to add some parallax scrolling effects to this site. I know this is possible without the incoming muse updates because people did it with older muse versions.
    There are some jquerry plugins that should do the work:
    http://plugins.jquery.com/stellar/
    http://plugins.jquery.com/parallax/   for example.
    How can i add these effects to Muse with insert html/Edit html feature? I am not good at code so Could you please tell me the steps clearly even like putting the plugin into the directory?
    Even if i include the plugin, how can i adjust the pluginn settings to some specific elements of a site?
    Please help,
    thank you!

    If you're not comfortable with code, the simplest way to add parallax to Muse would be to join the Muse beta and download the beta build with the new parallax feature.
    http://www.adobekb.com/participating_in_muse_beta.html

  • How to add ICC profiles to Photoshop Elements 10

    My ICC profiles are showing up in my LR 4, however, they will not show up in PSE 10.   What do I need to do to add the profiles into PSE 10?

    Hi,
    The version of Camera Raw that you reported should support the S100 CR2 images.
    If you load the editor, go to the File menu and select Open, then point to the file, are you saying that it displays the error message?
    Have you tried opening the file with Canon's Zoombrowser?
    Which operating system are you running on?
    Brian

  • How to add the current user to a people picker using javascript coding in document library

    Hi Everyone,
    This is my scenario,
    I have a document library,for this if any user uploads a document,there we have three content types(Ex:content1,content2,content3)
    if the uploaded user is from content 1(here we have four columns name,assigned to ,status,published to) after uploading the document the document has to be updated.so when the document is updated by the user then automatically the published filed people
    picker has to be filled up with the current user name this is done by using java script object model programming.
    i am stuck with this can anyone help me..............
    thanks in advance
    Ramu

    Hi,
    I understand that you want to set a people picker field value automatically to current user. You can use these ECMA scripts on your EditForm.aspx page. Edit the page in SharePoint designer and add the code before a </asp:Content> tag.
     <script type="text/javascript">
    var context = null;
     var web = null;
     var currentUser = null;
    ExecuteOrDelayUntilScriptLoaded(GetUserLoginName, "sp.js");
    function GetUserLoginName() {
    context = new SP.ClientContext.get_current();
     web = context.get_web();
     this._currentUser = web.get_currentUser();
     context.load(this._currentUser);
     context.executeQueryAsync(Function.createDelegate(this, this.onSuccessMethod),
    Function.createDelegate(this, this.onFailureMethod));
     function onSuccessMethod(sender, args) {
     var today = new Date();
     alert('Name:' + this._currentUser.get_title() + '\n Login:' + this._currentUser.get_loginName()); document.getElementById('ctl00_m_g_9b4b3950_80d8_4e6e_b2fa_241b727d83d4_ctl00_ctl02_ctl00_ctl02_ctl00_ctl00_ctl04_ctl00_ctl00_ctl04_ctl00_ctl00_UserField_upLevelDiv').innerHTML=this._currentUser.get_title();//you
    need to change the ID here to you people picker field ID. You can get the id for this field with the help of IE developer tool.
     function onFaiureMethod(sender, args) {
     alert('request failed' + args.get_message() + '\n' + args.get_stackTrace());
     </script>
    For more information, please refer to this site:
    Get current user’s LoginName Ecmascript Sharepoint 2010:
    http://www.learningsharepoint.com/2011/05/18/get-current-users-loginname-ecmascript-sharepoint-2010/
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • How to pass cPath in ExportAsXfdf when we call javascipt from our plugin??

    Hi
    I am able to export file using javascript through my plugin..But if I pass cPath variable also, it does nothing..I am not able to pass to cPath value properly..
    what should be the syntax of cPath when we call javascript from plugin??
    If I write this
    char * buf = "this.exportAsXFDF({bAnnotations:true});";
    AFExecuteThisScript(pdDoc, buf, NULL);
    It runs fine,.
    But if I also mention cPath it fails to export xfdf
    char path[256] = "//C//Users//ishitas//Desktop//ishita.xfdf";
    char * buf = "this.exportAsXFDF({cPath:path,bAnnotations:true});";
    AFExecuteThisScript(pdDoc, buf, NULL);
    or
    char * buf = "this.exportAsXFDF({cPath: \"//C//Users//ishitas//Desktop//ishita.xfdf\",bAnnotations:true});";
      AFExecuteThisScript(pdDoc, buf, NULL);
    How should I pass cPath????
    please help..

    Hi Malcolm,
    Thanks for the reply...it really helped me a lot to solve the problem.

Maybe you are looking for

  • Deactivating the automatic setup for creation of batch numbers in GR

    Hello, The user wants to key in the batch number for material purchased while creating  GR. But the batch number gets created automatically. Could you please help and letme know how can the user deactivate this? Is it activated in master-data or cust

  • Receive iMessage and SMS text in one window

    I was wondering if anyone knows of a setting or whether its even possible to receive an iMessage from an iPad and a SMS text from a non Apple phone within one chat window when they both are coming from the same person. Someone text's me throughout th

  • Backup of 500GB Database

    Hi Guys, Database: 10g OS: RedHat 4 Archive log Mode: Enable I want to implement backup strategy of 500 GB database for daily, weekly and monthly. Please suggest your opinion. Regards, Prathmesh.

  • Error: Valuation area PLANT1 not yet productive with material ledger

    Hi Sap Consultants, I am getting the above error when I am trying to create materail. Thanks, Padmaja

  • Erreur 3259

    telechargement interrompu message d'erreur "la connexion réseau a expiré" erreur 3259