Professional Web Applications Themes

Unwanted mc instances - is it me? - Macromedia Flash Actionscript

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 500 or more? And ensure they are unique for every swapDepths call?...

  1. #1

    Default Re: 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 500 or more? And ensure
    they are unique for every swapDepths call?

    Pea Guest

  2. #2

    Default Re: Unwanted mc instances - is it me?

    Thanks for your input, Pea.
    I created a global variable to maintain unique depths that I incremented each
    time, ie

    mc.swapDepths(currentDepth);
    currentDepth +=1;

    but the effect was multiple instances of EVERYthing I dragged (which I kinda
    expected). What I want to do is dispose of the instance that seems to be
    created when I swapDepth. I really just want to switch the z axis.

    thanks again

    BronwynL Guest

  3. #3

    Default Re: Unwanted mc instances - is it me?

    HAH! I've got a workaround. Not pretty, but...

    I created a mc with nothing in it, put it on stage and gave it an instance
    name of "null". When I initialise, I null.swapDepths(500) and so far I can't
    recreate my problem.

    YAY!

    BronwynL Guest

  4. #4

    Default Re: Unwanted mc instances - is it me?

    how about _root.swapDepths ? and save yourself a null.

    John

    --
    ----------------------------------------------------------------------------
    -----------
    RESOURCES
    [url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
    ----------------------------------------------------------------------------
    -----------
    TUTORIALS at
    [url]www.laiverd.com[/url]
    Flash & PHP Emailform
    Using textfiles in Flash
    ----------------------------------------------------------------------------
    -----------


    Laiverd.COM Guest

Similar Threads

  1. Unwanted mc instances
    By BronwynL in forum Macromedia Flash Actionscript
    Replies: 1
    Last Post: March 3rd, 06:53 AM
  2. unwanted border around swf
    By André Santos webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 1
    Last Post: December 10th, 04:59 PM
  3. unwanted text
    By Joe Ford in forum Adobe Photoshop Elements
    Replies: 0
    Last Post: August 1st, 09:01 AM
  4. Unwanted editing
    By PhilipB in forum FileMaker
    Replies: 12
    Last Post: July 22nd, 12:39 AM
  5. Unwanted messages
    By Miha Pihler in forum Windows Setup, Administration & Security
    Replies: 0
    Last Post: July 15th, 09:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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