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
Vivek,
getURL is the correct method. Here's the syntax:
testButton.onRelease = function(){
getURL(try.html);
}
In the above, testButton is the instance name of the button. You'll want
to replace that with the instance name of your button.
If you are patient, and spend lots of time with
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
Just be aware that passing JavaScript as a parameter to getURL does not work
reliably in all browsers (e.g. IE6). If you need to have a pop-up with
specific parameters, you're better off putting the JavaScript in the HTML
wrapper and using ExternalInterface to invoke it. Otherwise, passing
_blank
4 matches
Mail list logo