|
|||
|
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. |
|
|||
|
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");
|
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
If you want to reuse the web browser later, you can just hide it by using the following code
Code:
ie.window.hide(); Code:
ie.window.show(); Code:
ie.window.close(); |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|