Hi,
in my website there is a flash game in the member page and I would like to control the access to it. however, I try to control the access right by putting the first page of the game, a HTML file, into static resources and set it access right. however, during testing, I find that the website could load the HTML page but the swf file embedded inside is missing. why is that?
Thanks
Ernest
-
☆ A M B ☆
- 24,524 Posts
The path to the swf file is not correct. You will most likely need to use an absolute path to load it. Usually in MODX a relative path is "relative" to the main index.php file, but in this case it may be relative to the HTML file that the static resource is pointing to. You may have to do some trial-and-error to get the correct path.
i ask the previous question because inside my folder there are many swfs and xml files all linked together somehow. If I need to change the file path from relative to absolute, I need to do a lot of work to update the whole folder. what is the quick way to protect this directory in a quick and efficient way?