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

Flash header button not opening page

Status
Not open for further replies.

candyss

ISP
Jun 2, 2005
1
CA
Hi there, I have looked over the forum and viewed a lot of the inquiries…

I have also reviewed the steps to make a flash button open up a page in an html page. Unfortunately, my actions up to this point have not proven successful. I am trying to make a button link on a flash header which is on an html page open up another html page when it is clicked. This is what I have done so far:

1) I opened the file in Macromedia Flash MX and also opened the symbols table.
2) I double clicked on the appropriate button number in the symbols table to open up the action script area.
3) I added the following code to the action script box

on(release){
getURL(“}

4) I have many of these button links to do but for the sake of doing it right, I am doing only one button until I get all the steps right and it loads the html page properly after being clicked on.

5) Now here comes the problem … I exported only this file and uploaded it onto a web site. I put the complete address into the browser and loaded it. The flash header works fine but does not open up the desired html link when the button is clicked on.

I have already tried working on it numerous times and still have not managed to get it right. I was hoping that the button would be testable in Macromedia Flash MX, so I loaded the flash header there ok, but the button did not work as desired there.

Any ideas as to how I can get these buttons to work? Do I need to upload any other files to the server to get this button on this flash header to work properly? Is there a foolproof step by step method of doing this that I can follow?
 
You need a second "window" parameter, and stick a trace in there to see if your button is active to start with...

on(release){
trace("YO! I'M ACTIVE!);
getURL(" "_blank");
}

When testing this in the Flash application itself, the output window should come up with the "YO!..." message, atleast then you'll know if your button is working or not.


Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top