0 Replies Latest reply on Jul 21, 2010 11:47 PM by sudar1983_14

    scriptMenuAction Label not assigned in CS3 JS

    sudar1983_14

      The below script is working fine in CS4 but in CS3, the label is not assigned properly.

       

      var myScriptAction = app.scriptMenuActions.add("TestingMenu");
      myScriptAction.label="Automation";
      alert(myScriptAction.label);

       

      My requirement is, i want to know my parent menu name from the child event.

       

      var myEventListener = myScriptAction.eventListeners.add("onInvoke", function(event)
                 {
                                  //Trigger script
                                  alert(event.currentTarget.name);
                                   //the above line giving current menu name, but i need parent menu name

                }

       

       

      Arivu...