PDA

View Full Version : Clip inside a clip (mentioned in tute 3 paths)


sometimesnew
12-02-2003, 04:44 PM
in tutorial 3 it says how you vanish one clip from the scene and place another there in its place. it says clip 1 and clip 2(whithin clip1)
how do you put one clip whithin another??
cheers for your time

tom,:confused: :confused:

tg
12-03-2003, 12:25 PM
here's one way to do it (mx)

//create and draw the first movieclip
this.createEmptyMovieClip("clip1",1);
clip1.beginFill(0xeeeeee,100);
clip1.lineStyle(0,0x000000,100);
clip1.moveTo(20,20);
clip1.lineTo(20,50);
clip1.lineTo(50,50);
clip1.lineTo(50,20);
clip1.lineTo(20,20);
clip1.endFill();
//make clip1 dragabple
clip1.onPress=function(){
this.startDrag();
};
clip1.onRelease=function(){
this.stopDrag();
};

//create a second movieclip inside of the clip1
clip1.createEmptyMovieClip("clip2",1);
clip1.clip2.beginFill(0xffffff,100);
clip1.clip2.lineStyle(0,0x000000,100);
clip1.clip2.moveTo(25,25);
clip1.clip2.lineTo(25,30);
clip1.clip2.lineTo(30,30);
clip1.clip2.lineTo(30,25);
clip1.clip2.lineTo(25,25);
clip1.clip2.endFill();


another way to do it:
draw a box on your stage.
convert it to a movieclip
double click on your box (this opens up your mc for editing)
create a new layer on your timeline
draw another box with different colors for line/fill
convert this new box to a movieclip
go back to the main timeline, and you will have a movieclip inside another movieclip.


third way
select insert new symbol, and create a movieclip
draw something on the movieclip so you can see it when you drag it onto the stage
return to the main timeline
select insert new symbo, and create another movieclip
draw something different on this movieclip.
in your library doubleclick on your first movieclip (to open it up for editing)
drag you second movieclip from your library into your first movieclip

goback to the main timeline, and drag your first movieclip onto the stage. you should see your second movieclip inside your first movieclip on the stage.