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();
You can also use:
javascript:window.close();
but the browser will prompt to confirm.
Creating "Close" button
- Choose "Frame" > Inset Symbol" command
- Choose the following symbol from "Wingding" list:
- Choose "Item" > "Actions" > "OnClick"
- Choose "Get URL" action and enter the code:
javascript:window.opener=self;window.close();
Click OK
- Choose "Item" > "Actions" > "On Over Color", uncheck "No Color" and select your favorite color, click OK