Now: Tutorial for Web and Software Design > Flash > Special Effect > Flash Content
> How to Close Browser Window From a Flash File Without Prompt [Bookmark it]
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:

Click to enlarge
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


[Bookmark][Print] [Close][To Top]
  • Prev Article-Flash:

  • Next Article-Flash:
  • Related Materias
    Working with Objects
    Cursor Follower
    Snow Effect With Wind
    Drop-Down Menu
    Show Room
    Mouse Follower in Flash
    Drop-down Menu for MX
    Flash Shout Box
    How To Draw A Car in Flash
    Use FSCommand With the Bro
    Topics
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Graphic Design Tutorial
     

    Coreldraw Tutorial

      Illustrator Tutorial
      3D Graphics Articles
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial&Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial&Articles
     

    XML Style Tutorial

      AJAX Tutorial
      XML Mobile
    Flash Tutorial&Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial&Articles
     

    Linux Tutorial

      Symbian Tutorial
      MacOS Tutorial