In my version of flash (MX 2004) the following code does not work:

code:

// BROKEN!!
x,y = 5;
trace(x);
trace(y);



If you do the above, y will be equal to 5, but x will be undefined. This implies that the example shown above, also using a comma, will also not work.

The following does work, however:

code:

x = y = 5;
trace(x);
trace(y);



As does this:

code:

x = 5;
y = 5;
trace(x);
trace(y);



Personally, I would go with that last method - it's clearest. However, if you really want to save typing a few characters, at the expense of a little readability, by all means try this:

code:

on (release) {
if (h1._visible == true && h2._visible == true) {
h1._visible = h2._visible = false;
} else {
h1._visible = h2._visible = true;
}
}