[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 didn't work for me.

How to go about it?

 

 

 

___
Flashcoders@chattyfig.figleaf.com
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


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 the documentation (and
trial-and-error), you'll get there!

Good luck!

-Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vivek
Gaikwad
Sent: Friday, November 17, 2006 7:59 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Open a local .html file on click of a button

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?

 

 

 

___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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


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 - 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?

 

 

 


___
Flashcoders@chattyfig.figleaf.com
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

  


___
Flashcoders@chattyfig.figleaf.com
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


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 to getURL works fine.

-Jim 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Éric
Thibault
Sent: Friday, November 17, 2006 8:57 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Open a local .html file on click of a button

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,scrollba
rs=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?

  

  

  

 ___
 Flashcoders@chattyfig.figleaf.com
 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

   

___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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