all groups > flash actionscript > march 2006 >
You're in the

flash actionscript

group:

Duplicate movie clips frames


Duplicate movie clips frames givenUP
3/1/2006 11:20:11 PM
flash actionscript:
Repost - Please do help


Hello

I have 10 images. I import them to separate frames in one movie clip and i
give this movie clip name instance "MC".
I'm wanting to duplicate the frames so it makes one long vertical stripe by
putting one image after another. Like stitched all in one big one. I was
searching and sow this action scripts but it can't work in flash 8 proffesional.

intervalY =500;
frames = 10;
for (i=0; i<=frames; i++) {
this.duplicateMovieClip("MC", "MC"+i, ++depth);
this._y = intervalY*i;
this.gotoAndStop(+i);
}


Do you know how to make it in flash 8 proffesional ?

Thank You


Re: Duplicate movie clips frames urami_
3/2/2006 12:00:00 AM


[quoted text, click to view]

Let me add that if you want to avoid the first frame than instead of (i)
you can use gotoAndStop(_currentframe+i);
I believe there was a post you were asking about that.

And there is one more thing i notice. The code in both your posts guys look
all wrong. Something happens between the forum on news server and the web based
that cripples the scripts. It strips the script from ["MC"...

Re: Duplicate movie clips frames kglad
3/2/2006 1:46:24 AM
that's incorrect syntax for all versions of flash. use:

intervalY =500;
frames = 10;
depth=0;
for (i=0; i<=frames; i++) {
this.MC.duplicateMovieClip("MC"+i,depth);
depth++;
this._y = intervalY*i;
this.gotoAndStop(i);
}
Re: Duplicate movie clips frames kglad
3/2/2006 3:24:38 PM
AddThis Social Bookmark Button