Hi everyone,
I can't seem to figure out how to link to a webpage out of a button in my
movie clip.
The ActionScript for the movie clip is what is attached below my swf link.
Inside of that movie clip, I have all of the hookah buttons, which you can see
in the swf file. I need to link each one of those hookah buttons to a different
webpage. Any idea how?
Any help would be greatly appreciated! Thanks!
http://www.profluentdesign.com/km_scrolling_menu.html
onClipEvent (load) {
xcenter=200;
speed=0.02; } onClipEvent (enterFrame)
{ var distance=_root._xmouse-xcenter;
_x-=(distance*speed);
if (_x > 1539) _x=0;
if (_x < 0) _x=1539; }
german01 - 26 Jul 2008 04:29 GMT
When I link buttons to webpages, here is the code on a button
on (release) {
//Goto Webpage Behavior
getURL("C:\\My Documents\\Hisp_Lat_2008\\Pages\\Credits.html", "_self");
//End Behavior
}
Pay attention if you are using the button inside a movie clip or if the page
you are trying to load is in a subfolder.
Hope it helps
mtj922 - 26 Jul 2008 20:21 GMT
That worked. Thanks!
It's funny how two simple lines of code "//Goto Webpage Behavior & //End Behavior" are the answer to hours of screwing around.