Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

Basic getURL AS3

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RICH POW - 09 Jul 2008 14:27 GMT
Hi,
Can you tll me what I need to change to open my link in the parent window?

I have this Actionscript 3:

function gotoPage(event:MouseEvent):void
{
var targetURL:URLRequest = new
URLRequest("http://www.adelantedesign.co.uk/websites/adelante/Packaging/Packagin
g_Samples01.asp?panel=1");
navigateToURL(targetURL)
}
packagingLink.addEventListener(MouseEvent.CLICK, gotoPage);

Thanks,
Richard
David Stiller - 09 Jul 2008 14:49 GMT
Richard,

> Can you tll me what I need to change to open my link in the parent window?

   Add "_parent" as the second parameter of that navigateToURL() call.

i.e.
navigateToURL(targetURL, "_parent");
// everything else stays the same

David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."
RICH POW - 09 Jul 2008 15:12 GMT
Virtual beers to you!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.