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????
|
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.
|
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!!!!
|
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.
|
Rank: Newbie
Joined: 7/6/2004 Posts: 5
|
ok i sent it.
|