Guys,
how would i go about writing a function that looks at an mc(empty mc) and deletes any attached movie clips (if there are any).
Thanks in advance.
Guys,
how would i go about writing a function that looks at an mc(empty mc) and deletes any attached movie clips (if there are any).
Thanks in advance.
Hah, I know that
but I tried with both codes and I couldn’t let it work.
MovieClip.prototype.removeMovieClips = function() {
for (var objs in this) {
if (typeof (this[objs]) == "movieclip") {
this[objs].removeMovieClip();
}
}
};
MovieClip.prototype.disable = function() {
trace('disable');
for (var objs in this) {
if (typeof (this[objs]) == "movieclip") {
this[objs].enabled = false();
}
}
};
menu.removeMovieClips()
this is what I tried
MovieClip.prototype.disable = function() {
trace('disable');
for (var objs in this) {
if (typeof (this[objs]) == "movieclip") {
this[objs].enabled = false;
}
}
};
menu.disable();
?
scotty(-:
ach zo nu zie ik mijn fout :d // now I see my mistake
elabled = [false] in stead of [false()]
THX SCOTTY :d
[dutch]geen probleem;) [/dutch]
Here I am again :s
I just have some problems with placing and targeting the protoypes.
This is what I’d like to do with this disable prototype: a menu which is dynamic and loads new data (is already finished), I’d like to add another prototype to it, enable and disable all buttons so you can’t click them whil there’s loading new data which would mess up the animation.
But I tried to solve it an other way, which works fine so, no further questions
Could you just say where to place the prototypes? in the main movie or in the movie itself, where all the buttons should be disabled?
THX A LOT
:: Copyright KIRUPA 2024 //--