Michal Kvasnička wrote: > Good afternoon. > > Many thanks, this solves the problem -- at least partially. The frames > are `walking' now, but new problems appeared. I found that when I set > `clickin=...', it is set it automatically to `clickout' as well, so one > mouse click runs the JavaScript code twice. So I've set it this way: > > \definefieldstack[fgolds2] > [sgolds1,sgolds2a,sgolds2b,sgolds2c,sgolds2d,sgolds2] > [frame=off,option=,clickout=JS(Walk_Field{fgolds3}),clickin=] > > It's better, but I found that now frames are walking in a strange order. > It is rather puzzling, since when it is invoked by \goto{...}[JS(...)], > it works well. Moreover, it does different things at AdobeReader 7.x > under Linux, and Acrobat 4.x under Windoze. > > Can you help me to solve it?
Took some time, but it works now. What I don't understand, is the strange behaviour of the offset parameter in this case. See attached file. Greets, Peter > Many thanks once more. > M.K. > >
% interface=en output=pdftex % Time-stamp: <Samstag, 22 April 2006 21:53:30; test.tex> % \setupinteraction[state=start] \setupcolors[state=start] \starttext \tracefieldstrue \switchtobodyfont[96pt] \def\FS#1{\framed[width=4cm,height=4cm,strut=no]{\red\bf#1}}% \definesymbol [empty] [] \definesymbol [one] [\FS{1}] \definesymbol [two] [\FS{2}] \definesymbol [three] [\FS{3}] \definesymbol [four] [\FS{4}] \definesymbol [five] [\FS{5}] \setupfield[interaction] [width=4cm,height=4cm, % frame=off, framecolor=blue, offset=none,% default offset causes different positioning of walk button and fieldstack clickin=JS(Walk_Field{sequence})] \definefield[Walk][check][interaction][empty][empty] \definefieldstack[sequence] [one,two,three,four,five] [frame=off, offset=none,% default offset causes different positioning of walk button and fieldstack clickin=JS(Walk_Field{sequence})] \defineproperty[interaction][layer][title=walkfield, state=start] \vbox{\forgetall \nointerlineskip\smashedvbox{\fieldstack[sequence]}% % \startproperty[interaction]% \nointerlineskip\field[Walk] \stopproperty% } \blank[2cm] \showfields \stoptext %%% Local Variables: %%% mode: context %%% TeX-master: "" %%% End:
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context