Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-16-2003, 03:33 PM
Junior Member
 
Join Date: Jan 2003
Posts: 2
Default how do you open a plain browser window

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.
Reply With Quote
  #2 (permalink)  
Old 05-17-2003, 08:59 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: how do you open a plain browser window

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);
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 05:47 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.