[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] Questions about hyperlink on swf actionscript
From: |
Matthias Kramm |
Subject: |
Re: [Swftools-common] Questions about hyperlink on swf actionscript |
Date: |
Wed, 23 Apr 2008 09:15:20 +0200 |
User-agent: |
Mutt/1.5.11 |
On Tue, Apr 22, 2008 at 04:03:16PM +0200, Matthias Kramm <address@hidden> wrote:
> I'd need that the hyperlink of the pdf will generate the followed code of
> actionscript for each bottom generated in the swf:
>
> on(rollOver, dragOver){
> _root.turnOn=false; // Turn passive
> }
Right now, there's a variable being set if a rollOver occurs-
it's called _root.subtitle. You might be able to use that.
> on(press){
> _root.turnOn=true; // Turn active
> getURL("http://www.google.es", "_blank"); // go to link
> }
You can accomplish that by setting the link function:
pdf2swf -s linkfunction=yourPressHandler file.pdf -o file.swf
.
Now, the generated file (file.swf) will call the function
yourPressHandler(url) when the user clicks the button.
Greetings
Matthias