A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: level what? level who? what da *%#!!!!

  1. #1
    Member
    Join Date
    Dec 2003
    Location
    Cincinnati
    Posts
    34

    level what? level who? what da *%#!!!!

    having a little problemo
    I have two different movie clips on my main stage.
    instance names:
    NAVMOVBOT
    NAVMOVTOP

    On each clip I have these actions.......

    onClipEvent (mouseDown) {
    this.swapDepths("_root.NAVMOVTOP");
    }

    And.....

    onClipEvent (mouseDown) {
    this.swapDepths("_root.NAVMOVBOT");
    }

    Now why in the neverending world will this not work?
    Any suggestions?
    If so, you will get a happy face for the day.

    -thanx
    www.p2studios.com
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    Malibu
    Posts
    251
    Well...unless you set the clips to a depth initially with swapDepths, there isn't a depth to swap with.
    www.electricbluemonkey.com

  3. #3
    Member
    Join Date
    Dec 2003
    Location
    Cincinnati
    Posts
    34
    and how might i do that

  4. #4
    Senior Member
    Join Date
    Sep 2002
    Posts
    265
    You don't have to set a clip's level in order to swapdepth, all clips have depth based on their arrangement on the stage.

    I think it's because you're trying to use a mouseDown event on a movieclip that you're getting nothing to happen

    Here's an example with one line of code moved onto a button.

    code:

    on(press){
    _root.navmovbot.swapDepths(_root.navmovtop);
    }



    press the square to swap the depths of the circles.
    Likewise, you can add a button on top of your circular movieclips to do the same thing.
    Attached Files Attached Files

  5. #5
    Member
    Join Date
    Dec 2003
    Location
    Cincinnati
    Posts
    34
    thanks alot!
    sorry for the newby inconvenience
    -p2studios

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