Code : How to bookmark a full flash site?

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:

[LIST=1]
[*]import flash.external.ExternalInterface;
[*]import flash.system.Capabilities;
[/LIST]
[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: