> Hi Friends,
> 
> I have developed the following script for scrolling 
> dynamically loaded content in the movie clip. 
> 
> The script is working fine. I just wanted to know is it 
> consuming lot of memory? Because when I load this movie onto 
> another movie. The first movie become slower.

Yes: you're doing an awful lot of createEmptyMovieClips:

> leftmenu_downbtn.onRollOver = function(){
>       scrollingspeed = 4;
>       leftscrollup=true;
>       leftscrolling_fn();
> }

> function leftscrolling_fn(){
>       var test =
> this.createEmptyMovieClip("test",this.getNextHighestDepth());
...
> }

Looks to me like you should move the creation of your test movieClip out of
the leftscrolling_fn function. 

Best
Danny

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to