I can get the Movie Clip to work properly if it is on the main timeline, but I can't get it to work inside a button.
Here is the code for the MC inside the button, and on the main timeline.Also why won't it show up in the debugger?
onClipEvent (load) {
if (_Level0.strVar0 == ""
{
_Level0.strVar0 = 6;
}
x = _Level0.strVar0;
for (i=1; i<=x; i++) {
trace (_Level0["strVar"+i]);
if (_Level0["strVar"+i] == "Facilities Design1"
{
x = 1;
}
}
if (x == 1) {
this._alpha = 50;
trace ("ALPHA = 50"
;
} else {
trace ("ALPHA = 0"
;
this._alpha = 0;
}
}
Here is the code for the MC inside the button, and on the main timeline.Also why won't it show up in the debugger?
onClipEvent (load) {
if (_Level0.strVar0 == ""
_Level0.strVar0 = 6;
}
x = _Level0.strVar0;
for (i=1; i<=x; i++) {
trace (_Level0["strVar"+i]);
if (_Level0["strVar"+i] == "Facilities Design1"
x = 1;
}
}
if (x == 1) {
this._alpha = 50;
trace ("ALPHA = 50"
} else {
trace ("ALPHA = 0"
this._alpha = 0;
}
}