PDA

View Full Version : problems loading .swf files into main.fla


ien
08-17-2006, 05:46 PM
Hi,

I have a main.fla which are loaded with few .swf files on its main timeline using loader component. On Frame 1 of main.fla, I tried to load in intro.swf. It got loaded but I have 2 problems:

1) There are many images in intro.swf which are loaded into itself using loadMovie("filename", targetarea). It works perfectly when I test movie in intro.fla. But when test main.fla, the images could not be loaded. Why?

2) On the main timeline of main.fla, I would like to play intro.swf first then play "home" frame of the main timeline. I guess I have to go to the last frame of intro.fla to tell it to gotoAndPlay("home"). But it didn't work. What should I do?

Many thanks,
yen

TheDigitalRose
08-17-2006, 06:30 PM
In the first frame of main.fla and post your actions to load in the incoming swf.

on(load) { _root["targetClip"].loadMovie("your.swf"); }

Whenever you load a movie into something you always need a container clip so that it knows where to go. That's what "TargetClip" is on my example.

Try using _root when you try your gotoAndPlay();

It sounds like you've got the right idea...it might just be the way you've got your code written out.

If that doesn't fix it, please cut and paste what you have:)

thatblokemike
08-17-2006, 06:53 PM
the path to the swfs has to be relative to the parent swf..

So the one your loading in, needs its paths amending so they are relative to the main parent, not to itself

ien
08-17-2006, 11:27 PM
Thanks.

am still stuck...

1)for problem 1, I could load the .swf file into main.fla. I knew it because i saw parts of the .swf playing. When i loaded the images into the intro.fla file, i use this loadMovie("images folder1/image folder2/filename.jpg", _level0.DisplayArea); , where the images folder1 resides in the same place as intro.fla and main.fla file. So i reckon, I need no changes to the path of the images i want to load. DisplayArea is the instance name of a movieclip. How can I change the path since I thought I am already using _level0 (which happen to work when tested on intro.fla but not when loaded into main.fla)?

2) I used _root.gotoAndPlay("home") in the last frame of intro.fla. But it still can't get to the "home" frame in the timeline of main.fla.

HELP!