# \_lockpath for swf's embedded using laodMovie

**URL:** https://forum.kirupa.com/t/-lockpath-for-swfs-embedded-using-laodmovie/219479
**Category:** flash
**Created:** [March 16, 2007, 8:12pm UTC](https://forum.kirupa.com/t/-lockpath-for-swfs-embedded-using-laodmovie/219479 "2007-03-16T20:12:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nickcherryjiggz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nickcherryjiggz/32/2107_2.png) [@nickcherryjiggz](https://forum.kirupa.com/u/nickcherryjiggz)
#### Post date: [March 16, 2007, 8:12pm UTC](https://forum.kirupa.com/t/-lockpath-for-swfs-embedded-using-laodmovie/219479/1 "2007-03-16T20:12:34Z")

</div>

Is there anything similar to the \_lockroot attribute that would allow one to freeze the relative paths used by an embedded swf? In other words, if I have this type of directory structure,

www  
----portfolio (folder)  
--------portfolio.swf  
--------gallery (folder)  
------------gallery.swf  
------------images (folder)  
----------------pic1.jpg  
------------thumbnails (folder)  
----------------pic1.jpg

Is there any easy way to have gallery.swf access “images/pic1.jpg” and “thumbnails/pic1.jpg”, but still have it work when gallery.swf is loaded using loadMovie into portfolio.swf? Right now, when gallery.swf is loaded into portfolio.swf, it tries to access “portfolio/images/pic1.jpg” rather than “portfolio/gallery/images/pic1.jpg”
