How many lines of code before flash lags

Hey Just wondering if theres a limit i should have before flash starts lagging because of code length.
I have about 4000 lines here and there and its starting to lag i can tell… I started using mx 2004 to maybe stop it but i found it worse dealign wit hso much code.

have i hit a plateau with this little macromedia applet or what?