Unwanted mc instances

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

  1. #1

    Default Unwanted mc instances

    Hi all
    I hope I'm not posting this twice but it didn't seem to work first time.
    Apologies just in case. And next time I'll copy my carefully composed post so I
    don't lose it!

    I have a single level movie. Frame 1 is an intro screen, Frame 2 is where I
    initialise for Frame 3 which is where drag and drop activity takes place -
    dragging food items to a plate.

    I want the food item being dragged to appear above all the others until
    another food item is dragged to the plate thereby naturally sitting above the
    first. I'm using mc.swapDepth(5) - 5 is arbitrary - to accomplish this and it's
    giving me more or less the desired result.

    However, what's happening is: if you drag, say, fish to the plate then click
    Back (to intro), a 2nd instance of the fish appears on the intro screen (it
    shouldn't be there) in its initial x/y location. Then when you click Next, the
    2nd instance of the fish is still there. If I drag two items to the plate and
    click Back, the later item is on the intro screen and the 2nd fish has gone
    both from the intro screen and the activity screen, BUT the later item is now
    duplicated on the activity screen.

    [L=View here]http://members.optushome.com.au/cursors_m/healthy/healthy.html[/L]

    Can anyone shed any light? Am I misusing swapDepth() - my feeling. How should
    I be doing it?

    TIA for any help

    Bronwyn L

    BronwynL Guest

  2. Similar Questions and Discussions

    1. Unwanted Rounding
      I have a decimal datatype set to precision 5 and scale 2. When I try to insert a new record via ASP using a stored procedure, my numbers are...
    2. Unwanted mc instances - is it me?
      hmm. Just had a look at your movie, and it doesn't look like thats exactly what it does... You have tried starting your levels for swapDepths at...
    3. unwanted border around swf
      I have this flash site that comes from a html primary page. But the swf window that is embebed in a html page too, shows a small border around the...
    4. unwanted message pop-ups
      Can anyone tell my how to stop these messanger pop-ups? I have had no trouble with this until yesterday after I downloaded the windows updates. All...
    5. unwanted adds
      for some reason everytime we log on to internet explorer we are getting porn adds and we cant make them go away we just recently got our first...
  3. #2

    Default Re: Unwanted mc instances - is it me?

    It sounds like this is happening:

    1) When the clip starts flash has placed the fish clip at its default level
    (e.g. level 2)
    2) In frame 3 it gets put at depth 5 (not on 2 anymore)
    3) When it goes back to frame 1, flash places the fish at its default level 2,
    and there is still one at 5
    4) When you get to frame 3, you drag the fish and it SWAPS depths with 5 and
    there are still 2 fishes, the first at level 2 again, and the latest at level 5
    5) When you go back to the intro screen the latest is there still at level 5,
    plus a new one again at level 2



    Pea 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