Link to home
Start Free TrialLog in
Avatar of colonelblue
colonelblue

asked on

Is there a way to force links from a swf to open into a lightbox window?

I have a swf file that has a list of links on them. What I would like to do is have some code in the html file that has the aforementioned swf and have its links open into a lightbox instead of just a new browser. Is this possible?
I'm hoping it's code that can be added to the html container itself and not the links in the flash file.

Thanks in advance.
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Let me ask you a question...  Can you open up a link(image, I guess) to the lightbox you are using with the JavaScript???  

If you can, you can simply use ExternalInterface.call("jsFunc", "arg"); from Flash to invoke that JS function which is all you need to do what you need to do...

CyanBlue
Avatar of colonelblue
colonelblue

ASKER

Hello CyanBlue,

I suppose I should elaborate more.
I am using an app to convert a pdf into flash which works pretty well.
It's quite generic. ( AXPDF PDF TO SWF ).
It creates a swf file with the PDF converted and an html container.
However any link just opens into a "plain" new browser window.

Since I canot go in and manipulate the code in the swf file, I was wondering if there was a way to add code in the html that would force any link from that page ( including links from the swf ) to open into a lightbox instead of just a plain browser. Even change the size of the new window would be a step towards.

Thanks in advance.
So, you are clicking on one of the links from the SWF generated from the PDF which you'd like to trap into the lightbox rather than the new window???  (AXPDF looks good but abit pricey...)

I'd say that is not possible since that link will be a HTTP call which opens up a new window which you cannot trap/convert to a JS call...  That's my 2 cents...

CyanBlue
That's correct. :)
Yes it's about $400 and works quite well. But I have seen others which is not as easy to use which can embed videos within the converted PDF. Perhaps AXPDF can do it too, I am not sure, I haven't tried to convert a PDF with a movie in it it yet.
ASKER CERTIFIED SOLUTION
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'll check and see and post here. I will also try to add a video and see if that converts along as well.

Thank you CyanBlue.
Sounds good...  ;)

CyanBlue
No such luck.
AXPDF works well but can't embed a video in it.
Some others might but not as simple to use as AXPDF.

Thanks again.
You are always so nice CyanBlue. Thanks!