Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-28-2008, 12:40 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default webbrowser in swfkit

when i use webbrowser in my project, and click on a link, it opens IE tho, my default browser is firefox....

how can i make links to open in firefox rather than in IE ??

Code:
import SWFKit.*;
import SWFKit.FlashPlayer.*;
import WebBrowser;


// Create the web browser control
  var ax = Global.createControl("Shell.Explorer.2", 0, 0, 200, 200);
  // Fill the web browser control in the entire client area of the
  // main window
  var win = Global.getMainWnd();
	function klick() {
		Global.trace("ax");
	}
	ax.setEventHandler("onClick", klick);
  ax.window.move(1, 23, 500, 216);
  function onSize(type, width, height)
  {
    ax.win.move(1, 23, 500, 216);
  }
  win.setEventHandler("onSize", onSize);


  var wb = WebBrowser.fromID(ax.activex);
  // handle event of the ActiveX control
  function NavigateComplete2(control, url)
  {
    _root.strace(url);
  }
  wb.setEventHandler("NavigateComplete2", NavigateComplete2);
	wb.addEventListener("click", hamtaSidan);

  // Browse web site
  wb.Navigate2("http://mysite/links.php");

function onClick() {
	Global.trace("HIDE");
	ax.window.hide();
	_root.holder.Meny._visible = true;
	hide_WB._visible = false;
	info_WB._visible = false;
	ut_WB._visible = false;
}
hide_WB._visible = true;
_root.holder.Meny._visible = false;
hide_WB.addEventListener("click", onClick);
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:55 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.