1 Reply Latest reply on Jun 29, 2011 6:07 AM by Ned Murphy

    Redirect to new URL in same window?

    coleman_as

      Hi all - I have a SWF embedded in an HTML file. After the movie has finished playing, I want a new URL to load. I currently have the following code in the final keyframe of my actions layer:

       

      navigateToURL(new URLRequest(http://www.someurl.com));

       

      ...which works, but the problem is that it opens up a new window for the new URL instead of redirecting within the same window, which is what I'd prefer. Is there a different command that I can use to force the new link to open in the same window?

       

      I guess I could use a Javascript redirect within the web page's HTML, but it seems safer to me to use Actionscript within the Flash movie. Anyway - thanks much in advance for any help.