Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading Animations 1

Status
Not open for further replies.

Dannybe2

Programmer
Jan 31, 2001
136
GB
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!
 
Type in preloader(Ah! syntax errors!) in the search box!

;-)

 
hi

preloadiong is one of those brain-numbing things that once you know how to do it you kick yourself at how easy it is.

>>Set your publish settings to load 'bottom-up'.
>>In your movie have three layers for your preloader, one at the top and two on the bottom as below:

preload.gif


>>On the top layer in the last frame of your movie, insert the label "target".
>>In the 'preload actions' layer, first frame, insert:

If Frame Is Loaded ("target")
Go to and Play (the-first frame of your-movie) >>>in this case it would be (4)
End Frame Loaded

>>>One frame before your movie insert the action:

Go to and play ("load")

...this loops the rpeloader until frame (4) is loaded.


>>>In the bottom layer insert your preload animation into frame one and label the first frame "load"


Thats your preloader. Nice n simple. You can see the example above at:


hope it helps
HI Old
dD


davdesign@hotmail.com

^^^^^^^^^^^^^^^^
 
hi

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.

dD davdesign@hotmail.com

^^^^^^^^^^^^^^^^
 
okay danny

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 (&quot;/candy&quot;)
Go to and Stop (..:x)
End Tell Target
Set Variable: &quot;x&quot; = x+1
End If

>>>I've put a &quot;trace&quot; 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:


Hope it helps
dD
davdesign@hotmail.com

^^^^^^^^^^^^^^^^
 
sorrry

(minor mess-up) The actions should be:

Set Variable: &quot;x&quot; = int(gettimer/2000)
Begin Tell Target (&quot;/candy&quot;)
Go to and Stop (..:x)
End Tell Target

....for a two seond delay.

dD

davdesign@hotmail.com

^^^^^^^^^^^^^^^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top