SWF in PDF - keyListener

All:
I have a SWF with a keyListener that I am using to toggle the visibility of a movie clip. This works great when I play the SWF in the FlashPlayer.exe.
When the SWF is placed into a PDF, the mouse events all work great, but the keyListener no longer works.
Any ideas as to why this might be?
Matt

Probably Acrobat had other plans for the key :-)
No, honestly:
Try out a rare key like ~ and see if that works
a second possibility would be: the stage of the swf has no focus or the movieclip you focused has disappeared from stage (so the Event can not bubble up)  If you click on a movieclip to make it disappear, that disappeared moviclip has still the focus, and so naturally keyboardevents won`t work.
set the EventHandler explicitly to the stage
stage.addEventListener(KeyboardEvent.KEY_UP, keyHandler);
and after clicking on something that gets removed add the following code to your mousehandler (to regain that Overall-focus)
stage.focus = stage;

Similar Messages

  • Acrobat 9 Pro and straight .swf to PDF conversion

    I have an electronic document that is several .swf files, one
    file for each document page. Using cutepdf I can put each file in
    firefox and then print the the page to pdf. This is very tedious
    since I have 1000+ pages. I would prefer to speed this process up
    with AA9.
    I have Adobe Acrobat 9 Pro Extended. When I try to create a
    new PDF from the .swf file I get some dialogue that treats the .swf
    as embedded content. This puts an annoying play button at the
    bottom of the converted page and makes it incompatible to view in
    my iPhone or other handheld devices. It would seem that AA9 treats
    the .swf as .swf and doesn't convert it to .pdf like cutepdf does.
    I have to believe that AA9 can ignore the media type of .swf
    and straight convert the content in the .swf to .pdf without
    treating it like I want to embed it as a flash file inside a pdf.
    How is this done? Thanks in advance.

    Thanks for your reply. This problem has yet to be resolved
    sadly. The play button isn't a huge deal as that the document wont
    convert into straight PDF. I finally gave up and decided to batch
    convert all of the files and just deal with the embedded content
    angle AA9 takes. Sadly this was also a failure since every file
    that was converted (1200+) wants me to confirm the embedded content
    settings. Very annoying. Any help on these subjects would be
    greatly appreciated.

  • Issues embedding swf in pdf document?

    I have created a small application to illustrate Snell's law as a flash file.
    The idea is to integrate it in a online educational book and I have already done so with several simple animations.
    This was to be my first application with user input other than start/stop buttons.
    The application works fine in a browser or as a stand-alone flash file but when I embed it in the pdf file it doesn't execute properly, nothing happens when buttons are pushed to calculate the equations.
    This is my first question here so I don't know how to add my application or an example of it embedded in a pdf document but I guess including them from a filehosting site could work?
    The swf file:
    http://www.filehosting.org/file/details/408159/Snells_Law.swf
    The PDF file:
    http://www.filehosting.org/file/details/408160/test.pdf
    I used CS6 Flash professional to create the SWF file.
    thanks in advance
    edit: also including the original fla-file: http://www.filehosting.org/file/details/408478/Snells_Law_3.fla
    By moving a piece of code up through the lines I have found that after line 377, nothing gets executed. Any help would be greatly appreciated.

    I see no syntax errors and your code works well so there shouldn't be any issue embedding it. In Acrobat XI I get a preview of the plugin required to view the SWF and I must activate the plugin (very common on windows) by clicking on it. Once I do the SWF embedded in your document works for me, although it doesn't overlap the preview which is stretched to the size of the page whereas the plugin container is the size of the original document. So it works fine for me when viewing as a PDF and if you resize it down to its original document size it should overlap the preview properly. Plugin containers often require permission/activation (a mouse click), that's normal.
    I was able to target 10.1/10.2 as the SWF export target rather than FP11. You may want to try downgrading your publish preferences to that which should reduce the overhead of the plugin container. Outside that I see no reason you should have an issue embedding this. I don't have a full copy of master at home to create the PDF to test (openoffice isn't really capable of it) so you'll have to test that yourself but the PDF you linked works for me.

  • Indesign to swf in PDF will not play sound

    Hi, I have created a book with narration on the pages in Indesign. I have exported it to .swf. When I run the .swf file the cool page turning anmation works, the sound plays on each page - great! Now I want to embed the .swf file in a PDF so I can sell my new narrated book in a PDF format.
    I drag the .swf into Acrobat Pro and then right click to get properties - I import the supporting audio files in .MP3 format (they just played fine OUTSIDE of Acrobat a minute ago) Then, I run the pdf - the page animation looks great but there is no sound.
    I tried the same process with the latest demo of Acrobat X Pro - same results.
    Any thoughts here?
    Steve

    hello Steve,
    i have a problem with importing a swf-File in pdf.
    After importing the swf in pdf, the sound gets lost.
    You wrote in your thread that you had the same problem & found a solution.
    What is the solution???
    Could you please describe me your experiences?
    Thx a lot,
    kingrookie99

  • Importing SWF to PDf problem since updating 10.1.6

    Ever since updating to 10.1.6 all of a sudden our SWF flash presentations  have stopped importing to pdf correctly
    In version 10.1.4 we used to right click the swf and then select open with Adobe Acrobat X which would allow us to make a pdf of our presentation without any issues and showing correctly,
    since updating we can no longer do this without strange sizing issues
    Now, in 10.1.6, when we import the swf the size is tiny and either a long strip horizontally or vertically and you have to zoom in 400% to see the document properly and it no longer reads the actual SWF extents and seems to have random extra document space around it
    the sizing/scaling cropping  of the swf in pdf is completely out, like its not respecting the flash document width and height and adding extra space....
    also we have had to remove fscommand("fullscreen", "true"); as the swf wont work unless its removed
    Has anyone had any similar problem with SFW since updating
    in the image is a simple example 550 x 400 swf when it goes into pdf it ignores the document size and shpws extra space

    Ive tried all the diferent stage scalemodes but it seems to automatically decide on what the extents should be when importing the swf wheras previously it would respect the document dimensions of the SWF
    here is a pdf from swf file created a few days with acrobat version 10.1.4 on the left with one created today with 10.1.6  (document size is 1024 x 768 in flash), something has changed and I cant work out what it is  -  i have added an image resizing function to the image, which is why its constrainign to the view, but how did it come up with the tiny rectangle document size ?

  • White border problem when zooming with SWF in PDF

    Hi Everyone,
    I have posted my original querry in the Indesign forum:
    http://forums.adobe.com/message/5176893#5176893
    I'm having problems with zooming whedn trying to create a PDF with SWF inserted.. at certain levels of zoom I get a white border on the left and right of the document which squashes the content into the middle and makes it a little pixelated.  I also get a thin white border on the right when zooming out.  Does anyone have any ideas where I might be going wrong?
    Thanks,
    Em

    Not wishing to be rude, but that workflow is not supposed to be used that way.
    InDesign's ability to export SWFs is intended for showing the file in a Web page, and Acrobat's ability to embed SWFs is only intended for small annotations placed within the pages of a conventional PDF file. By placing the entire Layout as a SWF you are in effect playing the entire thing as a movie in Flash Player - all the advantages of the PDF format are completely lost, there is no vector-rendering of any content or text, and users will find it very hard to understand what's going on (the navigation buttons in Acrobat or Reader will not work, text is not searchable or accessible, multiple pages cannot be printed, etc.).
    It's not entirely trivial to do this 'correctly', as at the moment we don't have full support in the PDF standard for all the interactive features that InDesign can apply to page objects - that's why they are grouped into PDF and non-PDF in the various selection menus in InDesign. Rather than saving as a SWF you should be using Export to Interactive PDF, and ensuring that the various interactive items and media are all selected on the export dialog.
    Basic stuff such as links and video will export just fine that way, and the PDF will preserve everything else in the Layout as native text or graphics so it'll look fine, navigate properly and be searchable. Animations and buttons will not work as expected, so you may have to revise their behavior if PDF is your intended output destination.

  • Swf to pdf conversion?

    I take degree classes online and the iPad does not like .swf files which one of e-books is in. It attempts to open in Evernote, but does not. Does anyone have any ideas or experience with this issue so i can have access to my books?

    swf is video/animation, PDF is documents. there might be a way but it'd be several steps, using several programs and a computer, not the iPad. Other than converting you might look into a browser that opens Flash files. Puffin and Skyfire are two I see recommended. Or find out if they have a non-flash alternative.

  • Swf to pdf conversion problem

    Don't really know if this is the best forum for this, but....
    I have a few flash files (swf) which play perfectly well in
    Flash Player, in the browser, anywhere you like!
    I've recently been trying to convert these (with Pro 8) to
    pdf files, and the process seems to complete successfully.
    These new pdf files open and run well on my own PC, but after
    sending a few to another PC, the viewer gets the following warning
    - "'cannot play media clip because there is no player available
    that can play the media while satisfying the authors intention as
    well as your security settings'."
    I've checked the settings inside Multimedia, Multi Trust and
    Trust Manager but cannot see anything wrong.
    Can anyone help out with suggestions, please?!
    Thanks in advance....

    Upload the PDF files somewhere and we'll take a look for you.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • Embedding .swf in PDF files

    Hello there,
    has anyone experience embedding swf files in a PDF document?
    I managed to create a document from a HTML file wich has a  swf movie inside, but i get only a  green square poligon.
    I'm using Adobe Reader 9.2.0 under windows xp
    thanks for your attention
    MS.

    Adobe Reader can't create pdf files. What do you use?

  • Embedding FULLY SCALABLE SWF in PDF

    Hello...good people...
    I would like to embed a FULLY SCALABLE Photoshop Zoomable photo (swf) and Adobe Bridge web gallery (swf) inside my pdf. After watching the AcrobatUserCommunity Tech Talk tutorial "Embedding Flash in PDF" - September 2009 (https://adobechats.adobe.acrobat.com/p56758970/?launcher=false&fcsContent=true&pbMode=norm al) and following its instructions (I encourage EVERYONE to watch this entire video...but for this topic 0:29-0:46 is what you need to watch...awesome stuff!!!), I am glad to say I can successfully embed a PS Z-photo and Bridge web gallery. My problem is...the magnification (zoom) on the Z-photo AND gallery has to be 100% and higher. Anything lower, cropping occurs. My question is: how do I modify the Flash files and what applications do I use to make Zoomify and the Bridge web gallery FULLY SCALABLE? In plain English, I'd like to  see the ENTIRE Z-photo and gallery at 50% or even 25% zoom.
    My tools:
    Acrobat 9 PE
    Flash Pro CS5
    PS CS5
    Flash Builder 4
    Bridge CS5
    Sothink SWF Decompiler
    If anyone can provide step-by-step instructions as to how to do this, I would greatly appreciate it!!!

    Adobe Reader can't create pdf files. What do you use?

  • Embedded SWF in PDF, "form" text transfer to said SWF

    Thanks in advance for your help.
    { also posted in the Flash Professional forum }
    How to have a SWF (embedded in PDF) load a form text field: "value" ?
    Objective: given;
    ~ SWF is embedded in a PDF
    ~ form field in PDF = "name1"
    Coding task;
    how to script the SWF's text field so that it can use the PDF's form text field
    while embeded in the PDF (that has a form field / "value").
    many thanks
    Dale
    Fremont, CA

    ActionScript in the SWF has direct access to the Acrobat JavaScript model through the ExternalInterface object.
    Read this blog:
    http://pdfdevjunkie.host.adobe.com/RMA1_acrossTheBridge.shtml
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • Need help with embedded SWF in PDF as navigation

    Hi,
    I was wondering is there a way to have an embedded swf navigate to different pages of a pdf?
    Example:
    My swf is on page one. There are mulitple buttons in the swf, when clicked it will take you to page 3, or 5, or 7, etc.
    Currently, when I click on a button, it DOES take me to say page 4, but the content on page is the SWF file from page 1, and not the content that is suppose to be on page 4. Has anyone else experienced this problem?
    This is what I have in the flash action:
    btn_1994_1.addEventListener( MouseEvent.CLICK, p1994 );
    function p1994(e:MouseEvent):void{
         //addChild(pop_1994);
         doExternalInterfaceCall("gotoTarget", "pink");
    function doExternalInterfaceCall(myfncall, parm)
        flash.external.ExternalInterface.call(myfncall,parm);
    And this is what I have in the javascript of the pdf:
    function gotoTarget(name)
         this.gotoNamedDest(name);
    Please help me fix this problem.
    Thanks in advanced!
    ps. I am using Acrobat 9 Pro

    can anyone help?

  • Closing a Flash (.swf) in PDF

    I am trying to close a .swf file that appears in a floating window when triggered from the pdf.  The .swf file was created using Captivate and it comes with its own controller (skin).  The Exit button in this controller does not seem to work.  When you click it, the floating window does not close and the .swf file continues playing.  However, the other buttons on the controller do work.  Is there some parameter or Flash Variable that I need to set in the Flash Properties dialog box?  Does anyone know what that variable is or how you can make the Exit button work?
    Thank you,
    Peter
    [email address deleted]

    I am using Acrobat 9.
    I am embedding the file with the Flash tool (Tools --> Multimedia -->Flash).  I have tried to play the Captivate Flash file both in the page and from a Floating Window.  Is there some setting in the Properties dialog that needs to be set?  Is there a Flash Parameter that will close the window and stop the file?

  • Embed interactive SWF in PDF - losing interactivity

    I have a simple swf file that has multiple squares that change color when clicked. I need to embed it into a PDF so when viewed, you can still click the squares to change the colors. However, when I embed it, the squares no longer change colors when clicked. The PDF is built in Indesign CS6 and I have tried embedding the SWF file both in Acrobat Pro and in Indesign, both with no luck.
    The SWF file actually ahs multiple instances of the same swf file loaded into it and it works fine when tested in a browser and in Flash and also when I open it from Windows Explorer.

    Have you attached those child SWFs to the resources collection for the Rich Media Annotation so the parent SWF can load them?
    kelsey.peterson wrote:
    The SWF file actually ahs multiple instances of the same swf file loaded into it .

  • Embedded swf in pdf does autoplay in IE(9), does not play in Firefox and Chrome.

    I created a pdf with swf embedded. Set it to autoplay.
    Does play fine in IE9.
    In Firefox and Chrome video shows up (initial picture) with a play button.
    Will not play, not auto nor when I click the play button.
    Firefox and Chrome I just downloaded, so the newest versions.
    Windows 7 professional.

    Found the solution for Firefox.
    In firefox, goto tools/options.
    Look for Portable Document Format (PDF).
    Select it and in drop down choose Use Adobe Acrobat (in Firefox) instead of Use Firefox (Default)
    Thanks but no thanks, Acrobat team.

Maybe you are looking for

  • Windows encountered problem

    Hi all, I have a problem on my Windows Vista that began afetr the purchase of an external Hard Disk Freecom. A few days afetr the purchase I disconnected it while it was writing and, since that moment, every time I connect and disconnect it, the PC g

  • Portlet cannot be displayed due to unknown error

    In our application we are getting Error, "portlet cannot be displayed due to unknown error" from ALUI portal. There is no enough informaiton apart from this. This error is not consistent, can happen any time. Can you please advice what could be the c

  • Partition of table in real life

    Hi all i have read about partition of table. but i have lot of question in this topic. 1.which one is better range partiting hash " list " composite " 2.how we can use partition in select statment when we don't know about the partition values. suppos

  • Can anyone give me step by step for calling FM from one SAP to another SAP

    can anyone give me step by step for calling FM from one SAP to another SAP points will be rewarded, thank you, Regards, Jagrut BharatKumar Shukla

  • Office 2013: Getting 5 days trial instead of 60 days

    I download 700MB Office 2013 from Microsoft's Technet Evaluation Center after learning (from the same website) that the evaluation period is 60 days. But after installing, the Office is saying that evaluation period is 5 days. I don't have product ke