Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.exe and calling a local .htm file not working!!!

Status
Not open for further replies.

raznov

Programmer
Apr 8, 2002
110
US
I have a Flash .exe running as my main movie. Inside of the main movie I am loading other .swf files into a target and inside of those I use getURL (somelocal.htm", _blank) to load a local .htm file from the same directory as the main movie .exe. But it does not work.. nothing happens. If I test the main movie as a .swf all works fine. The end result will all be on CD. I have no idea why getURL is not working.

Thanks,
Kim
 
Hello,

I don't know exactly what code you're using but I just did this from a .exe file and it worked fine.

getURL( 'components/resources/test.html', "_blank");

Make sure you're getting your relative paths correct in relationship to the .exe file and where the local .html file lives.
 
Yes, that is exactly the code I am using...although I use double quotes for each string.

getURL( "local.htm", "_blank");


and all it does is open a blank browser window. Also, all of the files, the .exe, the .swf's and the .htm files are all in the same directory. So, at least I know I am not crazy and getURL works using it this way.

Could there a problem that my main movie is being published to Flash 7 and the movies that I am loading into it were published to Flash 5, the Flash 5 movies are the ones making the getURL call?
 
That's probably the problem there - try publishing the flash 5 movies as flash 7 if you can - it sounds like that's your problem.
 
Okay, I just tested it again. No luck. I also made a new sample movie. All of the files are flash 7 AS 2.0. The getURL() command does not work when the file is an executable or when it is played within the plugin locally. It does howevever work when the main movie is embedded in an html page. I am going nutso.. this is such a simple thing, any further suggestions would be helpful. You said yours worked, but mine did not. Maybe I could email it to someone.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top