Solved

Flash Builder Display Pdf

Posted on 2010-11-29
4
830 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
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
EMET 5.2 / Adobe Flash 2 238
Converting CFGRID from Flash to HTML in Coldfusion 1 96
Download Adobe Flash Player 6 65
2012 Domain With 350 Machines All Running Windows 7 7 132
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

831 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