InDesign CC addEventListener not work

Don't work in InDesignCC addEventListener:
var w =new Window ("dialog");
var b = w.add ("listbox", undefined, "Qwerty");
b.addEventListener("click", function (k){
    alert("detail: "+k.detail+'\r'+"X: "+ k.clientX+'\r'+"Y: "+ k.clientY);
w.show ();
it's ok to work in ESTK and CS.

XH.XH wrote:
  Yes, left click have no reaction, right click the is there will be a left click.
Hi XH.XH
It's not that the right click is "acting" as a left click rather all clicks (left, middle, right, or any other mouse button click if the mouse has them) are clicks, each button has a numeric value to it which can be retrieved on being clicked.
The problem is cause by CC improved focus that's why it works on CS.
For a solution you can fake most things, enjoy.
// Fake List box  http://forums.adobe.com/message/5955686
// by Trevor www.creative-scripts.com (coming soonish)
// Note one has to pay attention to bubbling
var w = new Window ('dialog', "Fake Item List Demo :-)"),
      myAdd = w.add('statictext', undefined, "Fake itemList, Made by Trevor, available for custom scripts, www.creative-scripts.com (soonish)"),
      clickMe =  w.add('statictext', undefined, "Click an Item"),
      fakeListBox = w.add('panel'), // sometimes better to use group
      p = w.add('panel'),
      myListItemStrings = ["List Item 1", "List Item 2", "List Item 3", "List Item 4", "List Item 5", "List Item 6"],
      myListItems = [],
      l = myListItemStrings.length,
      n, info1, info2, info3, infoBox,
      green = w.graphics.newPen(w.graphics.PenType.SOLID_COLOR,[0,1,0], 1),
      red = w.graphics.newPen(w.graphics.PenType.SOLID_COLOR,[1,0,0], 1);
myAdd.graphics.foregroundColor = green;
for (n = 0; n < l; n++)
      myListItems[n] = fakeListBox.add('statictext', undefined, myListItemStrings[n]);
      myListItems[n].preferredSize.height = 18;
      myListItems[n].graphics.foregroundColor = red
info1 = p.add('statictext');
info2 = p.add('statictext');
info3 = p.add('statictext');
info4 = p.add('statictext');
infoBox = p. add('edittext', undefined, undefined, {multiline: true});
infoBox.preferredSize = [950, 200]
info1.alignment = info2.alignment = info3.alignment = info4.alignment = 'fill';
fakeListBox.orientation = 'column';
fakeListBox.spacing = 0;
fakeListBox.margins = [5,1,5,1];
for (n = 0; n < l; n++)
    myListItems[n].addEventListener ('click', function (k){
    info1.text = (k.view.text + " was " + ((k.detail == 2) ? "double clicked " : "single clicked ") + " with mouse button: " + k.button);
    info2.text = "Clicked X: "+ (k.clientX + k.view.location[0])
                  +  " Y: "+ (k.clientY + k.view.location[1])
                  + " possitons are in relation to the panel";
    infoBox.text = "";
    for (pr in k ) infoBox.text += (pr+ ": " + k[pr] + "\t"
                                    + ((Object(k[pr]).constructor.toString ().match (/Object/i)) ? Object(k[pr]).toSource().replace(/\,/g, ", ").replace(/:/g, ": ") : "")
                                    + "\r");
    colorListItem (k.view);
fakeListBox.addEventListener ('mouseover', function (k){
    info3.text = "Current pointer position: X: " + k.clientX + " Y: " + k.clientY + " Hey did you notice that the possitons are normaly in relation to the list item and not the panel! (Bubbling!) :-("
    info4.text = "Current pointer position: X: " + (k.clientX + k.view.location[0]) + " Y: " + (k.clientY + k.view.location[1]) + " That's better :-)"
fakeListBox.addEventListener ('mouseout', function (k){
    info3.text = info4.text = "";
function colorListItem (item, items, group, x, l) {
    group = item.parent;
    items = group.children;
    l = items.length;
    while (l--) items[l].graphics.foregroundColor = (items[l] == item) ? green : red;
w.show ();

Similar Messages

  • Have just down loaded Yosemite over Mountain Lion, Indesign CS5 does not work ( Am dependant on it) although Bridge , Light Room and Elements operate OK How do I solve this rapidly. Can any one help on this issue. Thanks

    Have just down loaded Yosemite over Mountain Lion, Indesign CS5 does not work ( Am dependant on it) although Bridge , Light Room and Elements operate OK How do I solve this rapidly. Can any one help on this issue. Thanks

    Sorry to say it, but I think you can see from Bob's response that there's no way to solve this rapidly.
    Did you take an image of your Mountain Lion install before upgrading to Yosemite? Roll back to that. If you're not in the habit of taking a snapshot of your system before performing operating system upgrades - get in that habit. If you are dependent on anything at all on hour computer, having a reliable backup method in place is essential. If you don't have a Time Capsule, or some other way to run Time Machine onto a disk that's not in your computer, go set that up yesterday.
    If you can't just remove Yosemite and roll back to Mountain Lion for whatever reason, you can partition your drive so that you can install both Yosemite and Mountain Lion on the same drive, and then boot into Mountain Lion when you need to work in CS5. Or you can take your Mountain Lion disc (I assume you have one, no?) and then use it to create a virtual machine in something like VirtualBox to run Mountain Lion from inside Yosemite.

  • Application.addEventListener not working as expected

    I wanted to add a global KEY_DOWN event listener and
    MOUSE_CLICK event listener to my app. The help files say to use the
    application.addEventListener(type, handler) to do this. I added the
    listeners in my creationComplete function but they do not work for
    windows I popup. I know these windows are in the application scope
    because I am setting application level model attributes in them
    that the main window uses. Why are these events not registering
    from popup windows if this is global?

    laurent demaret wrote:
    But I can also use application:openFile: that works too.
    No, you can't. The Apple Event "open files" will open one or more files. That is why the documentation says to use "application:openFiles:".
    And it is present as well in the application delegate protocol reference nearby application:openFiles: and application:openTempFile: all in the "Opening Files" tasks group.
    Why is one called in addition and not the other ? Is application:openTempFile: usage left to the reader guess?
    They are delegate messages. Their only reason for existence is for the programmer to use as he or she sees fit. In one specific example, the Apple event "open files", one of these delegate methods is the recommended way to handle the "open files" Apple Event.
    I did not found other answer in the Xcode documentation than the "How Cocoa Applications Handle Apple Events" paragraph of the Cocoa Scripting Guide OS (which is back to 10.4 as you noticed it) that advise to use application:openFiles: which brings me back to the other methods for opening files, some working, some not..
    I'm not used to such a fluzziness in the documentation.
    You are not used to the delegate pattern. This API has been in existence for 25 years across several, radically different, architectures. There is a lot of legacy there. If the documentation says to use method A and you discove that method B works too, you should switch to method A. There is no guarantee that method B will continue to work in the future. You have already discovered this as you keep trying to use techniques from 1991. Please, just use the recommended method. You have nothing to gain by trying other methods that have similar-sounding names and are described nearby to other methods in the documentation.

  • Help! InDesign CS6 tools not working

    Hello,
    I recently upgraded to CS6 on my PC and have run into some issues with InDesign. None of the tool buttons in the top ribbon or on my side menu function properly. For example, if I make a text box and wish to change the font, I can't select the font drop down menu, nor can I change the size of the type. This also happens when I create a shape and want to change size, color, line weight, line type, etc. Pages do not work either and I have had to use the bottom page navigation.
    I have tried uninstalling and reinstalling, but the problem did not go away. Any thoughts or suggestions?  Thank you!

    Windows 7? See InDesign tools and panels don't respond to mouse clicks (Windows 7/Vista)

  • Preflight InDesign function/panel not work

    I have updated Indesign to the last update of CC 2014 ITALIAN language, and the preflight (verifica preliminare) function, has stopped working from one day to another!
    Both new documents and on documents from older versions of Creative Suite, Preflight panel, displays no error! yet I deliberately open documents with errors (ex. fonts not working or missing text inserted in text frames, etc. etc.)
    What can I do to re-enable? Do I have to re-install InDesing?
    THNX to all for the answers

    I do not know, the PC has only one user account. I asked for support in Adobe live chat support, but I have been recommended only 2 things:
    - Install Indesign CC and use this (answer that I find WEIRD because it does not solve the problem on suite 2014!)
    - Remove and clean the preferences everything about InDesign CC 2014 and re-install it.
    The store where I purchased the licenses adobe, believes that the problem is related to the PlugIn conversion of Markzware.
    As soon as I can, uninstal InDesign CC 2014 and re-install the program, and Hope to resolve the BUG.

  • InDesign CS4 Debug not working on Windows

    Dear All,
    Two days back I purchased Bronze ASN memebership. This is the first time when I am trying debug version of InDesign. I have installed InDesign CS4 Debug on both Mac & Windows. On Mac it is working fine, but on windows it is not working.
    Debug Indesign is not getting launch and asking for re-installation. I have re-installed 2-3 times. Release version allready installed one my PC. I have tried with differeent combination like "install without Release version of InDesign", "insatalled on different drive", etc.
    I hope some one can help me to resolve this issue.
    Regards,
    Rajeev

    I think the Adobe terminology is Required not recommended, but the
    recommended build environment for CS4 plugins is Visual Studio 2005 plus
    service pack 1.
    As has been said many times on this list, and I can confirm from painful
    experience, you may have problems if you try to build your plugins with VS
    2008.
    Caerwyn

  • Why do the latest versions of Indesign and Photoshop not work on my computer?

    I own a Toshiba Satellite L675 and when I was using photoshop cs5 extended it worked fine. However I recently purchased Photoshop cs6 extended and after trying to install it i recieved an error:213:10. After that i tried downloading Indesign CS6 to see if anymore Adobe Products wouldnt work on my laptop either. It doesnt, so does anyone know why its not working?

    This indicates that your file permissions have become compromised to the SLStore folder. Please review the steps listed in "Configuration error" CS5 - http://helpx.adobe.com/x-productkb/policy-pricing/configuration-error- cs5.html.

  • Hyphenation in InDesign CC 2014 - not working

    I can not get my hyphenation in InDesign CC 2014 to work. I have it selected in Paragraph styles. I have tried to select all the text and checked the hyphenate box. I have my language selected. I have tried to unistall InDesign and install it all over again. Delete the preferences. Well I think I have tried everything.
    I am doing a layout for a book and it just terrifies me to have to manually hyphenate it.
    Thanks in advance, Arna

    Sorry for asking about things you've already tried, but until you tell us we don't know for sure, so I have to ask to get confirmation.
    This is either a corrupt installation, a bug with the language (what happens if you temporarily select some other language?) or more likely a software conflict. We can check for the latter by turning off all non-Adobe plugins (including a font auto-activation plugin), and by restarting your Mac with extensions disabled by holding down the shift key while you start up. After the restart, try the hyphenation with nothing running except InDesign.

  • My indesign CC doe not work anymore

    It didn't work properly. So I dropped the program in the bucket and emptied it. Then I wanted to download Indesign again, Ut that does not work. The download looks okee in the creative cloud window but in the folder programs it looks as if it is just not complete. What can I do to make it work again.

    CC desktop lists applications as "Up to Date" when they are not
    -http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html
    Discussions of RE-installing
    -http://forums.adobe.com/thread/1408331?tstart=0
    -http://forums.adobe.com/thread/1398961?tstart=0
    -and http://helpx.adobe.com/creative-cloud/help/install-apps.html
    -using the cleaner after uninstalling and before reinstalling will usually help
    -http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

  • InCopy CS4 (PC) / InDesign CS4 (mac) not working

    My client and I are trying to establish an InCopy CS4 (PC) / InDesign CS4 (Mac) workflow. Neither of us has ever used InCopy and we are all getting frustrated now that our first production cycle has come and gone and the client is not recouping the money they invested on this software. Our trial system was successful for awhile and then it just stopped. The client says she can't open the icma/icml files and they need the indd file. So I send a new batch of files with the indd included and still no luck.
    I'm saving the assigments like I've been saving in our initial trial run. In ID I go to Incopy > Export > Add all Stories to Assignment. That creates the content folder and the .icma files. I zip everything and send it off via email attachment.
    Is there something I am doing wrong? Something my client needs to do? I prefer not to have to send the indd file. Should I have to do that for them to edit in Incopy? I appreciate any advice. Thank you.  Lynn

    Don't zip the files, that won't work.ID/IC is meant to work on a local server w/local staff. For a remote workflow you have to use a special technique.
    After you create the assignment, use the Package for InCopy command in the Assignments panel.That creates an ICAP file that you send to the client.
    When the double-click the ICAP file, it unpacks (it's like a zip file) on their computer and the assignment opens in InCopy. They work on the stories, and when they're done, they use the Return for InDesign command in *their* Assignments panel menu. That creates an IDAP file that they send to you.
    When you open the IDAP file, it unpacks, looks for the INDD file (be sure not to rename or move it in the meantime), and updates the stories w/the editors changes.
    Those are the broad strokes. It's covered more thoroughly in the online help file of both ID and IC ... you *and* your client should read up on it. And I cover it very thoroughly (4 videos ... Chapter 15) in my online Lynda.com tutorial on the CS4 workflow:
    http://www.lynda.com/home/DisplayCourse.aspx?lpk2=651
    (Chapter 15 isn't one of the freebie chapters, but you (or anyone) can use my 24-hour free pass for full access to their entire training library: http://lynda.com/freepass/amconcepcion)
    AM

  • InDesign CC trial not working

    I have a trial of InDesign CC (2014), but I accidentally deleted the InDesign files off my computer. I've tried to use the cleaner tool, but InDesign doesn't appear on the list of apps to clean (probably because the files don't exist on my computer). I've also tried uninstalling and reinstalling the Creative Cloud desktop app. How do I get that trial working again?

    Alexfillip for information on how to reinstall Illustrator please see CC desktop lists applications as "Up to Date" when not installed - http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html.

  • Brand new iMac. Indesign CS6 will not work at all. It will not reinstall. Tried to contact adobe and I get nowhere.

    I can't reinstall from the adobe site. I get an installation failed message. I can't use the version that I transferred from my old iMac. I am missing plug-ins. Something called JBX and LILO.Indesing.Plugin. I can't find any of these on the web or on the adobe site. I've called apple they say they are third party things and can't help me. Other users have had similar issues but I can't find out how they solved them. I am in a panic. I have a ton of work to do and can't get my swell new computer to run my software. RUNNING CS6

    Moving this discussion to the Downloading, Installing, Setting Up forum.
    SJ1122 have you removed the migrated InDesign CS6 installation using the uninstaller located in the Applications/Utilities/Adobe Installers folder?  If so then please also run the CC Cleaner tool - Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html to ensure complete removal.
    Adobe applications are not designed to be copied/migrated/transferred to other computers.  In the future please migrate/transfer/copy your documents and settings and reinstall your Adobe Creative Applications.

  • ViewStack addEventListener not working

    Hi,
    My code adds a hanler via an eventListener to a ViewStack component at Initialization, but when I run my application and change the view, the handler never gets triggered.
    Code :
    myViewStack.addEventListener(IndexChangedEvent.CHILD_INDEX_CHANGE, ViewHandler);
    However if I add the Handler inside the <ViewStack> tag it works.
    Any idea about what the problem could be?
    thanks
    -Malena

    Okay, I found the problem myself. Looks like the type of event shoud be IndexChangedEvent.CHANGE and not IndexChangedEvent.CHILD_INDEX_CHANGE, so that is why the handler was never triggered.

  • InDesign Contact Sheet not working in CS 2

    I a computer at work with CS 2 and Vista on it. Everything is fully up to date. When I try to run the contact sheet script from the tools menu it brings up a dialog box saying "Starting..." (if InDesign isn't open it will open it) and then it just sits there for about 2 mins and then it stops. InDesign doesn't even start a new document.
    Anybody have any ideas as to what is going on and how I might be able to fix it? (and yes I am using it correctly... have been using CS 2 for years and have used this feature many other times in past jobs)
    Thanks

    I have moved the post to http://www.adobeforums.com/webx/.3bbaa316.3c062841 to see if I get a better response.

  • Page numbering in InDesign CS5.5 not working

    21 Chapters have been added to InDesign CS5.5's Book File feature. However, only the individual chapter numbers are shown, not the cumulative numbering system. Can anyone please help resolve this issue.

    Eugene, sorry I can see how my question is not clear. My issue is this: I've added 21 chapters of a book to InDesign CS5.5 Book File. When I did so I expected all the chapters to paginate with consecutive numbering. But all I see in the column beside the chapter title are the page numbers (folio) that were created in each chapter. Since all my chapters start on the right hand page the beginning number is alway 2. Each chapter has used the same Master pages template and are spreads.
    Hope this clarifies my issue. Thanks.

Maybe you are looking for