Skip to main content
Participant
July 10, 2008
Question

Loading SWF containing XML to JPG files

  • July 10, 2008
  • 5 replies
  • 384 views
I was wondering if someone could help me with this flash problem. It’s probably really easy (one or two lines of code) but for some reason I can’t seem to figure it out.

I simplified the design to make it easier. I just need help with the code. I’m trying to load “slideshow.swf” (after “but2” is pressed) into “mainPage.swf”. If you play the slideshow.swf by itself it works exactly how I want it to. But when you execute the mainPage.swf with the loaded slideshow.swf file most of if seems to work (after pressing "play") except that the jpg slide show does not start and no jpg images load up at all. The xml files controls the jpgs and the text and since the text part works I know that it sees the .xml file… so something is not letting the jpg’s work.

I’m using flash 8 and Action 2 (haven’t upgraded CS3 yet).

I really appreciate any help.

Tim

Here's the link to the files:
zip:

Flash Gallery Project Zip

rar:

Flash Gallery WinRar
This topic has been closed for replies.

5 replies

kglad
Community Expert
Community Expert
July 10, 2008
you're welcome. the fps of your loaded swf is determined by the fps of your _level0 loading swf.
Participant
July 10, 2008
I think I got it. Thanks again. Very Cool.

For some reason the transitions are a little jerky now, so I'm going to mess around with the fps...

Awsome!
kglad
Community Expert
Community Expert
July 10, 2008
you should be able to attach it anywhere just as long as it executes before any code that uses _root executes.
Participant
July 10, 2008
Wow, thanks for the quick response.

Sorry for being such a newbie, I'm not really sure where to put that line of script. I have 3 "action" keyframes in the slideshow.fla file. I tried putting it in various places, but I feel like I'm blindfolded. Any ideas?

Thanks again for your quick response...
kglad
Community Expert
Community Expert
July 10, 2008
try adding:

this._lockroot=true;

to the main timeline of slideshow.swf