dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: depths

  1. #1
    incredibulus-actionscriptum magnetos's Avatar
    Join Date
    May 2001
    Posts
    2,160
    ok guys i know that two mc cant have the same depth
    but does that apply for 2 mc with differnt names too??

    can many duplicated mc with different names have the same depth?

    eg
    will
    mymc["mymc"+1] interfere with myothermc["myothermc"+1]?

    if it does is there a simple way to make sure that many different duplicated mc have a different depth?

    thanks guys
    now i go eat something i am starving





  2. #2
    Untitled-2.fla
    Join Date
    Jul 2002
    Posts
    391
    i never use duplicate, always attachmovie

    but if you want to make sure that movie clips attached/duplicated always have a unique depth just use

    mc.duplicateMovieClip(newName,d++)

    as long as you have d++ as the depth for every clip duplicated, they will always have a different depth from the last

  3. #3
    incredibulus-actionscriptum magnetos's Avatar
    Join Date
    May 2001
    Posts
    2,160
    Originally posted by token 3
    i never use duplicate, always attachmovie

    but if you want to make sure that movie clips attached/duplicated always have a unique depth just use

    mc.duplicateMovieClip(newName,d++)

    as long as you have d++ as the depth for every clip duplicated, they will always have a different depth from the last
    thanks token but what if i have something like this

    mc.duplicateMovieClip(newName,d++)
    othermc.duplicateMovieClip(coolname,p++)

    and d++ and p++ they both start at 1
    would that cause any problems???


    can two or more movie clips which have different names have the same depth??






  4. #4
    gskinner.com
    Join Date
    Feb 2002
    Location
    N.America
    Posts
    455
    No. Only one instance can be assigned per depth. The second instance to be assigned will override the first.

    Why not test it? It takes less time than posting a question.

    Cheers,
    ZE.

  5. #5
    incredibulus-actionscriptum magnetos's Avatar
    Join Date
    May 2001
    Posts
    2,160
    thanks zeroera i was thinking about testing it but i wasnt quite sure on how to do it


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