# Code : How to bookmark a full flash site?

**URL:** <https://forum.kirupa.com/t/code-how-to-bookmark-a-full-flash-site/261883>\
**Category:** Uncategorized\
**Created:** [June 1, 2008, 8:22am UTC](https://forum.kirupa.com/t/code-how-to-bookmark-a-full-flash-site/261883 "2008-06-01T08:22:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![humbucker](https://avatars.discourse-cdn.com/v4/letter/h/278dde/32.png) [@humbucker](https://forum.kirupa.com/u/humbucker)\
**Post date:** [June 1, 2008, 8:22am UTC](https://forum.kirupa.com/t/code-how-to-bookmark-a-full-flash-site/261883/1 "2008-06-01T08:22:15Z")

</div>

Hello,

I’m coming here wishing someone can help me, cause I’m trying to achieve a full flash website, and I got a button in it I d’like to use to let people bookmark it in IE or FF.

Here is the code I use in a separate .as file:

```auto
[LIST=1]
[*]import flash.external.ExternalInterface;
[*]import flash.system.Capabilities;
[/LIST]

```

```auto
[LIST=1]
[*]public function callJS(evt:MouseEvent):void {
[*]if (Capabilities.playerType == "ActiveX") {
[*]ExternalInterface.call("window.external.AddFavorite", ["http://www.kirupa.com](http://www.kirupa.com)", "Kirupa");
[*]}
[*]else if (Capabilities.playerType == "PlugIn") {
[*]ExternalInterface.call("window.sidebar.addPanel", "[[COLOR=#0000ff]http://www.kirupa.com[/COLOR]](http://www.kirupa.com/)", "Kirupa,""); }
[*]}
[/LIST]

```

When i test this, nothing works in IE, and in FF a new window is opened together with a prompt box (I dont want a new window to open, only the prompt box to show up)

Many thanks if you want to help me,

Matt:bounce:
