Title: [Plugin: SwfObj Plugin: for embedding Flash objects] flash   xml problem??
Last modified: August 19, 2016

---

# [Plugin: SwfObj Plugin: for embedding Flash objects] flash xml problem??

 *  Resolved [hosteo](https://wordpress.org/support/users/hosteo/)
 * (@hosteo)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-swfobj-plugin-for-embedding-flash-objects-flash-xml-problem/)
 * I want to put a swf file attached to a gallery of images in xml.
    The movie can
   not find the xml once inserted the swf inside the post. What could be the problem?
   Thanks
 * [http://wordpress.org/extend/plugins/swfobj/](http://wordpress.org/extend/plugins/swfobj/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [splotch](https://wordpress.org/support/users/splotch/)
 * (@splotch)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-swfobj-plugin-for-embedding-flash-objects-flash-xml-problem/#post-1861057)
 * Usually this is because, by default, Flash looks for the xml file in the same
   directory as the page it is embedded in. In WordPress, with fancy urls, the directory
   of the page doesn’t actually exist.
 * To get around this, most Flash galleries allow you to set a flashvar to define
   the actual path to the xml file. The particular variable varies depending on 
   what Flash gallery you are using, so I can’t tell exactly what to set.
 * With SwfObj, you can add flashvars using the “flashvars” attribute. If the variable
   for your gallery happened to be `localpath`, then you would need to add the following
   to your swfobj shortcode.
    `[swfobj ... flashvars="localpath=/path/to/xmldir"]`
 *  Thread Starter [hosteo](https://wordpress.org/support/users/hosteo/)
 * (@hosteo)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-swfobj-plugin-for-embedding-flash-objects-flash-xml-problem/#post-1861059)
 * Thanks, Splotch!
 *  Plugin Author [splotch](https://wordpress.org/support/users/splotch/)
 * (@splotch)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-swfobj-plugin-for-embedding-flash-objects-flash-xml-problem/#post-1861068)
 * You are very welcome.
    If this fixed your problem, please mark the topic as “
   resolved”. If not, let me know and hopefully we can figure out what’s going on.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: SwfObj Plugin: for embedding Flash objects] flash xml problem??’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/swfobj.svg)
 * [SwfObj Plugin: for embedding Flash objects](https://wordpress.org/plugins/swfobj/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/swfobj/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/swfobj/)
 * [Active Topics](https://wordpress.org/support/plugin/swfobj/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/swfobj/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/swfobj/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [splotch](https://wordpress.org/support/users/splotch/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-swfobj-plugin-for-embedding-flash-objects-flash-xml-problem/#post-1861068)
 * Status: resolved