homepage Welcome to WebmasterWorld Guest from 54.147.196.159
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Link to another page- please help ASAP!
Spyce



 
Msg#: 4385935 posted 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]

 

bwnbwn

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



 
Msg#: 4385935 posted 10:20 pm on Dec 6, 2011 (gmt 0)

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

take out the self and test the url.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved