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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loader

Status
Not open for further replies.

edd1eg

Programmer
Jun 27, 2003
123
GB
hi there, i am creating a website for a restaurant, and was wanting to have a loader scene, the tricky part is, that the loader scene is a red pepper filling up with color, i can easily fill squares or any other shape that is simple, but the pepper is all different shapes, how would you achieve this with the pepper.

thanks for any help

edd
 
This is literally any help. I would make a simple motion tween then break it down into invervidual frames using F6 then edit them indervidually. Pain I know or use a layer to mask the area you don't want people to see. This is also hard to help as I've not seen it but yeah.

Roger
 
break your pepper fill down into 10 key frames,
keep the outline of the pepper the same in all frames, but in each concurrent frame, paint the pepper 10% more full....or whatever
in your preloader, work out a percentage

lb=_root.getBytesLoaded();
tb=_root.getBytesTotal();
pc=int(lb/tb)*100;

at 10%, stop at frame 1
at 20, frame 2 etc

cheers
paul
 
i made something like that with wine glasses for a restaurant. i'll just give you the fla of one of the sites... (about 400k)


you can see the effect on
regards

tektips.gif
 
edd1eg:

1- Make your pepper shape.

2- Use it to mask a big rectangle with the color you want to fill up.

3- Animate the rectangle so it moves from below the pepper mask until it is level with it (fills it)

voila

You can also create an outline of the pepper and put it on top of the color.
 
... guess what I did...? :)
just that the movement of the rectangle in my preloader is a programmed one, not a tween...

@ roger: if you want it to be a tween you'll have to calculate (using getBytesTotal and getBytesLoaded) to which frame of the tween the movieclip should go.

may i offer you something?

draw the pepper as you like it and upload it somewhere (as an fla) and i (and most probably some others) will have a look on how to make the preloader you wanted.
(maybe even commented code, since otherwise you probably will be able to use it but won't learn the "how to") :)

regards

tektips.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top