03-11-2011 06:56 PM
Really?!
I have an event handler for the button. When it's clicked, this is what is run:
var file : File = File.applicationDirectory.resolvePath( "info.html" );
if(file.exists)
trace("exists");
navigateToURL( new URLRequest("file://" + file.nativePath ));
It tells me that the the file does indeed exist. But when the button is clicked, the browser doesn't open up...nothing happens! I cannot figure this out for the life of me!!
03-11-2011 07:03 PM
For testing purposes, try:
var file : File = File.applicationDirectory.resolvePath( "info.html" );
if(file.exists)
trace("exists");
navigateToURL( new URLRequest("http://www.google.com"), "_blank" );
Dont forget about the window id (_blank).
03-11-2011 07:10 PM
var file : File = File.applicationDirectory.resolvePath( 'info.html' );
if(file.exists)
trace("exists");
navigateToURL( new URLRequest('http://www.google.com' ));
works like a charm, with and without "_blank". However, as soon as I put the file in there...nothing happens...
03-11-2011 07:44 PM
Wish I had something I could test on the simulator. Try:
"file://./info.html" "file://app/index.html" "./info.html" "app/info.html"
If this does not work, then either it is a bug or someone wiser (and sample app in the simulator), can figure this one out. It is probably "Oh, **beep***. Yeah that makes sense". But after 14 hours of coding, my brain is cooked.
03-11-2011 08:46 PM
No luck ![]()