Hi how can i adjust the code below to pass the variables to the function go()? I not quite sure on how to do it... What i am trying to acheive is that each button will goto a different place, but i want one function to handle it.
any ideas?
Regards,
Martin
Computing Design And Services:
Code:
import flash.net.*;
function go (event:MouseEvent) {
//trace(eventObject.name);
var req:URLRequest = new URLRequest(url);
navigateToURL (req, "_self");
}
//b1.addEventListener (MouseEvent.CLICK, go));
b2.addEventListener (MouseEvent.CLICK, go);
//b3.addEventListener (MouseEvent.CLICK, go("#message"));
Regards,
Martin
Computing Design And Services: