Swap Depths of Target Loaded Movie Clips

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default Swap Depths of Target Loaded Movie Clips

    Can anyone help?

    I'm using buttons to load external draggable mc's into the movie where the buttons are located. I'm trying to swapDepths of these mc's with no luck. I've tried coding the external mc's root timeline, the mc's themselves, I even tried making the mc's buttons and coding them, and nothing.

    If the movies aren't loaded, everything works fine. Swapping depths is relatively easy to do... but for some reason I can't get it to work on target loaded mc's.

    I could easily load these movies onto levels, but this causes printing issues.

    Anyone have a solution?

    Thanks


    dprovidenti webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Swap Flash Movie
      Hi All, Is there a way to have a button on a HTML page swap the SWF for another SWF on the mouse Click? So I have a small flash movie taking up...
    2. Movie clips
      Need help with something. When using the Actions to show a movie when hitting a button I want to show a movie stopping at the end and you have...
    3. Loading Movie Clips into other movie Clips
      I know I have done this before (or at least something like unto it) but can't find a clear explanation of how to or if it can be done: I have an...
    4. Having a loaded movie talk back to main timeline/movie?
      Ok, here?s the situation: I have a main movie named ?scheduled_reports.swf?. It is made up of 12 frames. Each frame has an action to load a swf...
    5. Help with Multiple Movie Clips
      Hi I have drawn on paper some simple line-art sprites.. I scanned and Trace Bitmap'd them individually.. and by pasting them on different...
  3. #2

    Default Re: Swap Depths of Target Loaded Movie Clips

    there shouldn't be any problem unless you have a coding error or are trying to do something before your movies load that require you to wait until loading has completed.


    kglad webforumsuser@macromedia.com Guest

  4. #3

    Default Re: Swap Depths of Target Loaded Movie Clips

    thanks for the reply but...


    here's the code I've tried on the clip itself -- doesn't work when it's loaded into a target

    on (press) {
    startDrag(this);
    this.swapDepths(2);
    }
    on (release) {
    stopDrag();
    }


    then I tried this on the first frame of the clip's timeline --- doesn't work either if the mc is loaded:



    red.onPress = function() {
    startDrag(this, true);
    this.swapDepths(2);
    };
    red.onRelease = function() {
    stopDrag();

    };
    blue.onPress = function() {
    startDrag(this, true);
    this.swapDepths(2);
    };
    blue.onRelease = function() {
    stopDrag();

    };




    dprovidenti webforumsuser@macromedia.com Guest

  5. #4

    Default Figued it out...

    this code has to be attached to the "target" mc where you're loading into
    the loading mc doesn't have to have it anywhere

    on (press) {
    startDrag(this);
    this.swapDepths(2);
    }
    on (release) {
    stopDrag();
    }



    dprovidenti webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139