A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Attaching movie clip on layer

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    10

    Attaching movie clip on layer

    I need to create new object, but in a layer that is below the tope one. Could somebody help me in this problem? So far I tried some commands:

    PHP Code:
    _root.attachMovie(...); 
    - this one creates object above all other. Changing depth doesn't change anything when it's about objects I put manually in editor.

    PHP Code:
    _root.layername.attachMovie(...); 
    - this one doesn't work at all.

    I would be thankful for any help.

  2. #2
    Senior Member
    Join Date
    Jun 2008
    Posts
    549
    So, are you using code to generate the objects on the stage, or are the objects already on the stage.

  3. #3
    Junior Member
    Join Date
    Nov 2009
    Posts
    10
    There are some objects which are already on stage and some other I need to create. The problem is that the created objects are always above those who were placed on stage manually.

  4. #4
    Senior Member
    Join Date
    Jun 2008
    Posts
    549
    I normally stick to either manually adding movie clips on the stage, or generating them dynamically from the library. I don't usually mix the two, but you can try using the swapDepths() method. Here are some links:

    http://01631c77.tinybucks.net
    http://43cd0a29.tinybucks.net

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