ajkiwi88
01-26-2005, 09:45 AM
hi
how do i set it so when a button is clicked it goes to a html page?
cyaz
aj
how do i set it so when a button is clicked it goes to a html page?
cyaz
aj
|
Click to See Complete Forum and Search --> : flash mx2004 ajkiwi88 01-26-2005, 09:45 AM hi how do i set it so when a button is clicked it goes to a html page? cyaz aj BeachSide 01-26-2005, 10:00 AM The ActionScript will look like this... on (release) { getURL("http://yoururl.com", _top); } ajkiwi88 01-26-2005, 10:07 AM is it the same if i wanted it to jump to just a single page for testing before i put it live? cyaz aj BeachSide 01-26-2005, 01:25 PM sort of... if you put the .swf file in the same directory as the file the button points to the the code would look like this... on (release) { getURL("yoururl.htm", _top); } BUT Remember that if the file(s) are on your computer and you have the file that the Flash button points to in a different directory then it will not be able to find it because the file path looks like this... file:///c:/Documents%20and%20Settings/Administrator/Desktop/index.htm (this path is an example only) Hope that helps! ::Edit:: also I just thought about it and in case you don't know the _top does not get quotes as it is an expression webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |