PDA

View Full Version : Question about one swf living inside another...


box86rowh
10-11-2005, 07:41 PM
Hello!
This is my first post on this forum,although i have been lurking for a while!
I am also quite new to actionscript! I will start by describing what I am trying to accomplish:

I have a photo slide show swf that takes a list of images and creates a nice slide show fading from one to the next resizing the images as necessary without changing the aspect ratio. This measures 235 x 190 and works perfectly! I want to call that swf file from within another with the loadClip method. However, when i do this, the slide show does not work at all, it just sits on frame 1 and never does anything. I tried changing my paths in the slide show from _root to _level0 and it still worksby itself, but not within the other flash file. I am pretty stumped at thispoint as there are no errors or anything.

If you guys need further info please let me know!
Jason

Scottae
10-11-2005, 08:11 PM
Check out these links:

Specifying a root timeline for loaded SWF files (http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001390.html)

About loading SWF files and the root timeline (http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001563.html)

Avoiding absolute targets (_root) (http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001659.html)

box86rowh
10-11-2005, 08:46 PM
putting this:
this._lockroot = true;
on the first line in the first frrame of the slide show swf worked perfectly!
Thanks!