Good afternoon.
I haven’t been near flash in quite a few years, back then I mostly did things in timelines and that is when AS was easy (in fact I don’t remember it actually being called Action Script, but that is by the by). Now I am trying to build my entire site up in AS 3.0 (in Flash CS3) with no timelines at all, this way in a few weeks when I change my mind on design elements all I need to do is change my movieclips, so the basics I am having with are as follows:
How do I make something alpha fade? - I have got myself a for loop that goes round and effictivly adds 0.01 to the alpha every time it goes round, but I must be doing it wrong because my loops seem to run before it displays anything to the screen at all and thus I don’t see anything but something at alpha 1.
I have constructed my code like this:
function X
{
if site starting run a for loop to fade Y item in adding 0.01 to the alpha per cycle
if site not starting set Y alpha to 1
}
function X
I also have another problem that I haven’t got a clue on, how do I pause my code so I can regulate the time between functions running and how long the loops take to run? I know I can write a loop that runs for so long something seems to take ages, but that is very CPU intensive and it can’t be the correct way of doing it. Not only that, the timings are also CPU dependent and it doesn’t help me from my other problem of my loops running before it actually displays the ■■■■ thing.
I hope that is expansive enough of an explanation.
Regards
Paul