These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Drag a button

Koen_Wyckmans
Registered: Feb 9 2009
Posts: 18

Hi All,

i want to make a dragable button in Acrobat.

Can someone help me to get started?

thanks

Koen

My Product Information:
Acrobat Pro Extended 9.2, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This one is easy. Use the MouseDown event to start a timer that tests the mouse postion and moves the button to be under the mouse at all times. On MouseUp kill the timer. Of course there are a lot of little details in this one.

Take a look at the "Bouncing Button Game" PDF here:
http://www.pdfscripting.com/public/47.cfm

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script