|
|||
|
sorry, but I am a newbie to SWFkit, and I can't seem to figure out how to get a plain browser window open and load a URL into it...
I am working on an interactive CD, and it is freaking the client out when they click a URL and it loads into a browser window that they already have open in the background, and isn't bringing it forward (just using regular flash). I was hoping SWFkit could solve this problem. |
|
|||
|
Code:
function getDefaultBrowser()
{
var rk = new RegKey("HKCR\\.htm");
if (rk == null) return null;
var rv = rk.getValue();
if (rv == null) return null;
var filetype = rv.data;
rk = new RegKey("HKCR\\" + filetype + "\\shell\\open\\command");
if (rk == null) return null;
rv = rk.getValue();
if (rv != null)
return rv.data;
return null;
}
var wnd = Shell.run(getDefaultBrowser() + " http://www.swfkit.com");
trace(wnd);
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|