Solved

Flash Builder Display Pdf

Posted on 2010-11-29
4
822 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks, for all your intput guys, I think it is the holy grail, but these are all workable solutions.

Cheers.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now