Parent pages:
  1. Home
  2. Blog
  3. Placing Flash movie in arbitrary directory

Placing Flash movie in arbitrary directory

Complex Flash movies are often consist of several files: main swf file (movie itself), and dynamically-loaded movies, external ActionScript scripts, images, etc.

By default, Flash Player searches all accompanying files, paths to which are specified in relative form inside movie, in the same directory (folder) that contains webpage that the movie is embedded to. However it’s often more convenient and rational to place Flash movie and all accompanying files into separate directory.

To keep movie working in such case, it’s enough to supply appropriate Flash object with base parameter. Value of the parameter should contain path to directory that contains Flash movie and other files needed for the movie:

<param name="base" value="/dir/with/files/" />

Detailed information on this and other parameters of Flash movies is available in online documentation of Adobe.