dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Under MC

  1. #1
    Senior Member
    Join Date
    Jul 2003
    Location
    Canary Islands
    Posts
    222

    Under MC

    Hi all,
    When I load external swf in to my project and I want to attach from library some MC, it is always under the loaded external swf. I need the attached MC to be on top of the loaded swf. How can I make it?
    Thanks for help...

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    swapDepths() in the AS dictionary.

  3. #3
    Senior Member
    Join Date
    Jul 2003
    Location
    Canary Islands
    Posts
    222
    I have used a code:
    container_mc.attachMovie("card", "clip_1", 2);

    It doesn't work and - my_mc.swapDepths(depth) - to I don't understand so much. Attached clip is still under swf.

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Where did you load your external .swf? In a container clip?
    What's it's nstance name?

  5. #5
    Senior Member
    Join Date
    Jul 2003
    Location
    Canary Islands
    Posts
    222
    I load external swf with action:

    loadMovieNum("thumbs.swf", 1");

    and I attach MC with action:

    function func3(){
    _root.attachMovie("ID1","myClip1", 2 );
    _root.myClip1._x=383
    _root.myClip1._y=394
    }


    I have tried it also the other way, but nothing's working...

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Attached movie clips are attached on the _root level (_level0), and anything loaded on another higher level (as your movie loaded on level 1) will ALLWAYS appear on top of whatever is on level0.
    You should try loading your external movie in a container clip on stage, and then swap depths on those 2 clips, your loaded one and the attached one.

  7. #7
    Senior Member
    Join Date
    Jul 2003
    Location
    Canary Islands
    Posts
    222
    I am still triyng it, but it doesn't work.
    I have done a small example. Blue sq are on main movie, where the pink sq (external swf) are loading to. When click on the blue sq the clip (violet sq) attaches, which is under. But I need this to be on top.

  8. #8
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    This what you want?
    Last edited by oldnewbie; 12-03-2004 at 04:54 PM.

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