Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: [flasher] How to do alpha transparency in a loop? |
From: | Werner Sharp |
Date: | Sat, 17 Mar 2001 01:40:19 -0000 |
You need to do one iteration of the for loop on each frame so it can update.
Add an onClipEvent (enterFrame) that starts at alpha of 0 and works up to 100.
At 10:30 AM 3/16/2001 +0000, you wrote:
>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
>| tonypsc [dot] sc [dot] edu
>
>
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> The Chinwag site carries a wealth of Flash resources.
> Find useful links, suggested reading and archives at:
>
> ** http://www.chinwag.com/flasher **
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>You are subscribed to flasher as: sharpwbellsouth [dot] net
>To unsubscribe, email $subst('Email.Unsub')
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]