A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: create mc from library

  1. #1
    Senior Member
    Join Date
    Aug 2001
    Posts
    201

    create mc from library

    I want to creat a certain amount of mc from an mc which will only be in the library - that is probably not to hard but I do not know where to look for in the tuts section.

    greets
    andreas

  2. #2
    Senior Member
    Join Date
    May 2002
    Location
    The Great Northwest
    Posts
    380

    attachMovie

    Make sure that you have the linkage set on your mc in your library. To do this simply right click on the mc in your library and select linkage. You should be able to click a button and it will automatically add a default linkage name which is the same as your movie. Once you have set the linkage on your mc you can use attachMovie(); to get it from your library at any time.

    Code:
      _root.attachMovie("myMCsLinkageName","mc1",2);
    to remove the movie clip you can use removeMovieClip();
    Code:
     _root.mc1.removeMovieClip();
    God bless you!

  3. #3
    Senior Member
    Join Date
    Aug 2001
    Posts
    201
    works perfect - thank you.

    andreas

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