A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Is there a change level properties?

  1. #1
    Senior Member
    Join Date
    Jul 2000
    Posts
    143
    Here is the problem. I got in the main movie (level 0) a movie clip (X) with a Drag action on it . I have to Load some movies to my main movie, so do it in levels 1, 2, and 3.

    The problem is that when i press the X movieclip (start drag) i want it to be over everything else...on level 4!!!

    What can i do?

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    179
    yep use
    _level0.dragclipname.swapDepths(4)

    where obviously you substitue dragclipname for it's instance name.

    -Rui

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    143

    Thanks but...

    I already tried that but it did´t work. Any other idea or what could be wrong?

    Thanks.

  4. #4
    Senior Member
    Join Date
    Jun 2001
    Posts
    179

    umm it should....

    that's all that could be wrong... the levels are what causes it to go under...
    http://www.wiremedia.net/fk/swapdepth.fla

    here exaple for u
    -Rui

  5. #5
    Senior Member
    Join Date
    Jul 2000
    Posts
    143

    Here is the problem

    http://www.vtr.net/~manutara/swap.swf

    If you press CONTACTO a Movieclip (x) plays from an empty frame to what you´ll see. You can drag that window. Now if you drag any upper icon into the orange square, a .swf loads into the scene into level 1. Other icon loads another into level 2. Now drag the orange (x) Movie clip...is under all the rest on level 0.

    As i told you i tried:
    _level0.x.swapDepths(4)

    but nothing happened.

  6. #6
    Senior Member
    Join Date
    Jun 2001
    Posts
    179

    yes

    the method i said would work for that..

    ok do this
    the button that you have for contacto
    instead of using it to play that movie clip take that movie clip duplicate it and tell it to play
    so eg.

    Code:
    box.duplicateMovieClip("box1", 4)
    _level0.box1.gotoAndPlay(2)
    now it should appear over everything else.
    if it still doesn't work
    email me the fla and i'll fix it for you
    rui@wiremedia.net

    -Rui

  7. #7
    Senior Member
    Join Date
    Jun 2001
    Posts
    179

    hey.. manutara

    hey man gimme ur email address!!!
    i tried sending you bak the fla 3 times to the address you email me with and i keep getting an error msg saying it doesn't exist!!
    -Rui

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