Skip navigation
sigurd.norsterud
Currently Being Moderated

Interactive SWF breaks when setting transparent background

May 7, 2012 5:14 AM

Tags: #acrobat #flash #transparency #swf #indesign #interactive #animation #transparency_problem

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

 
Replies
  • Currently Being Moderated
    May 8, 2012 12:05 PM   in reply to sigurd.norsterud

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    May 9, 2012 9:46 PM   in reply to sigurd.norsterud

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    May 11, 2012 1:28 AM   in reply to sigurd.norsterud

    Unfortunately there's not a lot you can do with InDesign - you can't customize the Actionscript it creates. Building the SWF in Flash or Flex is the only option to gain control over the code.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points