flash discussion
- Started
- Last post
- 8 Responses
- PonyBoy
Enter topic:
I have a couple of things I want to talk about - first off... does anyone use the following easing stuff?:
or another member of the folks who put that together and added to it (called 'Fuse'):
http://www.mosessupposes.com/fus…
I'm curious about how effecient this code really is - or if there are additional tricks/ideas that people use in conjunction with the above links...
... and that leads me to my second question about effeciently coding in flash.
Is setInterval / clearInterval really a truly time-based interval? I'm told that it has issues on a mac - that's it's not working in true millaseconds like it is on a pc...
... sooo... does that mean that going back to frame-based time management is the way to go?
I'm really confused on all this now - any articles or forums touching directly on the fps vs. setting intervals would be really helpful... and if you know anything about the two guy's above that use Penner's easing equations - or any articles on true 'effeciency' in flash would be helpful also.
*bong noise
back to work now.
- jpea0
i've used the first set for a bunch of projects. always seemed to work well when i needed tweening classes and seems to be quite effecient. very straightforward and easy to use also. that and i didn't have to mess around with keeping track of a bunch of clearintervals in my clips.
- PonyBoy0
Enter response:
jpea - I've used the first set alot too... been very helpful...
... but I've noticed that when you use a few of the effects in conjuction with each other (alpha, color or brightness and some sort of motion tween).. it tends to get bulky in the way it runs (which is understandable).
I was looking at the Fuse stuff (the second link in my first post) and noticed that they've actually put together a way of sequencing Penner's equations so that they don't fight each other (at least that's what it looks like)... but I haven't had a chance to play with it yet.
- |oo|0
#incl ude "lmc_tween.as"
OK, is this include file available anywhere on those sites, thanks in advance
- PonyBoy0
Enter response:
yeah.. here's the direct link:
http://laco.wz.cz/tween/?page=do…
at the bottom of the page - choose the right zipped file that you need... the extension is there for download too if you need it.
- |oo|0
sweet , thanks again!
- Solid0
I've found onEnterFrame to give better quality (smoother) animation, while setInterval gives better performance.
Unfortunately setInterval is not as accurate as javascript's setTimeOut because its tied to the timelines ability (or inability) to properly update the screen onInterval.
For the record I'm on a Win PC.
- PonyBoy0
Enter response:
did I just 'onEnterFrame'?!!!!!
I agree... it looks smoother.. grr - what to do?
if I use onEnterFrame and set a couple of rules using 'if' statements... and eventually give it a 'delete this' if I no longer want the onEnterFrame to go - it works pretty well.
*sigh
- caseyc0
There is no way to get flash to be accurate to the millisecond since it is tied to the framerate (as mentioned)
As for onEnterFrame, the best bet is to create one MovieClip early on that uses an event/listener system to broadcast onEnterFrame to any clips that need it. That way they are all executing at the same time and you dont have to worry about deleting individual onEnterFrame, etc.
You can also lock the frame rate down with a streaming sound, it will drop frames to keep up but that's (sometimes) better than letting it bog down.