getURL no longer supported

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 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]