[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] swfc to add a link to a swf movie
From: |
Chris Pugh |
Subject: |
Re: [Swftools-common] swfc to add a link to a swf movie |
Date: |
Thu, 28 May 2009 03:02:11 +0100 |
2009/5/27 Kirk Zurell <address@hidden>:
> I need to make a splash screen flash movie clickable: to allow the user
> to click on it to getURL(), and preferably to have it getURL on its own
> at the end of the movie.
>
> I can't see how to overlay the clickable button (5% for debug) over the
> movie, if it's possible at all.
Try it this way.. ( rough example).
================================================
.flash filename="test1.swf" bbox=300x200 version=10 fps=60 compress
.font tahoma "fonts/tahoma.ttf"
.box buttonbox color=black height=140 width=140 fill=blue
.box button_pressed width=22 height=10 color=green fill=salmon line=2
.box button_idle width=22 height=10 color=red fill=salmon line=2
.box button_hover width=22 height=10 color=orange fill=salmon line=2
.sprite swf_movie
.put buttonbox
.action:
buttonbox._height=40;
buttonbox._width=40;
buttonbox._x=0;
buttonbox._y=20;
swf="coltunnel.swf";
// you can find that movie here:
// http://www.swftools.org/flash/coltunnel.swf
this.loadMovie(swf);
.end
.end
.button show
.show button_idle as=idle
.show button_idle as=shape
.show button_idle as=area
.show button_hover as=hover
.show button_pressed as=pressed
.on_press:
swf_movie.getURL("http://lupamusic.com", "_self");
.end
.end
.put swf_movie x=0 y=20
.put show x=40 y=50
.end
==============================================
> Also, is there any setting to ensure the movie only runs once? The movie
> was created with "-loop 1" in ffmpeg, and runs only once on its own. The
> test page has a parameter <PARAM NAME="loop" VALUE="false">
Check that all the frames have been played,
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary576.html
then stop/unload the movie, and automatically call the URL?
> Any pointers appreciated.
Hope the above helps!
Regards,
Chris.