A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: [F8] Open local HTML page in IE.

  1. #1
    Member
    Join Date
    Sep 2006
    Location
    Montreal
    Posts
    46

    [F8] Open local HTML page in IE.

    Hi all,

    I know this sounds like a noob question, but I can't get it to work.

    I'm making a CD rom, and I have a bunch of html files that I need to launch from the menu screen (flash projector). However, I need them to launch in IE and IE ONLY. (I know, it sux.. not my choice)

    How can you tell flash to get a url in IE?

    Or possibly use Northcode's Proxy.exe to do the same...?

    I've already tried with the proxy:

    Code:
    start iexplore.exe Christou_welcome.htm
    It opens IE, but not the page. It opens an error page because it is looking on the net for the url.

    Does anyone have any ideas?
    Last edited by kland; 06-17-2010 at 11:53 AM. Reason: not resolved

  2. #2
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    If the HTML page is in the same folder as your BAT file then you can put this in the BAT file...

    Code:
    start iexplore.exe file://%CD%\Christou_welcome.htm
    The %CD% is expanded by Windows to path of the current directory. The file:// tells Internet Explorer that it's looking for a local file.
    When your swf2exe tool just HAS to work
    there's only one choice... SWF Studio

  3. #3
    Member
    Join Date
    Sep 2006
    Location
    Montreal
    Posts
    46
    Worked like a charm.

    Once again, many thanks.

  4. #4
    Member
    Join Date
    Sep 2006
    Location
    Montreal
    Posts
    46
    Well, i guess i spoke too soon.

    It works perfectly on my HDD, but when I burn it to a disk, it doesn't work.

    IE opens, but it just goes to the home screen.

    Any ideas?

  5. #5
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    EXEC the BAT file directly instead of using proxy and change it to look like this. The pause will keep the DOS box on the screen so we can see what it's actually trying to execute. This will let us see if the path is wrong if the command is faliing for some reason.

    Code:
    start iexplore.exe file://%CD%\Christou_welcome.htm
    pause
    When your swf2exe tool just HAS to work
    there's only one choice... SWF Studio

  6. #6
    Member
    Join Date
    Sep 2006
    Location
    Montreal
    Posts
    46
    It says:

    Code:
    E:\>start iexplore.exe file://E:\\Adams 2010.htm
    
    E:\pause
    It seems to be looking in the right place and the file name is right.. could it be the spaces in the name of the file?

  7. #7
    Member
    Join Date
    Sep 2006
    Location
    Montreal
    Posts
    46
    I don't get it..

    I have tried at least 100 different variations and different commands, most of which work from my hard drive, but when I burn them to CD or DVD, they no longer function. IE opens, but it always goes to the home page.

    Is this some kind of security thing in IE? Can it even open stuff from a CD now?

  8. #8
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    Does it work if you just run the BAT file (or renamed proxy EXE) from a DOS prompt?

    In case it matters, what OS are you using? What version of IE?

    I'll try making a coaster (CD) and see if I can see what you're seeing
    When your swf2exe tool just HAS to work
    there's only one choice... SWF Studio

  9. #9
    Member
    Join Date
    Sep 2006
    Location
    Montreal
    Posts
    46
    Win XP, latest IE, 8.0 I believe.

    No, that's how I'm testing it, I'm just running the .bat file from the DVD. on my local drive, it works fine.

    I've made quite a few coasters myself the past few days, lol.
    Last edited by kland; 06-21-2010 at 08:18 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center