Call Javascript from Flash

I have a javascript – navTo(url, [target]) – where url is the “URL” and target is the “Target” …

Within flash how do i use the getURL command within a button?

getURL(javascript:navTo???)

any help is appreciated…thanks