Attach/duplicat mc problem

dang i accidently deleted my thread so,
I had code that looked like this

 duplicateMovieClip("missile", 'missile'+x, x+10) 

i tried to load from a linked library mc with

 attachMovie("missile", 'missile'+x, x+10) 

that made the mc but the code inside didn’t run. if u don’t understand what im talking about, make a mc,put code so it moves up on enterfram, then delete it, then in the library link it with a name. The make a button that attaches it to the first frame with the code above(changing the names) and u’ll notice it’s as if the code inside the mc you attached was deleted, and it doesn’t move.