Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link Flash Buttons To HTML Pages? 1

Status
Not open for further replies.

MikeCB

Technical User
Aug 12, 2004
43
GB
Hi Everyone,

Can someone please tell me how to link my flash button to a html page that I have created.

Thanks
 
Hi oldnewbie

this might sound really stupid but i need it to link to my HTML page that is in my html folder. It won't be hosted on the internet.
 
Thanks oldnewbie

That worked perfectly
 
I'm trying to do much the same thing only I have made a movie clip with the mouse actions defined in the time line (up, over, down and hit). The file works exatly as I want it to but I can't figyure out how link this movie clip to the other web pages on my site. This is the code that I use for scene 1:

<code>
this.button_mc.onRollOver = function ()
{button_mc.gotoAndPlay("_over") ; }

this.button_mc.onRollOut = function ()
{button_mc.gotoAndPlay("_out") ; }
</code>



What I need is the code that says when the mouse clicks on my movie clip it should go to the desired page. I've searched the internet until I'm blue in the face trying to make "Get URL's, clip events, mouse actions and a few others. Nothing will get past the test movie phase. I've tried adding the action to both the scene 1 and the button_mc time lines. Nothing works (that I have tried). I'm new to this and have a lot to learn. I'm using Flash Pro version 7. I would greatly appreciate some help.

seasidedr
 
So you want the movie clip to act like a button...
Put this code in the first frame of the movie clip, where it is the up state of the button...

this.onRollOut = function(){
gotoAndStop("_out");
}
this.onRollOver = function(){
gotoAndStop("_over");
}
this.onRelease = function(){
gotoAndStop(1); //for example
getURL("}
//this.onReleaseOutside = function(){
// gotoAndStop(1);
//}
stop();

< getURL(" > will replace the page from where you are opening that site...
If you want it to start in a blank page us:
getURL("
That's what you wanted?
 
I inserted this code and it appears to work fine, no error messages when the movie was tested. A big step in the right direction. When I test the button it doesn't go to the web page that I typed in ( but I'm not sure that it is suppose to without publishing the movie. I have a lot more to play with now, so thanks for the reply.

seasidedr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top