View Full Version : TWO mvclips in one var
radhi
09-22-2004, 05:01 AM
can we have two mvclips created through the createEmptyMovieClip fun and store it in a single var or as a single mvclip.for example i am creating a single headed arrow with the help of two createEmptyMovieclip fun the line is one mvclip and the arrow head ius the other.Ihere any possibility to make it as a single mvclip.
pls help
Thanks in advance
Curly Brace
09-22-2004, 05:10 AM
There are two ways:
1. Convert them to another single mc, that will include your two;
2. Use AS! I guess you want them to move together? Make coords of one relative to another with AS.
radhi
09-22-2004, 05:55 AM
pls give me a sample file
alan_da
09-22-2004, 08:37 AM
create a movie clip for each one
ie var clip1 = createEmptyMovieClip();
var clip2 = createEmptyMovieClip();
then when you want to move them do
clip1._x = x;
clip2._x = x;
clip1._y = y;
clip2._y = y;
and they will move together.
you may have to add a few pixels on to one of the x,y positions, say to place the arrowhead on the end of the arrow.
al
radhi
09-22-2004, 08:46 AM
Actually i am duplicating the mvclip line and as well as the arrow to achieve the copy function and i use to drag those two mvclips but the duplication is not complete ie if i drag copy and drag the line it is coming correctly but the arrow is coming seperately because they are seperate mv clips so that i want to create a single mvclip from these two.
Thanks in advance
radhi
09-23-2004, 04:52 AM
pls help its very urgent
Thanks in advance
radhi
09-24-2004, 06:37 AM
I am in a hurry pls help me
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.