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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the get URL action

Status
Not open for further replies.

alin82

Programmer
Jul 25, 2001
6
CA
I have created a few buttons that are a part of a menu, and I have been trying to use the get URL action to link these buttons to other html pages. So far it has not been working. I have tried the way it says in the Flash 5 (Using Flash) Manual, but that does not work. If anyone can tell me either why this may not be working, or how to link buttons to html pages, please let me know,
Thank you,

Alan
 
Give us a sample of the code you've been using:

on(release){
???
}
Linking to local htmls? Or on the web? Using full paths?
Opening these links in new windows, or in the original one?

;-)ldnewbie
 
here is an example of my code:
on (release) {
getURL (" "_self");
}

I'm linking to both local htmls and the web,
opening in the same window that I am already in.
If this helps then thank you,
 
Well, your exact code works for me!
What platform are you on, and what browser are you using?

;-)ldnewbie
 
Ok, I fixed one thing that shouldn't have been there. It now works, but only in IE, is there anyway of getting it to work in Netscape? Does it work in Netscape for you?
I'm using Windows NT but I don't think that it will matter that much. Netscape seems to be my only problem so far, if you can still help that'd be great!
Thanks again,

Alan
 
I can't explain why,but now it works in Netscape as well. I have another question. Is there any way to link a movieclip by clicking it as though it were a button?

thanks,

alan
 
Don't quite understand your last question! But if it's... Can you link to an .swf rather than to an htlm... Yes you could!
Code:
on (release) {
    getURL ("[URL unfurl="true"]http://odin.prohosting.com/~oldnew/virtbuttons3.swf",[/URL] "_blank");
}

;-)ldnewbie
 
The last question was actually this: I have a movie clip that I'm using as a button, and I'm trying to figure out how to make that movie clip link to an html page when you click on it(the movie clip). Thanks again, to anyone who can help,

Alan
 
just create a button...insert it in the first frame of the movie clip or wherever you want it to show up.

A good example of this is an on/off button for music... two frames with 1 button in each frame. The first frame button has actions which tells it to go to frame 2 when clicked and to stop() the music. The button on frame 2 tells the "playhead" to go to frame 1 when clicked and to Play() the music. Ya' Gotta Love It!
sleepyangelsBW.jpg
 
in your case just create a button inside a movie clip...when you are finished creating this symbol...drag it to the stage. double-click the movie clip and right-click on the button to attach a getURL action which can be linked to any url address. Ya' Gotta Love It!
sleepyangelsBW.jpg
 
Thank you so much, it works perfectly,
should have thought of it sooner, thanks again,

Alan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top