well i need the code to be able to cllide with a gun on the ground and have it put to inventory and the code to shoot and change graphics from guy to guy with gun
So basically... picking up weapons, shooting, different values for each gun, and collision.
Not to be rude, but that sounds like about a third of a whole game. Apart from the fact that it would take an incredibly long post to explain everything, I don't feel that doing so is right. Let me explain. I firmly believe in learning things for yourself. Simply copy-pasting code does nothing as far as learning the usage of the code. There are tons of tutorials out there, lots of them about nested movieclips, collision detection, and even using weapons. Using and adapting them to your specific needs is probably the best, plus it challenges you to work with the code, in stead of ripping it.
Smaller portions are quite okay to ask; to give you a bit of a start: A few threads down there's this thread which helps a bit with nested movieclips, rotation and weapon aiming.