swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Adding custom AS when pdf2swf encounters a link


From: Chris Pugh
Subject: Re: [Swftools-common] Adding custom AS when pdf2swf encounters a link
Date: Thu, 22 Jan 2009 17:38:04 +0000

Try,

       pdf2swf -s help

Amongst the many options there, you should find the following two,
:
         internallinkfunction=<name> when the user clicks a internal
link (to a different page)
                                                          in the
converted file, this actionscript function is called

        externallinkfunction=<name> when the user clicks an external
link (e.g. http://www.foo.bar/)
                                                          on the
converted  file, this actionscript function is called

They should let you accomplish what you want to do.

On the flip side, just maybe the viewer creators should have been a
tad more circumspect with
their coding? ;o)

HTH.

Regards,


Chris.

2009/1/22 Douglas Miller <address@hidden>:
> I am using a page turning viewer that makes a pdf look like a book with the
> pages side by side. When a user clicks on the swf file, the viewer starts to
> turn the page to the next in the series. This is a problem when there is an
> external link in the swf file as when I go to click it, the page turns.
> According to the people who made the flash viewer that I'm using, this can
> be fised by adding custom AS to the link:
>
> on(rollOver, dragOver){
>     _root.canflip=false; // flipping disabled
> }
> on(rollOut, dragOut, releaseOutside){
>     _root.canflip=true; // flipping enabled
> }
> on(release){
>     _root.canflip=true; // flipping enabled
>     getURL("http://www.google.com";, target="_blank"); // open link in new
> window
> }
>
> Is there anyway that I can have pdf2swf add this custom AS when a link in
> encountered?
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]