I am trying to make a popup Menu under a button in Acrobat X. For this I added a Javascript in the Button menu.
I get the impression that there is a limit to the amount of lines Acrobat can manage because I get error messages that are not logical and when I delete a random line everything is ok.
Is there anybody with experience in this matter?
It gives diverse SyntaxErrors. Missing spaces or other things in diffenet lines. There is really no logic in that. And when I reduce the ammount of lines, no matter what line I delete, it functions.
I can give you the script on a point where it doesnot function anymore. The thing I added last was the second submenu. And thank you for reacting!
var cChoice = app.popUpMenuEx
(
{cName: "Tg. Winterberg",oSubMenu:
{cName: "De Jazzbarones",cReturn: "2"}
},
{cName: "Maas",oSubMenu:
{cName: "Cash.",cReturn: "3"}
},
{cName: "DOX - I Have a Dream",cReturn: "4"},
{cName: "BonteHond/Pompei - Dutch Vinex Wonder Boys",cReturn: "5"},
{cName: "BEER Muziektheater",oSubMenu:
[{cName: "Dali, of hoe word ik beroemd",cReturn: "6"},
{cName: "Ik ben niet bang",cReturn: "7"}]
},
{cName: "BonteHond/NTjong - Zebra Zebra",cReturn: "8"},
{cName: "BonteHond - Harig Hondje",cReturn: "9"},
{cName: "De Toneelmakerij - KoudVuur!",cReturn: "10"},
{cName: "De Toneelmakerij/Firma Rieks Swarte - De Storm",cReturn: "11"},
{cName: "Esther de Koning/STIP",oSubMenu:
{cName: "H.O.T.-het begin",cReturn: "12"}
},
{cName: "Het Houten Huis",oSubMenu:
[{cName: "Hotel Perdu",cReturn: "13"},
{cName: "Beet!",cReturn: "14"}]
},
{cName: "Het Laagland",oSubMenu:
[{cName: "WIM IS WEG",cReturn: "15"},
{cName: "ROBIN HOOD",cReturn: "16"},
{cName: "KOFFERS OP REIS",cReturn: "17"}]
},
{cName: "Hetpaarddatvliegt",oSubMenu:
[{cName: "Later als ik dood ben",cReturn: "18"},
{cName: "Rooi kop",cReturn: "19"}]
},
{cName: "Maas",oSubMenu:
[{cName: "Alleen op de Wereld",cReturn: "20"},
{cName: "Wild Thing",cReturn: "21"},
{cName: "De Nieuwe Jetse",cReturn: "22"},
{cName: "Helaas Pindakaas",cReturn: "23"}]
},
{cName: "Raaijmakers & Geerlings/STIP - Niet Huppelen!",cReturn: "24"},
{cName: "Theater Gnaffel",oSubMenu:
[{cName: "Apenstreken",cReturn: "25"},
{cName: "Peter Pan en de verloren jongens",cReturn: "26"}]
},
{cName: "Theater Sonnevanck",oSubMenu:
[{cName: "Tijl Uilenspiegel",cReturn: "27"},
{cName: "Engel met vieze voeten",cReturn: "28"}]
},
{cName: "Tg. Winterberg/STIP - Op een klein stationnetje",cReturn: "29"}
);
Yes I updated the last version, but I'm not sure what you mean by running it from the console. I paste the script when making a button in Acrobat.
What I also noticed is that when I make the button in Acrobat 9 and then open the file in Acrobat X the Javascript functions. But I cannot make it directly in Acrobat X. The it gives these Errors when I make more lines.
It could be, although I've never heard of this bug before... You can report
it to Adobe here:
https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
North America
Europe, Middle East and Africa
Asia Pacific