Our Flash tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website.  Home Flash & Swish Flash Tutorials How to Close Browser Window From a Flash File Without Prompt

How to Close Browser Window From a Flash File Without Prompt


This tutorial was written for the Flash Designer software, which allows you to create flash animations in a much easier way than by using Macromedia Flash. You may get Flash Designer here.

Example Popup

Note: In Flash Player 8 this method will give a security warning. Use FSCommand method.

Call JavaScript function in Flash using OnClick action:

javascript:window.opener=self;window.close();

image 1

You can also use:

javascript:window.close();

but the browser will prompt to confirm.

Creating "Close" button

1. Choose "Frame" > Inset Symbol" command

2. Choose the following symbol from "Wingding" list:

How to Close Browser Window From a Flash File Without Prompt
Click to enlarge

3. Choose "Item" > "Actions" > "OnClick"

4. Choose "Get URL" action and enter the code:

javascript:window.opener=self;window.close();

Click OK

5. Choose "Item" > "Actions" > "On Over Color", uncheck "No Color" and select your favorite color, click OK



Author's URL: Selteco.com
Final results of our readers
New!
Passed through all the steps? Share your result!
Your result will be premoderated.
Please make sure you choose the right image.
 
 



Captcha

*Required fileds
Our Flash tutorials provide you with step-by-step instructions on how to create beautiful Flash animations and integrate them into your website. More Flash Tutorials: Featured Materials | Fresh Materials | More Flash Tutorials at FlashPerfection.com

No comments yet...
Add comments to "How to Close Browser Window From a Flash File Without Prompt"

Captcha