Results 1 to 4 of 4

Thread: loading in a dummy movieclip

  1. #1
    Join Date
    Jan 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face loading in a dummy movieclip

    hai to all

    i had one problem in my project can any one solve it plzzzzz


    i had all movieclips in my library in flash i had given them a linkage name to them

    what i want i want to load the movieclips which r in library to load in a dummy movieclip so that i can load more movieclips in the dummy movie clip.


    plzzzzzzzzzzz any suggestions

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    What you are talking about is called Empty Movie Clips. You will need to use the attachMovie() command for this. It is fairly simple really, just a bit of coding and can be horrendous when you have a ton of MCs, but it is your project not mine

    Any way, you said you already gave the linkage to each MC in the library, that is good, you will need to know the linkage names for this. here is the code:

    Code:
    _root.emptyMCName.attachMovie("linkageName", "newName", this.getNextHighestDepth());
    obviously emptyMCName is the name of your "dummy" MC on the stage, linkageName is the name of the MC you want to load there, newName is the name you will replace linkageName with once it is created on the stage, and this.getNextHighestDepth() just tells it to go on stage and be visible.

    You can put this on a button or what have you. Play around, it's fun
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Jan 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    thanks for the answer

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Very welcome
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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