Groups | Blog | Home
all groups > flash (macromedia) > may 2004 >

flash (macromedia) : Redirecting browser after animation is played


Norbertofh
5/30/2004 8:45:07 PM
Hi,

How can I redirect the browser after the flash animation is played? And is it
possible to define the URL as a parameter for the Flash plug-in, instead of
hard coding it?

Best regards,
Norberto Henriques
urami_
5/31/2004 9:09:13 AM
[quoted text, click to view]

Place getUrl action on the last frame of the movie . It will call URL once reached.
To make the path dynamic , pretty simple but will require you to add the variable in
object embed tag or use something like PHP to pass it with URL .


sample :

<PARAM NAME=movie VALUE="PASSVAR.swf?URL1=http://www.macromedia.com">
<EMBED src="PASSVAR.swf?URL1=http://www.macromedia.com"

Object and Embed tags pass the variable immediately as the file's first frame loads
and are available for action on the main timeline at any time.

Than frame with following , will execute the given URL :

getURL (URL1, "_self");

In such way you can have one file on multiple pages with multiple links .

--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

AddThis Social Bookmark Button