Actionscript to javascript

Hi all, how do u pass a function back to javascript from actionscript, i tying to use tat function to adjust a iframe id height from actionscript. any idea how to do it.

thxs for reading.

one way is to use: getURL(“javascript:myfunction();”);