Hi! I hope someone here will have an answer for me, or a suggestion for a workaround, as I've got a deadline on Thursday.
I'm creating an interactive PDF in InDesign CS5 (v7.0.4) with an image file that rotates 45 degrees each time the user clicks (until 360 degrees).
This has been done all in InDesign by adding a custom rotation animation to the image file, then group it with an identical frame, adding another rotation animation to that, ...etc. I found this procedure on some other forum post, and it works excellently - both in the preview and when exported to SWF (yes I know that is necessary for a PDF).
The SWF is then reimported to InDesign on a separate spread and exported as an Adobe Interactive PDF. Opened in Acrobat X Pro (with last update) it still works, but there is the inevitable white background to the SWF animation. I need to have stuff in the foreground, but not been able to arrange it properly in either applications.
In its properties within Acrobat I select transparent background ( - it was also exported as such, but that is known not to work). I exit the preferences and re-enable the SWF, and here is the problem:
The animation appears to "skip" the first, and thereafter every second, rotation of 45 degrees. Hence, on first click, it jumps to 45 degrees, then rotates correctly to 90 degrees. On second click, jumps to 135 degrees, then rotates correctly to 180 degrees... And so on.
Interestingly, by turning transparency back to off, the animations works flawlessly again!
I have tried everything: save, quit and reopen; do the same in bootcamp Windows on Acrobat 9 (I'm using OS X Lion); reorder and add duplicate 45 "frame-group" animations; etc... And I cannot find anything similar on the forums.
PLEASE give me a hand, and enlighten me - or if it's a bug or completely impossible, let me know that too.
My only alternative (I think) is to make it a timed animation, hence no user input - but with transparent background.
Thank YOU very much for your time!
Sigurd
Posting an example would help - we don't have the time to construct test files for every question on the forum and this sounds like a case-specific issue. Also, if possible attach the original SWF or FLA file to the PDF so we can run it through the debugger in a different PDF.
Hi, Dave.
I couldn't find any way of attaching a PDF here, so I uploaded the PDF here. Seems a bit ragged straight in the browser, but works... (minus the transparancy issue)
Additionally, the original (embedded in PDF) SWF-file can be seen/downloaded here.
I've tried adding the SWF within Acrobat, but same thing happens. No idea about debugging though ![]()
Thank you for helping out.
Realise I should have included a broken version too.. So uploaded that as well here.
Afraid my deadline is tomorrow, so if I don't find a solution soon I'll have to do something else... :/
Yes, there is an issue with mouse event tunneling in transparent-background RMA objects - for every click-and-release cycle the mouse DOWN event is triggered twice but the mouse UP event is triggered once.
You could change the Actionscript event listener to trigger your animation on the UP event (which is actually the correct event for capturing mouse clicks) or use an opaque background.
This sounds very promising, thank you!
But in InDesign the animation panel only has the event-options: "On Page Load", "On Page Click" (that I'm currently using), "On Click (Self)" and "On Roll Over (Self)".
Think I had some other issue with "click (self)", but will try again.
No "On Release"-option except with buttons.
Edit: there is an "On Button Event", but its greyed out??
"On Click (Self)" seems to trigger on mouse UP event, but unfortunately spins my animation around like mad.
Think it does 315 (edit) instead of 45 degrees, but then starts the next one back at 0.
I will try a few more times, but unfortunately don't have time to do too much trial and error.
Any last ideas are appreciated, but thank you very much anyway for explaining the issue anyway.
North America
Europe, Middle East and Africa
Asia Pacific