# getURL no longer supported

**URL:** https://forum.kirupa.com/t/geturl-no-longer-supported/295801
**Category:** flash
**Created:** [September 4, 2009, 2:07pm UTC](https://forum.kirupa.com/t/geturl-no-longer-supported/295801 "2009-09-04T14:07:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mashy](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Mashy](https://forum.kirupa.com/u/Mashy)
#### Post date: [September 4, 2009, 2:07pm UTC](https://forum.kirupa.com/t/geturl-no-longer-supported/295801/1 "2009-09-04T14:07:07Z")

</div>

Hello all I am trying to learn AS3 and have encountered my first snag in what I thought would be an easy navbar I’m making.

I have my swf in an iframe called ‘nav’, and when clicking on a nav button I want to change the contents of ‘main’

Here’s my frameset:  
\<frameset cols=“120,\*” frameborder=“NO” border=“0” framespacing=“0”\>  
\<frame name=“nav” src=“nav.html” scrolling=“NO” noresize\>  
\<frame name=“main” src=“welcome.html” scrolling=“NO” noresize\>  
\<noframes\>  
\<P\>Your Browser must support Frames to view this site.  
/noframes\>  
\</frameset\>

I used to be able to use getURL to change an iFrame  
i.e. getURL(“home.html”, “main”) , but this function is no longer supported…

Warning: 1060: Migration issue: The method getURL is no longer supported. For equivalent functionality, see flash.net.URLLoader. The [flash.net](http://flash.net) package also contains package-level functions navigateToURL() and sendToURL()…

I looked into navigateToURL, URLRequest, URLLoader but cannot see a way to pass the iframe name.

Am I missing something, is there a way to do this using navigateToURL, URLRequest, URLLoader?

Any help would be appreciated.

[COLOR=blue]\*\*EDIT:[/COLOR]  
[COLOR=blue]I found the solution using navigateToURL:[/COLOR]  
[COLOR=blue] [/COLOR]  
[COLOR=blue]my frame element:[/COLOR]  
[COLOR=blue]\<frame name=“main” src=“welcome.html” scrolling=“NO” noresize\>[/COLOR]  
[COLOR=blue] [/COLOR]  
[COLOR=blue]code from my mouse event:[/COLOR]  
[COLOR=blue] [/COLOR]  
[COLOR=blue]var myUrl:String=“main.html”;[/COLOR]  
[COLOR=blue]var target:String=“main”;[/COLOR]  
[COLOR=blue]navigateToURL(new URLRequest(myUrl), target);[/COLOR]
