Opening a PDF inside Flash compile errors

I'm trying to open a pdf inside flash.  I followed a tutorial online but I'm have issues with the compiler.  Here's my code:
import flash.html.HTMLLoader;
import flash.html.HTMLPDFCapability;
import flash.html.HTMLWindowCreateOptions;
if( HTMLLoader.pdfCapability == HTMLPDFCapability.STATUS_OK )
    var htmlLoader:HTMLLoader = new HTMLLoader();
    var url:URLRequest = new URLRequest( "01_Advanta2_Master.pdf" );
    htmlLoader.width = 800;
    htmlLoader.height = 600;
    htmlLoader.load( url );
var pdfHolder:UIComponent = new UIComponent();
pdfHolder.addChild (htmlLoader);
    addChild (pdfHolder);
It results in these errors:
1046: Type was not found or was not a compile-time constant: UIComponent.
1180: Call to a possibly undefined method UIComponent.
I've tried to import fl.core.UIComponents in the beginning but that resulted in this error:
1172: Definition fl.core:UIComponent could not be found.
Any help would be greatly appreciated.

You need to have components in the library in order for them to be accessible.

Similar Messages

  • How to load a pdf inside flash

    I need open a pdf inside flash how I do this?

    armandix,
    > I need open a pdf inside flash how I do this?
    You can't, really. Flash Player doesn't support Acrobat.
    Specifically,
    you can't open a PDF in Flash and have it act like a PDF
    (scrollable,
    searchable, etc.). But you can certainly convert your PDF (or
    a page from
    your PDF) to an image format and import that.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Have installed and uninstalled Adobe Acrobat XI Pro on my Dell desktop running Windows 7 Professional. Each time I try to open a PDF file, I receive ERROR: 16 message. Would appreciate any suggestions. Thanks.

    Have installed and uninstalled Adobe Acrobat XI Pro on my Dell desktop running Windows 7 Professional. Each time I try to open a PDF file, I receive ERROR: 16 message. Would appreciate any suggestions. Thanks.

    Hi Doug Talbott,
    Please refer to the page associated with this link (Configuration error 16 | CC, CS) and follow the procedure detailed for Windows 7 and let me know if your issue gets resolved.
    Regards,
    Rahul Tyagi

  • I am using Adobe Pro 11 and on opening a pdf I am getting error 'Insufficient Data for an Image'. Please help and provide a workaround if the solution not there.

    Hi all,
    I am using Adobe Pro 11 and on opening a pdf I am getting error 'Insufficient Data for an Image'. Please help and provide a workaround if the solution not there.
    I have already set the preferences to for page view to low zoom settings, and page fit view settings, but it never opens the pdf. Please check and provide a solution asap.
    Thanks in advance!

    Most of the documents have sensitive info on them.  I will have to do some looking for some that i can share, but will get something to upload (dropbox) as soon as I can.
    Thanks for you help.

  • 2 Problems - Can't open a PDF inside IE 8, can't open a link in a PDF

    I am running Vista Business on a Lenovo ThinkCentre with dual core Intel processor, 2 GB RAM. I have 2 problems with Reader 9.3.0.
    First it will not open a PDF inside IE 8. Instead it opens the PDF in a new Reader window. It does open a PDF inside Firefox. In Edit|Preferences|Internet the Display PDF in browser checkbox is checked. In IE 8 Tools|Manage Add-ons|Run without permission Adobe PDF Reader is Enabled.
    The second problem is that I cannot open a link in a PDF file. When I place the cursor over an e-mail or internet link in a PDF file the little hand appears. However when I click on the link nothing at all happens.
    Does anyone have any suggestions on how to fix either of these problems?
    Ira B.

    In the replies I have been receiving, nobody has said which problem of the
    two I wrote about they are experiencing. I assume that all are using Vista
    (I use Vista business) since neither of these problems appear on my machine
    that runs XP Pro.
    I have managed to get around these problems and am happy to share my
    experiences with all, but I advise not getting too excited since my solution
    may not be exactly what others might want. Of the two problems, the one
    where I was unable to open an e-mail or web link in Acrobat Reader was the
    more serious for me. I edit a couple of newsletters that almost always
    contain some of these links and I need to be able to test them to make sure
    they are correct before I send out a newsletter.
    I found out that if I used Foxit Reader in place of Acrobat Reader I was
    able to open all links with no problems. For a while I had both readers
    installed with both able to open PDFs in IE8 but only Foxit able to open
    links in a PDF file. Then Foxit Reader began to exhibit the problem of PDFs
    not opening in an IE8 browser window. Then the problem spread to Acrobat
    reader. I have no idea as to the cause.
    I tried removing and re-installing both Readers but was unable to rid myself
    of the problem. I then contacted Foxit support for some assistance. Yes,
    unlike Adobe, they actually try to help if you are having a problem with
    Foxit Reader. Foxit support gave me a procedure to try but it did not work
    at first. I finally found out that I had to install Foxit Reader with User
    Access Control (UAC) shut off in Vista. If UAC was not shut off, Foxit's
    addin for IE8 would not install properly. Then I re-enabled UAC and followed
    the procedure Foxit support suggested which is:
    1. Login your machine with admin account, right click on > FoxitReader.exe
    2. Select "Properties"
    3. Select "Compatibility" tab
    4. Uncheck "Run this program as an administrator" under "Privilege Level"
    5. Select "Show settings for all users"
    6. Click on "Continue" if there is a prompt.
    7. Uncheck "Run this program as an administrator" under "Privilege Level".
    (This was already unchecked in my case.)
    After this Foxit Reader opened PDF files in browser windows in both IE8 and
    Firefox.
    I think that this procedure might work for Acrobat Reader; at least I think
    it might be worth a try. I don't want to try it myself because my computer
    is working just fine right now with Foxit Reader and I don't want to take
    the chance of screwing it up since it was so difficult for me to get to this
    point.
    If someone would like to try it, I suggest removing Acrobat Reader, then
    disabling UAC and re-installing Acrobat Reader. Then enable UAC again. Then
    follow the 7 steps above for AcroRd32.exe. I am hopeful, but by no means
    certain, that then PDF files will open in an IE8 browser window. I would
    appreciate it that, if anyone tries this, they would let me know their
    results. I regret not being able to provide a more definitive solution.
    irablum1

  • Open local PDF inside Air iOS app

    I am developing an AIR for iOS app for the iPad. My client would like the app to open a local PDF file within the app, rather than launching an external app (such as Adobe Reader). This is to give a seamless experience when using the app. I've seen that distriqt.com produce the 'PDF Reader' Native Extension based on www.vfr.org. VFR appears to have a series of interface controls that open along with the PDF, which I don't require. I emailed Distriqt a week ago to clarify, and have had no response.
    Does anyone know of any other solutions to open a PDF inside an AIR iOS app?

    I've managed to load a PDF successfully inside my AIR iOS app, using the code from http://thatsthaway.wordpress.com/201...1/#comment-102.
    However, I've just come across a weird feature / bug when viewing a PDF using stagewebview. I have a PDF that contains several internal hyperlinks, each navigating to a page within the same PDF document. If I select any of the hyperlinks, they do jump to the intended pages. However, if I reselect the same hyperlink again, it no longer works. If I select a different hyperlink, and then reselect a previous link, it will then work, but if I select the same hyperlink twice in a row, without selecting a different hyperlink in between, the link fails to work. The PDF hyperlinks all work ok outside of my app, on both Windows desktop and an iPad, just not inside of the AIR app.
    Any ideas?

  • Downloaded the update for Adobe Reader Xl from 10.  Now the Reader will not open a PDF, if says  " Fatal error - Failed to connet to DDE Serer.

    Downloaded the update for Adobe Reader Xl from 10.  Now the Reader will not open a PDF, if says  " Fatal error - Failed to connet to DDE Serer.  Can anyone provide a solution.
    I cannot find a DDE  file on my windows 7 computer.

    Uninstall Reader. Use Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs to remove all traces of Reader. Download a new copy from http://get.adobe.com/reader/enterprise
    Install.

  • Can we open Web pages inside Flash Movie!!!!!

    Is there a way to open HTML Webpages inside Flash Movies
    Please Help...............

    you can display certain html tags in an html-enabled
    textfield or a textarea component. but you can't display a webpage,
    per se.

  • Adobe Reader not opening PDF Portfolio - Flash player error

    I have Acrobat 9 Standard installed on my PC and I created a PDF Portfolio. Acrobat Standard can open that Portfolio just fine.
    I also have Acrobat Reader installed (11.0.2).and have Adobe Flash Player (11.7.700.169) installed. Both Reader and Flash Player work fine independently on PDF or Flash content.
    However when I try to open the PDF portfolio with Reader, I get the following Error:
    :"To view the Flash technology in this FDF file; please install this version of Flash player that supports Adobe reader and Acrobat".
    The Dialog box with the message above has a [Proceed to download page] button (which does nothing but bring up Reader with a black page), a [Learn more] button (similar behavior), and a [Cancel] button.  Both Reader and Flash are the latest versions as of today (4/16/2013).
    Any help or insight with this is appreciated.
    Thanks !
    Bruce Dana.

    Thank you.  What you suggested di the trick !
    Bruce Dana, PE, CPM
    Manager, Engineering / CADD Systems Office
    Florida Department of Transportation
    Engineering / CADD Systems Office
    605 Suwannee Street, Mail Station 69
    Tallahassee, Florida  32399-0450
    • Voice: (850) 245-1606
    Toll Free: (866) 374-3368 extension 1606   | Fax: (850) 245-1601
    • E-mail: [email protected]<mailto:[email protected]>      | Web: http://www.dot.state.fl.us/ecso
    How am I doing?  Please contact my Director, Duane Brautigam, PE -  Office of Design at:
    [email protected]<mailto:[email protected]> with any feedback.
    THINK GREEN: Before printing this e-mail please ensure it is necessary - conserve our resources!
    Pursuant to Section 119.011 (11), Florida Statutes, all electronic communications made or received by Florida’s Department of Transportation, including its officers, employees and agents, are public records.  Unless exempted under Section 119.07(6), Florida Statutes or another statute, all public records may be inspected and copied by any person desiring to do so under the supervision of the custodian of the public records.

  • Not able to open Acrobat 9 PDF when trying to open the pdf inside 4 sublevels of windows

    Hi,
    We are using
    mAVDoc = new Acrobat.AcroAVDocClass();  
    mAVDoc.OpenInWindowEx(mPath, this.Handle.ToInt32(), 1, 1, 0, 1, 2, 0, 0, 0);
    to open the pdf. This working fine when we try to open in a windows form but it is failing when we try to open in inside 4 subsections of windows.
    Also note that this was working fine with Adobe 7.  Can you please help me with this
    Thanks,
    Vidhya
    Note: I was not able to upload the image (bmp) of the application. Getting error that it doesnt support this content

    Hi,
    Please let me know if you require any other details to help me with this issue.  This is a critical issue for our customers. A quick solution will be much appriciated
    Thanks,
    Vidhya

  • How to open report.pdf file? getting error message file cannot be previewed pdf preview handler

    how can I open a report.pdf file that shows error: file cannot be previewed because of an error w/ pdf preview handler

    Hi pfmercerville,
    If you are running the 64-bit version of Windows 7 (or Vista), you will find that your PDF files do not preview in Windows Explorer as they do in the 32-bit versions. Instead, all you see is a message stating that This file can’t be previewed. To enable this functionality on your 64-bit operating system, follow these steps.
    1. Click the Orb (Start Button).
    2. Go to the Search programs and files textbox and input regedit.
    3. Select regedit.exe from the results.
    4. When the UAC prompt appears, click the Yes button.
    5. In the left pane of the Registry Editor, go to (and select):&#8232;
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{DC6EFB56-9CFA-464D-8880-44885D7DC193}
    6. In the right pane, locate AppID.
    7. Change AppID value to {534A1E02-D58F-44f0-B58B-36CBED287C7C}.
    8. Restart your computer for the change to take affect.
    Regards,
    Rave

  • Open a PDF inside a PDF....

    Hi people.
    I'm making my portfolio in this program that i don't really much how to use, but everything it's ok except one thing....
    I was trying to make a menu where you can click and open another PDF file. Ok that works, but when I click, the other file opens and the  PDF with the portfolio close up, and i want to the option let you go back to the portfolio again. I want to know if is a way to open the second file in a different PDF window, or if it doesn't have a solution in which similar format can I let the second pages. Thank you

    The only way to put a PDF inside another PDF that I know of is to make a PDF Portfolio. This feature is available in Acrobat 9 and Acrobat X.
    You should ask about it in the Adobe Acrobat forums. Here's probably the most relevant one: Creating, Editing & Exporting PDFs

  • Opening A PDF Using Flash

    OK, so there are countless hits on Google regarding this
    question, but there is not a single decent answer out there which
    seems to work. All I need is a surefire way of opening a PDF
    document after the user clicks a button. That is all. Most of the
    answers on the web talk about batch files for use on a CD or
    whatever. All I need is a simple way of getting the PDF to open.
    I've tried using the getURL command but this only works if
    the browser window is already open, otherwise it gives an error.
    Any ideas?

    Yes there is. Use FlashJester JStart
    http://jstart.flashjester.com
    Download the evaluation copy and look at the example files
    provided.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. -
    http://www.flashjester.com
    There is a very fine line between "hobby" and
    "mental illness."

  • Opening external pdf from flash exe

    I've looked around the site and I havent found anything
    refering to this.
    I'm creating an Interface in flash which will browse through
    a list of pdfs. This interface will be published on a CD-ROM for
    distribution.
    How do I launch the pdfs directly from a link in the flash
    exe? Since it is not playing within a browser I can't use getURL.
    It's been years since I've had to do this, and the last time
    I used the fsCommand to launch an exe file created in Director
    which would in turn open the pdf file. I'm hoping there is a better
    solution.
    Thanks for reading this!

    Try FlashJester JStart
    http://jstart.flashjester.com
    Download the an evaluation copy and try it yourself.
    Please look at the example files given.
    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

  • Open a  PDF from Flash projector file?

    Hi everyone,
    im using Flash CS4 slide presentation to make a education CD. In the end of the slides i want to open a pdf file.
    How can i do it? Is it a east way to do it?
    I publish the project as a projector file. I tested to use GetURL but the file wont open. I have the pdf-file
    in the same folder as the projector exe-file.
    The education will be distributed on CD-ROM.

    you need to adjust your flash player security settings:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l

Maybe you are looking for

  • Reg:Return purchase order

    Dear All, I have created a returns PO with ED (821) now in J1IS while capturing the excise I've maintianed different value from the purchase order since the vendor has come up with different value so I changed it in j1is and migo now while doing MIRO

  • Spatial query in a distributed environment

    We want to compare two spatial tables. We have (at present identical) tables on two computers GEOSRV0 and NB25. On both we have Oracle 10.1.0.2. GEOSRV0 has the WINDOWS 2000 operating system installed, on NB25 there is WINDOWS XP Professional. The ta

  • Blank pages in pdf file!?!

    I just created a 100-page book with 567 photos. All looks well in iPhoto, but when I "order" the book and then look at the generated pdf file, the first 74 pages look fine, but pages 75 to 100 are blank! I've repeated this process several times and e

  • BIP desktop vs BIP enterprise edition.

    Hi, WHat is the difference between BIP Desktop and BIP Enterprise editon. I installed BIP Desktop first and coverted few Answers reports. I tried to sftp the report and was not successfull. I contacted oracle support and was informed that I need to i

  • Whay sax (jaxp) so sensestive ?

    i have intresting problem ;) my applet read a big xml files and everything is ok. but when i have a problem for example NullPointerException in my applet the parser is crashed how can i make that the parser will ignore from that kind of problem :)