0 Replies Latest reply: Aug 18, 2010 11:55 AM by Petteri_Paananen RSS

    External SWF in InDesign SWF

    Petteri_Paananen Community Member

      Hi!

       

      I have been playing around with SWF files exported from InDesign CS5. You can´t write any code there, just use ready-to-use stuff. I just wonder would it be possible to create SWF file with some actionscript in Flash Professional, and place it to InDesign... and use the code there.

       

      I tried to make a button that would take user to frame 3. I used following code in Flash Professional:

       

      btn.addEventListener(MouseEvent.CLICK, pageturn);

       

      function pageturn(e){
      MovieClip(parent.parent).gotoAndStop(3);
      }

       

      Then I exported that file as button.swf and placed it to six page long InDesign document. I exported it as SWF. When it opens, FP recognizes my button but nothing happens when I click it. Any ideas?