How to embed the PDF in flash based android app

Im trying to create android and iPad application using the flash CS 5. Facing a problem to open the PDF file with a button inside my application.

I have the PDF file and I want, when I press a key, then PDF file opens. I use this code

myPDF.addEventListener (MouseEvent.CLICK, ldr);

function ldr(event:MouseEvent):void {navigateToURL (new URLRequest ("Dimensions.pdf"), "_blank") ;}}

This code works fine in the computer but in android Tablet I got this error message * "ERROR, the ducoment path is invalid."

Note: (my flash (application file) file and the PDF file is in the same folder in my computer)

Please suggest me how I can open the PDF file using the button inside my application.

for your button to work when you press on, you must use:

public class bpdf extends SimpleButton

{

public void bpdf()

{

the constructor code

this.addEventListener (MouseEvent.MOUSE_DOWN, downF);  import flash.events.MouseEvent

}

private void downF(e:Event):void {}

var htm:HTMLLoader = new HTMLLoader();

htm. Load (new URLRequest ("test.pdf"));

htm. Width = stage.stageWidth;

htm. Height = stage.stageHeight;

this.parent.addChild (htm);

Create a close button for htm and Add (for this.parent) and its listener here

}

function onCloseEvent(e:Event)

{

trace ("window closed");

}

}

///////////////////////////////////

test this in the ide and confirm that your pdf is currently loaded and displayed before you test it on your android device.

Tags: Adobe Animate

Similar Questions

  • How to pass the legacy of a native Android app with minimal interruption

    It got to the point where I am recommending that my client switch their DPS app for Android native heritage. Can anyone offer an overview of the process of moving to an existing application? Most of the Adobe support documents are written for the start of a new application in native format. I need to give the customer an idea of how the transition will affect existing subscribers on the Android platform (i.e. will they need to download a new application, or if it will work as an update) and what we can do to keep the readers if they do not need to download an entirely new application.

    What complicates the situation, is that the likely customer want keep the legacy app so that we can to continue the offer on Amazon, because Kindle devices represent 60% of our non - iOS downloads.

    Thank you!

    To replace the legacy viewer existing, just use the same ID of beam used in the legacy application when you generate the native Android Viewer and then submit the application as a new version in the portal of the Google developers play. To locate the ID of group for the legacy Viewer, open the DPS App Builder desktop version and look at the list of applications. It may include a .air prefix, depending on when the application is built. If so, use the .air prefix when you specify the ID of group for the native Viewer, even if it is not an AIR application. The Bundle ID just needs to be the same. If you want two separate applications - that - I do not recommend using a different beam ID and submit it as a new application developers portal.

    The Amazon app is a different application that is unrelated to the game of Google app. You can continue to leave the application in the Amazon Appstore.

  • I am new to adobe.  Saved gall .pdf for Adobe PANEUSE Xi and can be seen on the screen.  How to save the .pdf on my Flash drive file: L?

    I am new to Adobe.  Have the .pdf file in Adobe Reader Xi and can open and see on my screen.  How to save the .pdf on my Flash Drive file: L?

    I would advise against ever record directly onto a flash drive. For no reason I can understand this often broken leaves files behind.

    Instead, just save it to your desktop and drag it to the usual flash drive (in Windows Explorer or the Finder).

  • How to display the pdf file in the apex region

    How to view pdf file in an apex html region. pdf files are stored in the column of type blob of a table. Please note this is not a static file. I am able to create a link to download and view the pdf in a new window. But it's not my priority. I need to see the full pdf file in the html area.

    I looked around the forums but couldn't find a good answer. All suggestions will be useful. Thank you

    Hi Alexandre-Oracle,

    Alexander-Oracle wrote:

    How to display the pdf file in an html apex region. PDF files are stored in the column of type blob of a table. Please note this is not a static file. I am able to create a link to download and view the pdf in a new window. But it's not my priority. I need to see the full pdf file in the html area.

    I looked around the forums but couldn't find a good answer. All suggestions will be useful. Thank you

    See the following thread I explained how to display PDF in the region HTML using the embed tag:

    Re: Display pdf

    I hope this helps!

    Kind regards

    Kiran

  • How to open the pdf files from hotmail.

    OMG no body can help with this question, how to open the pdf files from hotmail

    OMG no body can help with this question, how to open the pdf files from hotmail

    Told you that you need Adobe Reader, which is designed to open pdf files?

    Download Adobe Reader:

    http://www.Adobe.com/products/reader.html

  • I use Adobe Reader Touch. How to rotate the pdf?

    How to rotate the pdf? I tried a bunch of different commands and it seems that the selection of actions in the application itself is very limited. Help, please!

    Not possible with Adobe Reader Touch.

  • How to make the pdf in adobe bridge cc

    How to make the pdf in adobe bridge cc

    Adding to the rpandita station, please follow the link below for module add an exit in the most recent version of the bridge CC.

    Reference: install Adobe Output Module

    Let us know if that helps.

    Kind regards

    ~ Mohit

  • How to view the PDF in JavaFX?

    How to view the PDF in JavaFX? Thanks for the suggestions.

    Not with this app as written: it simply makes each page as an image. You might be able to take advantage of the API of the PDF-Converter Labs Swing that I used in this example to get more features: I have not watched which closely.

    I noticed the warnings with some codes not recognized for some PDF files. Which comes from the library of PDF-Converter, rather than any code of FX.

  • How to adapt the start screen on all webworks App blackberry blackberry devices?

    I'm working on blackberry webworks app targeting blackberry 7 & lower OS versions. I have a 360 x 480 pixels boot image that adapts perfectly to the BlackBerry curve Smartphone 9380. But the same splash image does not fit into other devices with different screen sizes. So, now I have created the home screen with a different resolution. But I don't know how to use it? Can someone like me how to select the splash screen dynamic based on the resolution of the device or other means to solve this problem?

    Unfortuantely on BBOS, you can have a single element of the rim: loadingScreen:
    http://developer.BlackBerry.com/BBOS/HTML5/documentation/rim_loadingscreen_element_834680_11.html

    Whereas the BB10, you can have several elements of the rim: splash that the device would automatically take the best resolution of.

    Because it is a property of config/xml, there is no way to dynamically assign values. You would need a separate for each loadingScreen dimensions version.

  • How to delete the files from my HP ePrint app after download / print?

    Can someone tell me how to delete the files from my HP ePrint app after that I downloaded and printed. Thank you

    jmsandkds,

    I apologize for the confusion. Options you speak of "photos, web and file" are located on the phone somewhere, lets say you click files. When you click on files, it will search the phone for available files that are able to print the ePrint app. To the extent where they are on the phone, you will need to search for them via the search screen, connection to the computer, or some files are program specific and only available in this program to be read, edited, or deleted.

    I hope this helps.

  • I need to download my application of newsletter to customers at the apple store. They already have an app problem multi with previous editions of the newsletter. How to download the new edition to this multi app problem?

    I need to download my application of newsletter to customers at the apple store. They already have an app problem multi with previous editions of the newsletter. How to download the new edition to this multi app problem?

    All you need to do is post the folio to Folio Producer. See https://helpx.adobe.com/digital-publishing-suite/help/publish-folios-distribution-service. html

    Neil

  • How to add the pdf option in my Hp solution center when I scan a document

    I have a Hpdeskjet F4235 printer, after a pc repair, that I needed to uninstall my printer and software included. I just reinstalled their album and I have a problem with the (version 11.0) hp Solution Center.

    When I scan a document I have a list of file type that I could use, but the PDF is not available here are the only choices given to me, bmp, tif, jpeg, gif, png, pcx or fpx. How could I add the pdf in the list? Thanks for your help!

    Well you have installed the full features software (or components)?

    The options you mentioned are made available when you click "Scan Picture". So double check if you are clicking the button "scan a Document.

    If this does not help,

    Insert the Cd and then double click left on it, when you do this, you should have an option called 'Install more software'. Please click on that then select "OCR" and install it.

    OCR is a component of software needed to be able to scan to word and pdf file types.

  • How to download the PDF of the pages of mouse?

    How downloadable PDF files form the mouse? If I want to have a selection of PDF for customers to download, how which are available on the mouse?

    1. Select the PDF file with the menu "file/add files for download.

    2. place an item of your choice (rectangle, image, text), go to "Links" drop-down menu in the upper command band and assign the document uploaded to the element.

  • How to install the PDF export on an iPhone 5. I just bought the program and it automatically installs on my desktop Mac, but I can't understand how to install it on the iPhone 5.

    How to install export PDF on the iPhone 5. ?

    I just bought this program from Adobe and it automatically installs on my Mac but I can't figure how to get it on the iPhone 5.

    Hi murtaugh1530,

    Export PDF is an online service.

    However, you can use service export PDF with the Adobe Reader application installed on your device.

    You can export a PDF online here: https://cloud.acrobat.com/exportpdf

    Kind regards

    Meenakshi

  • How to decipher the PDF using the password

    I have a PDF document where "Page Extraction: unauthorized."

    I use Adobe Reader X (version 10.1.15) to open the document. I have the password used to encrypt the PDF file.

    How to decrypt PDF file (remove the restriction) and save it as "Extraction of Page: license"? I don't have the full version of Adobe.

    Please let me know.

    Thank you in advance!

    Not possible with Acrobat Reader.

Maybe you are looking for

  • Due to the high volume of photos low disk space

    Hello guys! I have the following problem. Even though I have something rolling around 9 photos in my camera, the menu for use in the workplace shows that my photos and movies are more than 3, 5 GB - I do not use the photo stream, I deleted photos fro

  • help with formatting of the accidental partition

    I had to re - start my operating system. whem I formatted the drive, I was installing on, I accidentally formatted partitions on one external drive. My question is; is it possible to pull content market back this player. or better yet, restore the pa

  • Error code 0 x 80300113 - when you use the diagnosis and repair for Internet connection

    So ive been trying to get my internet to work for 3 days now on my new ASUS laptop. I can get it for about 2 minutes then just triggers. Ive done everything, reset the router the main box and the same change in cables. Ive plugged and unplugged the c

  • Is it safe to use the same GUID to validate a global event?

    Hey everybody, I write a global event of a library project that I set up in my main application. Everything works fine. However, I'm wondering whether or not it is a good idea to always use the same GUID, or if I should generate a new to each one tim

  • How can I change the color of the cursor?

    Can I change the style or color of my slider. At present, it's an arrow standard white block. I would like that it in a color to see it more easily.