If you want to open and center an html popup... I use this code...

   var ResX:Number = System.capabilities.screenResolutionX;
   var ResY:Number = System.capabilities.screenResolutionY;
   var WidthPopup:Number = 620;
   var heightPopup:Number = 450;
var CentreX:Number = Math.round((ResX - WidthPopup) / 2);
   var CentreY:Number = Math.round((ResY - heightPopup) / 2);

getURL("javascript:var mypopup = window.open('try.html','title','personalbar=no,toolbar=no,status=no,scrollbars=no,location=no,resizable=no,menubar=no,left=" + CentreX + ",top=" + CentreY + ",width=" + WidthPopup + ",height=" + heightPopup + "');mypopup.focus();");

You can use also the getURL like getURL("try.html", "_blank"); if you want another window.

A+

Vivek Gaikwad a écrit :
Hi all,

I have a folder in which there are 3 files.

1.       one.fla

2.       one.swf

3.       try.html (this is just a simple html file on my local disk)

There is a button inside one.fla file, on click of which I want to open the
try.html page.

I tried using getURL method. But it didn't work for me.

How to go about it?

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to