View Full Version : How did they keep the file size down on this?
wownflutter
10-01-2003, 03:55 PM
Legacy of Kain (http://www.legacyofkain.com)
Wondering
webguy
10-01-2003, 05:13 PM
extensive use of ActionScript, manual tweens inflate an swf. And if you watch those clouds they are only 30 frames or so looping. There really is not that much in the movie, and it is 231k. My entire site is barely 300k.
webG
wownflutter
10-01-2003, 06:00 PM
webguy
Where can i get more info on this?
Tutorials etc.
And, where is your site that is so small?
Thx
wownflutter
10-01-2003, 06:05 PM
http://hotwired.lycos.com/webmonkey/03/27/index3a_page2.html?tw=multimedia
webguy
10-01-2003, 06:19 PM
<- You are here :D
Seriously, there is a link up top called tutorials. click on that link and you will find a plethora of tutorials, all of which pertain to AS, and all of AS is available for use in tweening. The loose meaning of tween in AS is updating an objects properties between frames. Using motion tweens and shape tweens in flash is similiar, however Flash has to compile the objects positions into the swf, inflating the file size because the flash movie will govern the motion. Using AS you leave the tweening up to the computer, which can handle it better than the player. Here is a simple example. Just copy and paste this code as is into a movie.
// do not worry about this code, it just creates a dot at runtime
// that I can use to demonstrate ActionScript tweening
emptyClip = _root.createEmptyMovieClip("emptyClip",-100);
emptyClip.lineStyle(20);
emptyClip.lineTo(.1,.2);
emptyClip._y = 100;
emptyClip._x = 1;
// here I am going to assign something to happen with every passing frame
// onEnterFrame is an event that tells the code enclosed in the event
// to execute with every passing frame.
emptyClip.onEnterFrame = function () {
// this refers to the clip that the code is contained in
// here I am going to move the clip to the right 1 pixel with every passing frame
// increase the fps of your movie and it will move faster and smoother
this._x += 1;
}
webG
jubei
10-02-2003, 12:41 AM
231 kb is actually pretty big for the web. I know, not so much for the FlashyWeb, but i'd hate to be waiting for that on my shoddy connection at home.
webguy
10-02-2003, 11:01 AM
oh my site is almost done.. actually a 2 weeks behind schedule..not my fault though :) Drop your email here and I will email you when it goes online if you like.
webG
900 posts..what have I done with all my time :p
webguy
10-03-2003, 02:48 PM
oh, for comparison check out www.theory7.com, their site is 169kb. The opening page atleast. But that should give you an idea that flash can help you keep your site really small.
webG
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.