Skip to main content
Inspiring
August 20, 2007
Question

Can you put a skin somewhere other than the HTML file?

  • August 20, 2007
  • 3 replies
  • 336 views
I can't find a way to put my SWF files in a subdirectory and view them with an HTML file. Is that possible?

c:/root/myfile.html
c:/root/swf/myfile_skin.swf
c:/root/swf/myfile.swf
    This topic has been closed for replies.

    3 replies

    benhennyAuthor
    Inspiring
    August 21, 2007
    The way I understand it is that the skin.swf is a sort of SWF player that looks for its target SWF as the main movie to play - and it looks in its current directory. It seems to me that it's hard-coded in the skin.swf - in which case, the HTML, the SWF, XML, and JS files all need to stay together in order for them to work. I hope there's a workaround though.
    benhennyAuthor
    Inspiring
    August 20, 2007
    Hi Rick,

    I tried that first - then came here to see if there was an easy workaround. I can do it if I don't use the skin SWF, but if I use the skin, it can't find the main file - probably because it's hard-coded in the skin.swf to look in the root directory. I poked around trying to find some setting for the skin where I can designate a relative path, but I don't think one exists.

    The SWFs are only part of a larger HTML project, and I'd rather not put all the SWFs and XML files in my nice, clean HTML page directory. It's a maintenance issue.

    BH
    August 21, 2007
    I am having this same exact problem. In order to keep a large website file structure clean, I want my HTM files in the root directory, and the SWF files in their own directory. I know how to change the paths in the HTM doc to point to the directory with the swf files, but what's the deal with the JS file? What do you have to do to change it?

    If you force the skin to be part of the main movie file by disabling the borders, it just lays the nav bar right on top of the movie itself, which covers up part of the movie, so that workaround isn't happenin' either, btw.
    Captiv8r
    Legend
    August 20, 2007
    Hi benhenny

    I'm not sure of the reasons, but I'm sure you have good ones for wanting this arrangement.

    I would think you could do this by simply tweaking the HTML code as well as the JavaScript (standard.js) file so that the folder is included in the mix.

    Cheers... Rick