A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: get URL from a CDROM?

  1. #1
    Junior Member
    Join Date
    Sep 2001
    Location
    Saint Louis, Missouri, USA
    Posts
    15
    I am running a .swf file in a HTML that is on a CD. The entire site resides on this CD. At the end of the .swf presentation I want to load a new HTML file. Is this the get URL function? How do I specify which HTML file to load from the CDROM and how do I specify the correct directory? This is easy if the files are online but I'm not sure how to do this on a CDROM.

    Many Thanks


  2. #2
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766

    Use a relative path to the file. Assume the current working dir is where the EXE lives on the CD and construct the path relative to that.

    If the HTML file is in the same dir as your projector getURL("showme.html");

    If the HTML file is in a folder called "html" that's in the same dir as your projector getURL("folder\\showme.html");

    If the reference is to a higher directory then add the proper number of "..\\" sequences to get there.


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