Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-29-2004, 10:43 PM
Junior Member
 
Join Date: Aug 2004
Posts: 5
Default Browser Object

Hi.. Rather than digging for code for days, can anyone tell me how to use NewWindow2 Event, stop the open window event and grab the url and navigate to it in the current window.

I'm not sure how to code this in SWFKit.

Thanks,
Chuck
Reply With Quote
  #2 (permalink)  
Old 09-01-2004, 01:53 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Browser Object

The NewWindow2 event has a [out] parameter ppdisp, you can set it to the web browser that will be used to display the web page. If you don't set this parameter, ie will create a new window to display the web page.

That is to say, you just need to set the parameter to the current web browser to cancel the new window and display the web page in the current window.

Unfortunately, the current version of SWFkit doesn't support to transfer an IDispatch value to a [out] parameter of an event. It supports only numbers, date. We'll implement it in v2.2. If you need the feature now, we can build a special edition for you.
Reply With Quote
  #3 (permalink)  
Old 03-16-2007, 04:17 PM
Junior Member
 
Join Date: Jan 2003
Posts: 12
Default Re:Browser Object

Can you please post sample code showing how to do this? I am trying to cancel the new window and display the web page in another instance of the Shell.Explorer.2 ActiveX control. Thanks!
Reply With Quote
  #4 (permalink)  
Old 03-17-2007, 10:21 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Browser Object

Sorry, v3.0x still does not support to pass an IDispatch interface. However, in v3.1 the following code can work

Code:
var ie1 = createControl("Shell.explorer", 0, 0, 250, 400);
var ie2 = createControl("Shell.explorer", 300, 0, 550, 400);
ie1.activex.newWindow2 = function (disp, cancel)
{
disp.value = ie2.activex;
cancel.value = false;
}

ie1.activex.navigate2("http://google.com");
v3.1 will soon be out.
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 10:12 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.