I have a button in my desktop flash application, when clicked, it must load an external SWF file and open it in a new window without using the browser. i've tried
import flash.system.fscommand;
loadButton.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:MouseEvent):void {
fscommand ("exec", "external.swf");
}
But it didn't work. Someone mentioned in a forum that the app must be compiled as a .EXE file for this code to work. is that true?.
i've also tried
loadButton.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("external.swf"), "_blank");
}
But this opens the file in a new browser window. Any idea how can i do it without using the browser window?