Welcome Guest Search | Active Topics | Members

Duplication in Flash? Options
jjiskooler
Posted: Tuesday, July 06, 2004 10:43:37 AM
Rank: Newbie

Joined: 7/6/2004
Posts: 5
I need to know how to duplicate movieclips within a movieclip. I can make it work fine in the main timeline, but when I put the same actions in a movieclip it won't work.


Sample Code:

onClipEvent (load) {
i = 1;
}
onClipEvent (enterFrame) {
duplicateMovieClip(_root.ball, "b"+i, i);
setProperty("b"+i, _x, random(551));
setProperty("b"+i, _y, random(401));
i++;
}

I don't see anything wrong with that. Why won't it work????

bigbrennan
Posted: Tuesday, July 06, 2004 10:58:53 AM
Rank: Larger than Life

Joined: 11/15/2003
Posts: 1,649
Location: United Kingdom
Unless I am getting the wrong idea of what you want to do....

If you have the movieclip stored in the library, simply drag and drop it onto the canvas. Make sure it has its own key frame. That was it only loads one movie clip, but will repeat it as many times as you want.
jjiskooler
Posted: Tuesday, July 06, 2004 11:40:12 AM
Rank: Newbie

Joined: 7/6/2004
Posts: 5
no i have it on the main timeline. i put a movieclip named "ball" and the movieclip with the actions on the main timeline. i don't understand why it won't work. it's pissing me off!!!!
bigbrennan
Posted: Tuesday, July 06, 2004 12:23:35 PM
Rank: Larger than Life

Joined: 11/15/2003
Posts: 1,649
Location: United Kingdom
email me the file to: ianbrennan@computasense.biz I will have a look at it.
jjiskooler
Posted: Wednesday, July 07, 2004 7:51:32 AM
Rank: Newbie

Joined: 7/6/2004
Posts: 5
ok i sent it.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.