Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

general tween question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
onsoup - 09 Jul 2008 00:24 GMT
If over a 1 minute period I have about 50 tweens, is it better to create 50
tween variables and set each one to do a tween, or is it better to lets say
have 10 tween variables, and have each var be set to a new Tween when
necessary. By better i mean which would use less memory and thus be faster.
thanks
clbeech - 09 Jul 2008 02:28 GMT
well it depends on what these are doing - if you have 'repeating' actions you
might be able to use a single tween within a method and pass the instance to
tween. but in any case if you do not need to 'know' if the tween is complete to
initiate the next action, you can call the constructor without assigning it to
a var.  i don't think that either way will effect memory though - it's more
about the quantity in this scenario.
onsoup - 09 Jul 2008 05:27 GMT
hmm, that is helpful tho, thanks. but maybe to give more information on this,
even after all these tweens occur, lets say i just want to run one tween
afterwards, it is still laggy, that is why i feel like the memory is locked up
or something and slows everything down
clbeech - 09 Jul 2008 14:05 GMT
ok - well that sounds more like you have either something that is 'still
running' like a onEnterFrame event - or if these items are moved off stage they
aren't getting 'removed' from the timeline - or a number of other things that
could cause a slow down.  like for instance - if all 50 of these items are
being 'brought to' the stage - that's quite a few things to be on there at the
same time - or if they have a great deal of alpha transparencies or gradients
this will also cause a lag.  also, if your using AS3 and have added Listeners
to items, these will 'pile up' if you don't construct methods to remove them
from the event list.  so it could be a number of things really - if you could
post your file we may be able to pinpoint the problem.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.