Hi!
I’ve written a couple of functions for a website and now I wanna put everything together.
What I want to do is for example play “function1” first and when it’s done, “function2” should run. When “function2” is done, “function3” starts and so on.
What is the best way to do that?
So far I’ve done something like this:
function1();
function function1() {
onEnterFrame = function() {
if (i<100) {
i++;
}
else {
function2();
}
}
}
but if you’ve got 20 functions it gets way too complex…
Is there an easier way to control functions?