Triggering javascript on page load event from a swf

I am trying to make a link from a SWF open an html page and trigger an event to bring up *another *SWF within a Shadowbox javascript application. Any help here would be very appreciated.

My code is as follows: truth is the instance of the button.

truth.addEventListener(MouseEvent.CLICK, onMouseClick3);

function onMouseClick3(e:MouseEvent):void
{
var request:URLRequest = new URLRequest(“http:…/pages/learnwhere.html”);
navigateToURL (request, “_blank”);
}