Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

getURL for a button in a movie clip

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mtj922 - 26 Jul 2008 03:45 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.