A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Simple Duplicating MC question

  1. #1
    Senior Member
    Join Date
    Aug 2000
    Posts
    263
    This should be and easy one, but it doesn't work.

    I am trying to duplicate a mc that has been loaded into
    another mc with instance name of "mc1" all on level0

    Load Movie ("any_mc.swf", "mc1")

    then later in the movie, duplicating mc1 with new name
    of mc2 at a depth of 2

    Duplicate Movie Clip ("mc1", "mc2",2)


    Any help will be appreciated,
    either how to make it work or reason it doesn't work!

    Thanks
    MA

    This was originally posted on 11-30-00 and since no one wanted to
    help, I thought I would ask again!!!!

  2. #2
    Member
    Join Date
    Oct 2000
    Posts
    67
    Well, it's interesting but I don't think it can be done...
    cauz, once a file is loaded, doesn't matter where, it's done. You can dupplicate your MC where is loaded other one but...the file won't be loaded again. I've tried different things about your prob and no way...:-(
    I think load a file in an MC is not considered as an instance...I mean it's can be usefull for var and send them to the right place, but here, it can't be done. But maybe you can find a tip, instead of loading a file, why don't insert it directly somewhere in your file and "play" with visibily or frames ?? I hear you "yep, but if I need dynamic context with database, I won't insert ALL MCs I need !!!!" Well it's ok but I'm sure there is an other way.
    :::: Daafy ::::

  3. #3
    Senior Member
    Join Date
    Oct 2000
    Posts
    518
    If you load a movie targeted at a MC, that MC will disappear, resulting you not being able to duplicate it. I'm not sure whether this is true or not, though, but I think it's true. If I'm wrong, guys, please correct me! Maybe you can try loading the external movie on level 1 instead of targeting the MC, then use the "set property" commands to ensure correct X and Y position of the loaded movie. If you wish to do that, when setting the X and Y position of the loaded movie, the target should be "_level1" (without the quotation marks). Now the MC can be duplicated correctly.

    Kidder

  4. #4
    Member
    Join Date
    Oct 2000
    Posts
    67
    Nope...I was able to dupplicate MC where was loaded file...but the loaded file itself hasn't been dupplicated...
    The problem is that CONSIDER YOUR LOADED FILE IS NOT AN MC : NO OCCUR, so you can't set to it any properties...
    :::: Daafy ::::

  5. #5
    Senior Member
    Join Date
    Aug 2000
    Posts
    263
    Daffy and kidder,

    The loaded mc can have all its properties set, just as if it is
    a regular mc. The only thing that doesn't work is the duplicate.
    But I am sure that you are right about it not being able to
    be done. I have tested it every possiable way. The interesting
    thing is, you can unload the mc from it and then you can
    duplicate it and load the empty duplicatedd mc's or even
    duplicate the duplicated empty mc's but as soon as you put anything
    in them, then no can duplicate.

    Thanks anyway for checking. And if you ever stumble over
    a way to duplicate a mc after it has been loaded in to a target mc
    let me know.

    MA

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