View Single Post
  #3 (permalink)  
Old 03-30-2009, 01:19 PM
urbanriver urbanriver is offline
Junior Member
 
Join Date: Mar 2009
Posts: 19
Default

Thanks Meester!

I've tried what you suggested but maybe I'm not putting things in correctly:

In the SWFKit initialize script everything I have is:

Code:
// Create the web browser control
var ax = createControl("Shell.Explorer.2", 0, 0, 1025, 670);

function ShowPage(url){
// this function is called from your actionscript and uses the iURL as url
ax.activex.navigate2(url);
}

// Fill the web browser control in the entire client area of the main window
getMainWnd().onSize = function(type, width, height)
{
    ax.window.move(-5, 45, width+5, height+5);
}
In my Flash Movie I have (exactly what you gave me):

Code:
var xmlLoader:URLLoader = new URLLoader(); 
var xmlData:XML = new XML(); 
xmlLoader.addEventListener(Event.COMPLETE, LoadXML); 
xmlLoader.load(new URLRequest("url.xml"));

function LoadXML(e:Event):void { 
xmlData = new XML(e.target.data); 
ParseBooks(xmlData); 
}

function ParseBooks(urlInput:XML):void { 
var iURL:String = urlInput;
trace(iURL);
// call swfkit function to load the iURL in the browser
flash.external.ExternalInterface.call("ShowPage",iURL);
}
Basically the browser loads in completely empty.

Hope you can help!

Cheers
Reply With Quote