loadMovie

Hello ( it’s my first post)

I followed the Kirupa tutorial using loadMovie to stream swf files on demand.

Here’s my question: suppose I want to have some swf streaming on demand but other contained within the main swf file (in the libray)

The reason I ask, is because I like the idea of modular files rather than hard to follow complex timelines. I have already tried this but I didn’t have any joy.

Thank you

To have it in the library simply use Import to Library from the File Menu and then select your swf I think.

Oh, and welcome to the forum :wink:

Thanks, however I did this but I still can’t get it to work.

How I tested it; I removed the swf file from the directory that the main swf file would look in, I then ran the Flash file. It couldn’t find the swf (because I had moved it) This proved that it wasn’t getting the swf file(now a MC from the libray)

(It will be a miracle if anyone understands this explanation - but I remain hopeful :slight_smile:

Confused

If I’m understanding you correctly, you want to call the swf from the main.swf’s library? If that’s correct then that swf must be contained inside a movieclip and you can call it with the attachMovieClip action.

If you combine your main swf and the external one then it would increase the file size of your main movie as well. Are you sure you want to do that?

Thank you

Yes, this is correct. ‘attachMovieClip’ is probably what I need (I am fairly new to this - but iI love it !)

I understand that it will make my movie larger but I find the timeline can get difficult to follow.

Do you think my approach ( a mixture of big and small swf files converted into MCs and either streamed or self contained) is a valid approach to building a big site ?

Your opinion is valued

Thanks

Geoff

The more practical way is to have a main movie that loads seperate external movies when needed so that it will reduce the initial loading time.

You might want to read this tutorial on how to build a full flash site.

http://www.kirupa.com/developer/mx/full_site.htm