Solved

Flash Builder Display Pdf

Posted on 2010-11-29
4
834 Views
Last Modified: 2012-05-10
Hello,

I have a database that has a list of pdf files in it and would like to display this list as a tilelist or in a datagrid, and allow the user to click on the filename and pop open the pdf in my application, I would like them to be able to zoom in and out and more importantly navigate to the next file in the database, I guess like paging in a datagrid,

Any ideas on how to implement this would be appreciated.

Cheers.
0
Comment
Question by:Stoater
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 5

Accepted Solution

by:
gingermoleman earned 200 total points
ID: 34232953
Hi,

Im a Flash user so cant rule out there being a class for flex, but for some odd reason PDF inside an SWF seems to be a bit of a holy grail.
Theres alive PDF to create a PDF file (http://alivepdf.bytearray.org/) from AS3 so maybe a halfway solution.
On the other hand theres things like pageflip (http://pageflip.hu/) as another possible halfway house (you could use a loader SWF to display the thumbs that loads the full books) though this would require recreating your pdfs docs to fit this.

I do so hope that someone can prove me wrong and give you a better answer, but I havent found it.

GMM
0
 
LVL 11

Assisted Solution

by:petiex
petiex earned 150 total points
ID: 34234841
If you want to convert your application to AIR, you could load the pdfs into mx:HTML objects:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/HTML.html

I think that the only flex equivalent for making PDFs appear to open in a flash application would be to use externalInterface to access some ajax code that shows the pdf on top of the flash app in an html iframe element.
0
 
LVL 1

Assisted Solution

by:PankajRai
PankajRai earned 150 total points
ID: 34245477
Hi Stoater,

What I understood is,  You want to add name of the file in data grid and when user click on these link it will open a pdf file as a  popup.

If I am right, you can display the name in the grid and on click on name you can display the pdf file as a popup in different browser.

Example:
  var url:String = http://....
 var urlRequest:URLRequest = new URLRequest(url);
 navigateToURL(urlRequest, "_parent");

0
 

Author Closing Comment

by:Stoater
ID: 34472487
Thanks, for all your intput guys, I think it is the holy grail, but these are all workable solutions.

Cheers.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question