how do you do rollovers llike
- Started
- Last post
- 72 Responses
- piperboytoy0
I love you guys! Seriously, you guys have so much passion, it's incredible.
- hollowcube0
oh, sorry kpl - i must have hit the 'b' key accidentally :-)
Okay, I found one article that states that tweening *adds* to the file size:
"Motion Tween, however, requires Flash to create in-between keyframes (even though you won't see them)."
- http://atl4.hostvelocity.com/~pr…---
But I found quite a few more that state tweening *reduces* file size:
"Tweening not only saves time but it reduces file size."
- http://www.mtsu.edu/~rnewman/wor…"As Flash creates the transitional animation from the first keyframe in the animation to the last, these frames do not take up additional space. They just change values. Only the Keyframe information is stored in the Movie."
- http://www.cuckoografik.org/teac…"A frame-by-frame animation has an image for every frame and it increases file size much more rapidly than tweened animation. In tweened animation, you create starting and ending frames, called keyframes, and let Flash create the frames in between."
- http://www2.ncsu.edu/ncsu/cep/me…---
more results:
http://www.google.com/search?q=k…
- kpl0
i see. i got it. thanks, hc. if you (or anyone else) runs into an article or book on it, let me know...always wanted something definite on how swfs are constructed.
it's a P, not a B, by the way, in kpl :)
- hollowcube0
sorry folks, it's late and i need sleep. here's an edit:
OLD: "so, using keyframes reduces file size."
NEW: "so, using LESS keyframes results in a reduced file size."
- hollowcube0
woops... here's the rest of my post:
"thus timeline tweens are larger in k size but faster to process since the cpu doesn't need to figure where to place things."
hey kbl,
i couldn't find any articles to back this up, but here's what i've observed in my 'flash' dealings:
- keyframe tweening results in a *smaller* file size because the swf only contains the keyframes that are tweened between. for example (• == keyframe):
|•---------•|
- on the other hand, if you do an animation where each keyframe has posiitoning/alpha information, it takes up more storage space because of all the info:
|•••••••••••|
so, using keyframes reduces file size. it IS true that when importing an swf, it creates keyframes for each frame (even when you have a tween), but this is becuase you are importing somewhat of a 'flattened' swf. you can't see actionscript in imported swfs - but it's still there (before you import it).
it is the client machine that has to process the mathematics that determine where to position the objects (or what alpha to use), and then it must render that on the screen.
not sure if i'm doing a good job explaining... :)
- hollowcube0
hey kbl,
- agentfour0
oh yeh forgot bout that
- kpl0
agentfour: that has the added side-effect of the mc playing when the movie loads.
- agentfour0
i couldnt be bothered reading all the posts so this may have already been posted. Just make the fade-out movie clip and put this in the up state of the button. Is that what you mean?
- kpl0
mmm...
I always thought that the flash player never did the actual tweening, but instead when things are tweened, each and every frame is drawn out and specified. flash (authoring) does the tweening and writes it all out for flash player.
thus timeline tweens are larger in k size but faster to process since the cpu doesn't need to figure where to place things.
that would explain why when you import swf files, they never show tweening, just only a series of keyframes.
am I right or wrong?
- piperboytoy0
choke u still working? I've been up since 8 this morning. getting a bit sleepy too. I haven't left my apartment all day.
don't work too late. I'm ready for bed.
ciao
- smartK0
thanks jevad!!
it seems I'm not popular enough for my suggestion to be accepted ( ;but I don't get it why you guys don't just try it, it's simple as hell
- chokethefat0
pipboy..next wk when/if we meet, i'll xplain it to ya.. i guess that'll make things much easier for u ...
ok back to work now..
keep it chill !
- piperboytoy0
ok now I post.
Actually I never expected a great debate to come out of my little thread. But it's interesting to read about everyone's opinion.
HOllow, I don't think you are rude, you said that you will post the code when you get home and you did, that is real awesome. most people say things they don't mean!
thanks for everything.
- hollowcube0
"hollowcube is indeed a wise dude. I'm not worthy to post in this thread anymore :-( "
hey piperboytoy, thanks for the compliment, but don't get down on yourself! your work is great.
i love to share what might help out the community. sorry if i ever come across as 'rude' -- i'm really not. i'm just passionate about what i believe in.
feel free to disagree with whatever posts i write :-) discussion is good.
- corin0
nonsense piperboytoy, u have just as much right to post as the rest of us, how else we get brainy but by asking questions and promoting discussion (and you've proven yourself to be a master at that:) well done...
- piperboytoy0
hollowcube is indeed a wise dude.
I'm not worthy to post in this thread anymore :-(
- corin0
Thats an excellent suggestion hollowcube. In my rush to take sides I didn't think how loving a marrigae mrs.script and mr.timeline could make for themselves. Bravo
- hollowcube0
well guys, dealing with _alpha *does* eat up system resources quickly, no matter how you go about it (script or timeline).
however, if you set an _alpha through scripting, it knows what to value to set it at. if -- on the other hand -- you do it with tweening on the stage, it has to calculate all the in-between stages. so, in this case, scripting 'should' be less demanding on system resources.
but it all depends on what you're doing, and how you do it.
someone mentioned that having lots of tweenable movie clips on the stage (let's say, 30 for example) would tend to bloat the file size. that's not necessarily true -- if you do it properly.
no matter how you do the fade in/out, i would recommend using the 'attachMovieClip()' method to pull a single movie clip (or button) out of the library, and place it on stage.
that way you only make 1. it saves time (future changes) AND it saves on download times.
- corin0
Thats a very interesting point, I've come across things like that before, especially when it comes to things like easing and momentum. I think anyhting achieved by tweening can be identically achievd with script, although the time that u put into testing and finie tuning might well make it impractivcle, and unprofitable.