PDA

View Full Version : attach/duplicat mc problem



Templarian
March 8th, 2005, 06:25 PM
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.

eki
March 9th, 2005, 08:20 AM
You put the code on a clipevent, didn't you? when you do that you're putting the code on an instance of that mc. try putting the code "inside" the mc (as in its first frame) and it should work