High quality export formats

im looking for a way to keep the quality of my animation after i export it. When I do export it to .swf it seems to lag alittle bit and when there is alot of action in the scene it bogs down. i dont get this when i am playing throught the frames in the stage. can anybody help?