agalloch
10-01-2010, 10:45 AM
I'm trying to basically convert my javascript in html to actionscript in flash. I have a field with a button. When a person presses the button, I want it to go to www.website.com + field.value... Here's what I have so far, not working though. Probably because I just took window.open from the JS and don't know what works and what doesn't in actionscript.
CheckLocationButton.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage(event:MouseEvent):void
{
window.open('http://website.com/' + locationField.value,'windowname','width=800,height=600,scrollbars=yes,resizable');
}
CheckLocationButton.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage(event:MouseEvent):void
{
window.open('http://website.com/' + locationField.value,'windowname','width=800,height=600,scrollbars=yes,resizable');
}