PDA

View Full Version : actionscript for buttons


rb6v22
10-09-2008, 12:44 AM
Hello All,
I am new to flash and of course actionscripting. but i am having trouble with a button. i have a dreamweaver class where i am creating a personal portfolio for myself and created some nice buttons in flash but can't figure out how to link them to another page in my website. i have searched and searched but all i find is onRelease but its getURL and takes you to another website not a page within my site. and i am not sure if there is another tag i can use. I hope someone can help me out
Thanks

atomic
10-09-2008, 04:20 AM
Is the other page in fact another .html page, on your website, or are you just targeting another section (frame) of your Flash buttons movie itself?

rb6v22
10-09-2008, 05:29 AM
the other pages are in fact .html pages.

atomic
10-09-2008, 05:36 AM
Then it's getURL...

on(release){
getURL("http://www.yourDomain.com/yourOther.html", "_blank");
}

Change "_blank" to "_self" if you want the new page to open up in the same browser window.

rb6v22
10-09-2008, 08:37 AM
okay but the only problem is i haven't posted to the web right now its just being worked on in DW right now. so all i have to do is wait till it gets placed or ftp to the web? and then it will work?

atomic
10-09-2008, 04:33 PM
You can check local files (before you upload your web site...) by using the following, changing the path part in RED to your file...

getURL("file:///C|/Documents%20and%20Settings/MOI/Desktop/CURRENT%20FLASH%20STUFF/accesslocalfile/test.html", "_blank");

You need to keep the getURL("file:///C|/ part, insert your path, followed by the targeted file's name, as test.html above...