[Flashcoders] Open a local .html file on click of a button

2006-11-17 Thread Vivek Gaikwad
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

RE: [Flashcoders] Open a local .html file on click of a button

2006-11-17 Thread Jim Robson
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

Re: [Flashcoders] Open a local .html file on click of a button

2006-11-17 Thread Éric Thibault
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

RE: [Flashcoders] Open a local .html file on click of a button

2006-11-17 Thread Jim Robson
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