Need informtion

Hello:

I would like to generate a attach a movieclip that has
a text menu in it. However, I need to be able to give the
movieclip instruction, in other words a “action”, but I cannot
do this because it is in the library. How do I make a menu
continuous when I have the movieclip in the library and not
on the main timeline?

Kevin

You can’t directly with Flash 5. You could try to duplicateMovieClip instead of attachMovie. [SIZE=1]I haven’t used Flash 5 for quite some time now, so I’m not sure this can work[/SIZE]

While you can’t attach onClipEvent handlers to a MC in the library you could attach them to an instance <b>inside</b> the MC in the library.

e.g. suppose you want to achieve something like

onClipEvent (load) {
_name=“ball”.concat(_root.ballcount);
_root.ballCount++;
}

then there’s nothing to stop you using

onClipEvent (load) {
with (_parent) {
_name=“ball”.concat(_root.ballcount);
_root.ballCount++;
}
}

since the embedded MC will instantiate at the same time as the parent MC

If you decide to use duplicateMovieClip() instead then _name can be very handy to ensure that your master clip doesn’t start making a nuisance of itself while it’s waiting to be duplicated

e.g. suppose you master MC is called “master” and you want each new clip to start with the polar coods 100,100 then you could use something like

duplicateMovieClip(“master”, “ball”, 1000)

onClipEvent (load) {
if (_name!=“master”) {
_x=100;
_y=100;
}
}