Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: [flasher] How to do alpha transparency in a loop?
From: Tony McLawhorn
Date: Fri, 16 Mar 2001 15:23:32 -0000

The idea is to make the calculator gradually appear when the
button is clicked.

I'm having a problem with this code which takes my
movieclip and in increments of 10, changes the alpha
transparency. I know my "mcTheCalculator" mc is
OK because if I take the setProperty line out of the
loop and change TempAlpha in this line to "50",
it works. I have tried many variations of this code
using "for","while",etc.

The idea is to make the calculator appear when the
button is clicked.

do {
TempAlpha = x * 10;
setProperty ("_root.mcTheCalculator", _alpha, TempAlpha);
x = x + 1;
} while (X < 10);

Thanks for any help.

--
|>
| Tony McLawhorn
| Director of Educational Software Development
| College of Science and Mathematics
| University of South Carolina
| Columbia, SC 29208
| Tel: (803) 777-2883
| Fax: (803) 777-2451
| tonyatpsc [dot] sc [dot] edu





[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]