rien100moi
03-15-2005, 05:00 PM
I have a function :
function setVisible(obj):Void {
if (getProperty(obj, _visible) == false) {
for (i=0; i<table.length; i++) {
tutu = "carte_mc."+table[i].clip;
setProperty(tutu, _visible, false);
carte_mc[table[i].clip].enabled = false; // this line doesn't work
}
setProperty(obj, _visible, true);
}
}
I'd like when a movieclip is visible, it is enabled, when it's unvisible, it's disabled.
I'd like with this function to disabled all MC when I click on one.
All MC's are in "carte_mc[table[i].clip]" but i don'k know what's the problem.
I also try to do : setProperty(obj, enabled, false) but this property is unavailable with setProperty.
If you have another solution...
Thanks in advance.
function setVisible(obj):Void {
if (getProperty(obj, _visible) == false) {
for (i=0; i<table.length; i++) {
tutu = "carte_mc."+table[i].clip;
setProperty(tutu, _visible, false);
carte_mc[table[i].clip].enabled = false; // this line doesn't work
}
setProperty(obj, _visible, true);
}
}
I'd like when a movieclip is visible, it is enabled, when it's unvisible, it's disabled.
I'd like with this function to disabled all MC when I click on one.
All MC's are in "carte_mc[table[i].clip]" but i don'k know what's the problem.
I also try to do : setProperty(obj, enabled, false) but this property is unavailable with setProperty.
If you have another solution...
Thanks in advance.