You can create external ActionScript files to share common code among multiple movies. Create the ActionScript code that appears many times in different movies, and keep that code in a text file outside the Flash movies. If you need to change the code, you only need to change it in one place.
External code can be incorporated into a Flash movie with the action #include. This action pulls in an external text file containing ActionScript and includes it in the existing script in the Actions List.