views:

150

answers:

1

Hi,

I'm trying to do a popup window that is sized at 300x200 when clicking a button using the following code

var jscommand:String = "window.open('http://www.mydomain.com','win','height=200,width=300,toolbar=no,scrollbars=yes');"; var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);"); navigateToURL(url, "_self");

It opens up fine except on Safari 3. Has anyone ever encountered this and can give me a pointer?

Thank you, Tee

+1  A: 

Why don't you try using ExternalInterface? I've had good success with it in the past

ExternalInterface.call("functionName", argument);

rson
Thanks rson.Yup that's what I had initially. Doesn't work either.
teepusink
did you have your javascript client-side, or as a string inside of the Flash document?
rson