Hi everyone!
I’m still new to learning actionscript and just realised I was trying to fit as1 in a site I’ve been working on in as2. I’m trying to open a new browser window with center positioning and a size of w=725 and height=600 with a scrollbar. I’d like to be able to click the button from the flash site and open another site in this window. What is the best way to do this using AS2?
I found this script on the adobe site but haven’t been able to get it to work with the on (press):
var jscommand:String = “window.open(‘http://www.adobe.com’,‘win’,‘height=200,width=300,toolbar=no,scrollbars=yes’);”; getURL(“javascript:” + jscommand + " void(0);");
But also this doesn’t address the position on the screen where the window opens. In the AS1 it seem to work ok with something like openWinCentre. Any help would be great!!