Groups | Blog | Home
all groups > flash actionscript > august 2006 >

flash actionscript : flash go to url


cullmann
8/27/2006 6:27:27 PM
Depending on how you have the file set-up, you'll need to add a
*getURL* function. If the action is at the end of a timeline-oriented
animation, add the following URL to the last frame of the actionscript:

getURL("http://www.myurl.com","_blank");

If you use the "code helper" in the actionscript window, it will
present the variables you will need to include. This will work on all
recent versions of Flash. You can review all of the possible variables
of this command here:

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001730.html

[quoted text, click to view]
starman29
8/27/2006 11:35:35 PM
hello i am creating a flash file, and at the end i want it to jump straight to a specific web page.

can any on tell me what action script to use and how to enter the code.
abeall
8/28/2006 2:22:22 AM
You can use getURL('myurl');

Be warned, though, that this might get blocked by a browser, in which case
you'll need to make a button to manually foward you. On the button:

on(release){
getURL('myurl');
}
AddThis Social Bookmark Button