A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: can you swap movieclips using actionscript?

  1. #1
    Senior Member
    Join Date
    Aug 2005
    Posts
    225

    can you swap movieclips using actionscript?

    i have a mc(movie clip) as a sword attack that my character uses but through out the game i want him to be able to aquire different swords. Therefore the sword in his attack should be the same as the one hes using. Basically, i just need to know if you can swap movieclips using actionscript.

  2. #2
    Senior Member UnknownGuy's Avatar
    Join Date
    Jul 2003
    Location
    Canada
    Posts
    1,361
    You could swap the subclip each time the weapon is changed.

    But the best way would probably just to have the sword movieclip to have multiple frames, and change the frames accordingly.

    Cheers!

  3. #3
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    As long as the new sword has the same name as the previous one you can swap it using attachMovie(), but unknown Guy is right, create multiple frames for your sword.
    lather yourself up with soap - soap arcade

  4. #4
    Senior Member
    Join Date
    Aug 2005
    Posts
    225
    hmm... ok thanx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center