Welcome to WebmasterWorld Guest from 54.204.162.36

Forum Moderators: open

Link to another page- please help ASAP!

   
3:54 pm on Nov 11, 2011 (gmt 0)



I have a .swf file that I am trying to link to another page within the same tab/window. The target was originally "_blank", which made it open in a new tab/window. I didn't want that. So I changed the target to "_self", and now when I click the .swf, the link won't open at all.

This is my link code embedded within the swf file:


/* Click to Go to Web Page
Clicking on the specified symbol instance loads the URL in a new browser window.

Instructions:
1. Replace http://www.adobe.com with the desired URL address.
Keep the quotation marks ("").
*/

button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);

function fl_ClickToGoToWebPage(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.example.com/rooms-and-specials/specials-and-packages/"), "_self");
}

[edited by: eelixduppy at 5:38 pm (utc) on Nov 11, 2011]
[edit reason] exemplified [/edit]

10:20 pm on Dec 6, 2011 (gmt 0)

WebmasterWorld Senior Member bwnbwn is a WebmasterWorld Top Contributor of All Time 5+ Year Member



navigateToURL(new URLRequest("http://www.example.com/rooms-and-specials/specials-and-packages/");

take out the self and test the url.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month