Manipulating a variable...simple question

O.k., I’ve got a very simple movie, as follows

I have a movie clip on my main timeline called “bottles”. Inside of that I have a movieclip called “firstbottle” (among others).

Just want to bring the alpha down on it using a variable (since later the target is going to change to “secondbottle”, etc.)

So - on a button on the main timeline I have the following code:

on (release) {
bottles.current=“firstbottle”;
bottles.current._alpha=0;
trace(bottles.current);
}

The Trace statement does yield the correct string (‘firstbottle’) – but the alpha of firstbottle is not being changed.

FYI - if I hard code the second line to “bottles.firstbottle._alpha=0;”… it works correctly, so my basic structure is correct… but clearly I’m not manipulating the variable correctly.

Any help appreciated…

  • Brian