Skip to main content
Participating Frequently
June 15, 2007
Question

HTML file and SWF files in separate directories

  • June 15, 2007
  • 3 replies
  • 414 views
When I place my swf files and the html files that calls the swf files in separate directories, the movie won't load. I can get around this by turning off borders and exporting a single swf file, but this isn't an option for this project. Any ideas?
    This topic has been closed for replies.

    3 replies

    Paul_D
    Inspiring
    June 15, 2007
    zetokore,

    From memory I think that the skin file looks in the location of the html that calls it,
    so you would need to have the movie.swf in the same location as the html i.e. if html is in root then skin will look for movie in root :(

    zetokoreAuthor
    Participating Frequently
    June 15, 2007
    Thanks for the response.

    I don't have any intention in playing the swf directly, I just want to place the swf files in a directory that's different than the html files, i.e.

    demo.html
    /swf

    When you generate the swf files from Captivate, does it embed the location of the movie into the _skin.swf file (if so, boo)?

    This is an issue for me as a dynamic web application will be calling these movies, and I'd rather not dump a large number of swf files at the root of the site.
    CatBandit
    Inspiring
    June 15, 2007
    Hi zetokore, and welcome to the Community!

    You cannot separate the HTM and SWF files, so don't try. These files are designed to be symbiotic and must be accessed from the same location. Your "getaround" won't work because if you link to the SWF instead of theHTM, the output will be warped ... the HTM file contains sizing parameters for display of the SWF; so without proper sizing, the SWF will appear warped.

    In short - you'll have to live with it, because what you are seeing is Captivate's designed behavior.

    To emphasize the point: Design and record your Captivate projects at the size they are to be displayed to the end-user ... always! And - again always - link to the HTM file, never to the SWF.
    .