swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] Add a link with gif2swf?


From: Laurent Lalanne
Subject: Re: [Swftools-common] Add a link with gif2swf?
Date: Sun, 12 Mar 2006 22:38:22 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0

Garth Patil a écrit :
thanks for the help!
i used the code at
http://technoargia.free.fr/swftools/examples/transparent_link/translink.html
as a basis for the following:

# test adding a link to a swf
.flash bbox=autocrop version=6 compress
.swf anim "test.swf"
.box button_area width=100 height=100 line=0
.button trans_button
        .show button_area alpha=0% as=area
        .show button_area alpha=10% as=hover
        .on_press:
        getURL("http://google.com/";, "_blank");
        .end
.end
.put anim x=0 y=0
.put trans_button x=0 y=0
.end

i have two problems that i can't figure out:
1) the button area is not clickable, as it is in the example
2) i will not know the size of the imported swf. is it possible to
dynamically size the transparent button to adapt to 100% x 100% of the
size of the imported swf?

thanks again,
garth

Hi Garth,

1) simply put an fill color like :
.box button_area width=100 height=100 fill=black line=0

In button declaration alpha is set to 0%...


2) You can use a batch script to generate your sc file and retrieve size with swfdump -X and -Y options

Note : the declaration ".show button_area alpha=10% as=hover" don't work if the size is equal to the size of your movie included. Put margin like 10px around

Laurent






reply via email to

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