Wednesday, May 09, 2007

Loading

Working on a an interactive thing in Crandon today. Made a little loading thing for it, even though it won't be distributed on the web. I just wanted to learn how to.

It works like this:
In a move clip on the main timeline on the first frame I have...

if (_root._framesloaded == _root._totalframes){
_root.gotoAndPlay("Loaded Stuffs");
}


then..

FADE IN LOADING ANIMATION


then..

frame label: "beginloop"

if (_root._framesloaded == _root._totalframes){
gotoAndPlay("loadingfinished");
}



LOOP ANIMATION


then..

first frame of fadeout
if (_root._framesloaded == _root._totalframes){
gotoAndPlay("loadingfinished");
}
else {
gotoAndPlay("beginloop");
}


then..

second frame of fadeout labelled "loadingfinished"


then..

last frame of fadeout..

_root.gotoAndPlay("Loaded Stuffs");





I'm sure that'll be really easy to read back and make complete sense when I look at it again.
Of course it will, when I look back at it I'll be able to recognise it instantly and laugh at it's simplicity as I would have since made much better things.

1 comment:

AnshulJ said...

label:

i have nothing interesting to say

goto label:

but you seem to be doing well at crandon doing what seems like actionscripting..

cheers matey