PDA

View Full Version : Help: How do I load a movie, in a movie.


Jamin
05-12-2003, 02:42 AM
I have a movie called Thumbnails,

I want to load 2 movies into that movie. can this be done?

this.createEmptyMovieClip("thumbnails", 1);

how do I put my two thumbnails inside that movie?

Echoblade
05-12-2003, 05:19 AM
if thumbnails are the actual pictures then do this
this.createEmptyMovieClip("thumbnails",1);
this.thumbnails.createEmptyMovieClip("pic1", 1 );
loadMovie( url_of_pic1, "this.thumbnails.pic1" );
this.thumbnails.createEmptyMovieClip("pic2", 2 );
loadMovie( url_of_pic2, "this.thumbnails.pic2" );
this code isn't tested but it should at least give you the idea

Jamin
05-12-2003, 05:55 AM
Alright I understand, now what if I have a movie clip already named Thumbnails , is there an attach command?

Echoblade
05-12-2003, 06:03 AM
you can attachMovie, duplicateMovieClip or just place the Movie offstage and give it an instatnce name. The difference is that attachMovie uses the identifier and duplicate uses the instance name of the Movie that you can place off stage ( identifier is found in the properties popup of the movie clip, check "Export for Actionscript" )