How do I design loading animations to show whilst my page is still loading? On slow machines it can take a couple of minutes, and I want some eye candy to show in that time instead of a blank screen, with a little bar at the bottom!
Just worked out what your thread means. OK, hmmm. You could use a "GetTimer" action to go 'target' a frame evry 3000ms say while you're preloading........give me a few minutes and I'll have a think.
I've set this up to a second interval between messages. This link will only be worth it's salt for a few days cos i'll have to remove the company stuff, so if anyone sees this and can't cope with the instructions just let me know by e-mail. Anyway it was easy enough to do.
>>>On that nice little pic above, just add a layer onto the bottom.
>>>Create a movie-clip, put a 'stop' action in the first frame.
>>>Insert your "eyecandy" in consecutive frames in the order you would like them to appear.
>>>Drag this movie-clip into place on the main stage and give it the instance name "candy" (or whatever).
>>>Insert the following actions into the first frame ofyour new layer on the main timeline:
Trace (int(getTimer/2000))
If (x<=int(gettimer/2000))
Begin Tell Target ("/candy"
Go to and Stop (..:x)
End Tell Target
Set Variable: "x" = x+1
End If
>>>I've put a "trace" statement in the top so that you can check that the streaming timings are good.
>>>This example is set to a 2 second delay (2000 milliseconds), so change it to suit your needs.
Okay? Here's the link with ane example set to 2 seconds:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.