Trouble putting correct AS

I have finished the main MC and want to make visible the sub-mc’s . All have first frame empty. there are four different mc’s. I have used the following script and it does not work in Flash5. I’ve included the error message.

on (release) {
setProperty ("_root.1mc", _visible, “1”);
}
on (release) {
tellTarget (“this.1mc”) {
gotoAndStop (2);
}
}

and I also tried the following:

on (release) {
setProperty ("_root.1mc", _visible, “1”);
setProperty ("_root.2mc", _visible, “0”);
setProperty ("_root.3mc", _visible, “0”);
setProperty ("_root.4mc", _visible, “0”);
with (_root.1mc) {
gotoAndStop(2);
}
}

error message:
Scene=Scene 1, Layer=buttons, Frame=1: Line 6: ‘)’ expected
with (_root.1mc) {

Scene=Scene 1, Layer=buttons, Frame=1: Line 7: Statement must appear within on handler
gotoAndStop(2);

Scene=Scene 1, Layer=buttons, Frame=1: Line 8: Unexpected ‘}’ encountered
}

try using new syntax:

 
on (release) {
  _root.1mc._visible = 1;
  _root.2mc._visible = 0;
  _root.3mc._visible = 0;
  _root.4mc._visible = 0;
  _root.1mc.gotoAndStop(2);
}

Sorry,
I tried…
the program gave this error message:

Scene=Scene 1, Layer=button1, Frame=1: Line 2: ‘;’ expected
_root.1mc._visible = 1;

Scene=Scene 1, Layer=button1, Frame=1: Line 3: ‘;’ expected
_root.2mc._visible = 0;

Scene=Scene 1, Layer=button1, Frame=1: Line 4: ‘;’ expected
_root.3mc._visible = 0;

Scene=Scene 1, Layer=button1, Frame=1: Line 5: ‘;’ expected
_root.4mc._visible = 0;

Scene=Scene 1, Layer=button1, Frame=1: Line 6: ‘;’ expected
_root.1mc.gotoAndStop(2);

:slight_smile: thanks for the help.

…I looked at some lessons form FF2001

and this worked:

on (release) {
&nbsp &nbsp &nbsp &nbsp tellTarget ("_root.1mc") {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp gotoAndPlay (2);
&nbsp &nbsp &nbsp &nbsp }
}

simple enough- I put a “X” button inside the mc to go back to frame 1 of target to dissapear. the “set property” to _visibility is “0” value worked, but I just had no way to bring back “1” without numerous lines of script for every movie in main.
comments? better way?