Jump to content
GreenSock

ramonjosegn

TweenMax, how free memory and process?

Recommended Posts

Hello, I'm using TweenMax, as the hours pass my browser Firefox becomes slower and slower, I do not know how to prevent memory TweenMax saturated, can you help?

 

 

I am try TweenMax.killAll(false,true,true); but no effect...

Link to comment
Share on other sites

TweenLite and TweenMax automatically release things internally for garbage collection and don't have any memory leaks as far as I know (and I know of many experts who have kicked the snot out of the classes and confirmed that they manage memory correctly). I wonder if there's something else going on in your code that is causing the problems. Very difficult to say without seeing a sample FLA that clearly demonstrates the issue. Keep in mind that it is normal for memory to increase over time but then eventually Flash's garbage collection routine will kick in and flush unnecessary stuff out.

Link to comment
Share on other sites

My "beta" status project is in this URL

 

avancegrafico.net/bler2012/

 

I can upload the files online, it is neccesary

 

thanks

Link to comment
Share on other sites

We don't really offer free general consulting and troubleshooting on entire projects like that, but we'd be happy to look at an isolated, well-defined issue that relates directly to GreenSock code/tools. You'd need to provide an FLA that clearly demonstrates the issue with only the minimal necessary code (please don't post your whole project with hundreds/thousands of lines of unrelated code).

Link to comment
Share on other sites

Really, I always use a little code, most of the code is simply TweenMax code , but suddenly I do not know if I am writing in the most optimal, thanks for support

 

stop();

import com.greensock.*;
import com.greensock.easing.*;

TweenMax.to(marco_mc,0,{_alpha:0});
TweenMax.to(marco_mc,5,{_alpha:100});


logobler_mc.loadMovie("interfaz_clips/logo_bler.swf");


bandaup_mc.loadMovie("interfaz_clips/banda_amarilla.swf");
TweenMax.to(bandaup_mc,2,{_x:-160, _y:0, _xscale:1600, ease:Sine.easeOut, _alpha:100, startAt:{_alpha:0}});


acordeon_mc.loadMovie("bler_destacados.swf");

TweenMax.to(acordeon_mc,0,{_alpha:0});
TweenMax.to(acordeon_mc,6,{_alpha:100});

buscador_mc.loadMovie("interfaz_clips/buscadorin.swf");

social1_mc.loadMovie("interfaz_clips/email-icon.swf");
social2_mc.loadMovie("interfaz_clips/twitter-icon.swf");
social3_mc.loadMovie("interfaz_clips/facebook-icon.swf");
social4_mc.loadMovie("interfaz_clips/blog-icon.swf");

buzon_mc.loadMovie("interfaz_clips/buzon-sugerencias.swf");

direccion_mc.loadMovie("interfaz_clips/txt_bajoslider.swf");

titcontenido_mc.loadMovie("interfaz_clips/titulocontenidos.swf");
TweenMax.to(titcontenido_mc,0,{autoAlpha:0});
TweenMax.to(titcontenido_mc,4,{autoAlpha:100, delay:1.4});

TweenMax.to(buzon_mc,0,{autoAlpha:0});
TweenMax.to(buzon_mc,2,{autoAlpha:100, delay:1, ease:Circ.easeOut});
TweenMax.to(social1_mc,0,{autoAlpha:0});
TweenMax.to(social1_mc,2,{autoAlpha:100, delay:2, ease:Circ.easeOut});
TweenMax.to(social2_mc,0,{autoAlpha:0});



fotoymas.loadMovie("interfaz_clips/infoprincipal.swf");
nuestros_mc.loadMovie("interfaz_clips/zona_natural.swf");
banner_mc.loadMovie("interfaz_clips/blerlogopase.swf");

btderecha_mc.loadMovie("interfaz_clips/botones_derecha.swf");
TweenMax.to(btderecha_mc,0,{autoAlpha:0});
TweenMax.to(btderecha_mc,2,{autoAlpha:100, delay:2, ease:Circ.easeIn});
fotosalpie_mc.loadMovie("interfaz_clips/fotos_footer.swf");

cargador_footer_mc.loadMovie("interfaz_clips/footer.swf");

TweenMax.to(cargador_footer_mc,0,{autoAlpha:0});
TweenMax.to(cargador_footer_mc,1,{autoAlpha:100, startAt:{autoAlpha:0}});

if (subir == "arriba") {
trace(subir);
getURL("index.html#top");
subir = "";
}

Link to comment
Share on other sites

you are loading over a dozen external swfs, anything can be happening in any one of those to cause problems.

from what it appears you are only using TweenMax to perform tweens on containers that hold loaded assets.

you don't have any mechanisms in place to detect that loading is finished before the tweens start so I can't really tell if the tweens are happening.

 

i think a fairly simple test for you to do is remove all the TweenMax code and see if the problem persists.

There is nothing in the code that you showed that would be any real cause for concern.

Link to comment
Share on other sites

Thanks, I see for "mechanisms in place to detect that loading"

 

I have TweenMax codes too in the external swfs, ¿can these codes cause problems?

Link to comment
Share on other sites

¿can these codes cause problems?

That's very difficult to answer having not seen the code. If you're asking whether or not TweenMax is to blame for your memory/performance issues, I must admit that I'm very doubtful. If you find any evidence to the contrary, though, please do post here because I'm very interested in making sure GreenSock tools run extremely well and bug-free.

Link to comment
Share on other sites

Hello, thank you very much for your help.

 

I think I found the problem, I fix it easily with javascript.

 

I fear that the problem was an "on enterFrame" he had in several frames and a "getURL" (going to an anchor in the html).

 

It's a bit absurd to me cause problems, but looking at various forums, many users reported similar problems.

 

Now my code seems to be running smoothly.

 

Thank you very much for your time.

Link to comment
Share on other sites

glad to hear you got it figured out. thank you for taking the time to share your results.

 

-c

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×