local files - some work, some donIframe Src = A Local File In My Computer
Hi,
I'm not sure whether to start a new thread or if this is similar enough to justify adding here (which I believe is encouraged on these forums?)
I'm trying to create *.Hta "launchers" for *.Swf files (games, music utilities, etc.) stored on my HD. Some of these swf files open just fine, but others cause IE to display the annoying "To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options..." message. So I found that HTA's were trusted and am trying to put an HTA in the same directory as its corresponding SWF.
Here is my "template" HTA launcher:
<HTML><HEAD><TITLE>metronome</TITLE><HTA:APPLICATION ID="oMyApp" BORDER="thick" INNERBORDER="no" SCROLL="auto" CAPTION="yes" SHOWINTASKBAR="yes" SINGLEINSTANCE="yes" SYSMENU="yes" WINDOWSTATE="normal"><STYLE> body {margin:0} </STYLE></HEAD><BODY><IFRAME src="metronome.Swf" application=yes width="100%" height=100% marginwidth=0 marginheight=0 frameborder=0>Iframes not supported</IFRAME></BODY></HTML>But it seems to sometimes work and sometimes not. I have some SWF's that normally trigger the above "restricted" message in IE, but work fine from an HTA; on the other hand, I have several that don't trigger that message in IE, but don't work at all from an identically coded HTA. They get the following two error messages:"An error has occurred in the script on this page.Line: 2Char: 1Error: Invalid characterCode: 0URL: file:///C:/Users/Username/Desktop/Program%20Files%20(portable)/programs/music%20utils%20(in%20Flash)/metronome.SwfDo you want to continue running scripts on this page?" (Y/and)
"An error has occurred in the script on this page.Line: 1Char: 1Error: Object expectedCode: 0..."
They can be in the exact same folder (on C:). But, I move the ones that don't work to a flash drive (E:), and they work from there!
So is the problem related to the drive? Whether the original SWF triggers the IE "restricted" message or not? ... And how can I fix it?