Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-24-2007, 12:57 PM
Junior Member
 
Join Date: Jun 2007
Posts: 8
Default SWFKit Animated Web Browser Problem

Hi I have just downloaded and started to use the SWFKit Pro demo and made myself a web browser as described on the main page. The problem I am having is I want an animation triggered when my homepage is reached in the browser.

The problem is I don't know how to change the url variable so that it will activate a gotoAndPlay command in the Flash movie.

Any and all ideas welcome.

Reply With Quote
  #2 (permalink)  
Old 06-25-2007, 10:29 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:SWFKit Animated Web Browser Problem

To do that you must handle the NavigateComplete2 event of the web browser in ffish script:

Code:
var ax = createControl("Shell.Explorer.2", 0, 0, 200, 200);
var wb = ax.activex;

wb.NavigateComplete2 = function (control, url) {
Dialogs.msgBox(url);
FlashPlayer.targetGotoLabel("_root", "label");
}

wb.navigate2("http://www.swfkit.com");
Reply With Quote
  #3 (permalink)  
Old 06-25-2007, 01:33 PM
Junior Member
 
Join Date: Jun 2007
Posts: 8
Default Re:SWFKit Animated Web Browser Problem

Hi Thanks for the Code, I just can't seem to see how it fits in with the original browser code. If I put it in the //Initialize code it doesn't have any effect. When I put it in the go2url code it pops a little browser window with website in the top left corner of the browser. What am I doing wrong?

Thanks

David
Reply With Quote
  #4 (permalink)  
Old 06-25-2007, 01:47 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:SWFKit Animated Web Browser Problem

Please send your files to us(support@swfkit.com), we will help you make it work.
Reply With Quote
  #5 (permalink)  
Old 06-26-2007, 01:52 PM
Junior Member
 
Join Date: Jun 2007
Posts: 8
Default Re:SWFKit Animated Web Browser Problem

I figured a very low tech way of linking to an animation when a url is called.

in the go2url script

Code:
ie.window.left = pos.left + 1;
ie.window.top = pos.top -1;
ie.window.width = pos.right - pos.left -1;
ie.window.height = pos.bottom - pos.top -1;

var url = FlashPlayer.getVariable("iURL");
if ((url = null) (url == ""))
{

return;
}
ie.activex.Navigate2(url);


if (url == "desired url address"){
FlashPlayer.targetGotoLabel("_root", "label");
}

This will play whatever animation you have after the label. The problem I am facing now is having the url address update in the browser so it can identify when the condition of the url has been met.

Any Ideas will be gratefully appreciated.
Reply With Quote
  #6 (permalink)  
Old 06-26-2007, 02:22 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:SWFKit Animated Web Browser Problem

We have received your email, and will get back to you a.s.a.p.
Reply With Quote
  #7 (permalink)  
Old 06-26-2007, 02:33 PM
Junior Member
 
Join Date: Jun 2007
Posts: 8
Default Re:SWFKit Animated Web Browser Problem

Thanks very much guys it is really appreciated.
Reply With Quote
  #8 (permalink)  
Old 06-30-2007, 12:12 AM
Junior Member
 
Join Date: Jun 2007
Posts: 8
Default Re:SWFKit Animated Web Browser Problem

Sorry to trouble you all again, but I can't figure out how to delete the web browser when I use a button to go to a new section within the flash movie.

I want to use a button that links to a full screen animation but the web browser is still present over the animation, no matter what layer I put the animation on.

Your help will be gratefully appreciated (again)

Dave
Reply With Quote
  #9 (permalink)  
Old 06-30-2007, 12:24 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:SWFKit Animated Web Browser Problem

If you want to reuse the web browser later, you can just hide it by using the following code
Code:
ie.window.hide();
To show it again
Code:
 ie.window.show();
If you want to close it
Code:
ie.window.close();
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:22 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.