Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : alpha of movie clips snafu - help!



tweenina
4/5/2004 11:02:49 PM
hi!
please help! this small bug is one of two things keeping this from being
completed!

i am getting a date from sql/php, breaking it up successfully into arrays and
variables so that i have 'month' , 'day' , 'year'.
i am successfully fading the alpha of 'phrase' movieclips that have a date
before march 18 (month=3 day =18). here is the code:

if (month = 3 and day < 18){
phrase._alpha = 50;
}

The problem is that for some reason, phrases with April dates (month=4) appear
faded too. i have tried all sorts of fixes like adding to the the code above
"else alpha = 100" or "else if month=4 alpha=100" (in the correct syntax, of
course) but for some reason the phrases are still faded. i know that the dates
attached to them are being stored correctly. Anybody have any idea?!! i thank
you in advance.
Jack.
4/6/2004 12:01:26 AM
try -
if (month == 3 and day < 18){ // =assigns,==compares
phrase._alpha = 50;
}
tweenina
4/6/2004 12:34:27 AM
jack you are the bestest bestest EVER thank you sooo much!
what a simple mistake.
many thanks,

AddThis Social Bookmark Button