title: How use swapDepths & getNextHighestDepth() in AS3?
body: <p>I'm trying to convert the following code:</p>
  
  <pre><code>DNA0.swapDepths(this.getNextHighestDepth())
  </code></pre>
  
  <p>I tried it this way:</p>
  
  <pre><code>DNA0.swapChildren(stage.getChildIndex(DNA0));
  </code></pre>
  
  <p>But its not working...
  I guess I didn't understand the logic. Anybody help me?</p>
  
  <p>----EDIT----
  @gladoscc, good job. it's work. But I have other convert problems..</p>
  
  <p>Like,</p>
  
  <pre><code>this['DNA'+DNAsy.length].y = this['DNA'+(DNAsy.length-1)].y;
  this['DNA'+DNAsx.length].x = this['DNA'+(DNAsy.length-1)].x;
  DNAsy.push(this['DNA'+DNAsy.length].y)
  DNAsx.push(this['DNA'+DNAsx.length].x)
  </code></pre>
  
  <p>I guess, I will ask a new question...</p>