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 / Flash Actionscript / November 2005



Tip: Looking for answers? Try searching our database.

several enterFrames at once piling up?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rhubarb pie - 29 Nov 2005 04:09 GMT
I have several (20) movie clips on the main time line. I am initiating an
onEnterFrame function for each individual clip to fade up from zero alpha in a
time controlled fashion so they come up slowly, and in a staggered fashion. I
have no problems with writing any of the code to do this, but the problem just
seems to be that once about 7 to 10 of them have executed (with each
onEnterFrame function being deleted upon reaching 100 % alpha) the code just
simply quits, and the rest get stopped mid way or do no even start fading up.
It is a if there are just too many codes piling up on top of each other. Is
there some way to run that many onEnterFrame functions at once?
Thank you
kglad - 29 Nov 2005 06:00 GMT
depending upon your computer cpu/graphics chip/memory etc, you should be able
to run many 10's of onEnterFrame loops without problem.  once you get into the
hundreds of onEnterFrame loops you may see performance problems.

if you think you're having a problem with less than 10 onEnterFrame loops, you
probably are not terminating your loops and are actually running many more.
rhubarb pie - 29 Nov 2005 21:56 GMT
Well, my graphics card and memory are not very good really, that is a definite
possibility. I should find another computer to test it out on.
I think I traced the onEnterFrame functions to ensure they were in fact being
deleted at the end of their use, but I will look into the possibility that they
might still be running.
Thank you for your coments. 8^)
Jeckyl - 29 Nov 2005 07:34 GMT
If these clips overlap, then you cannot have more than 12 of them (24 for
publish to flash 8) overlapping, or the bottom ones do not get drawn at all.
--
Jeckyl
rhubarb pie - 30 Nov 2005 19:14 GMT
I guess, I got kind of a Dr. Jeckyl and Mr. Hide response. So, Jeckyl, you
think I can't  have more than 12 onEnterFrames looping at one time. That also
sounds like a possible explanation for my woes. Although, if I am deleting them
properly, the laters ones don't even start before the earlier ones are deleted.
So, I don't think I am having more than 12 at any one time.  Again, I'll check
my deletions.

Thanks for responding.
kglad - 30 Nov 2005 01:45 GMT
you're welcome.
 
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.