le><p class="javadoc">Returns:</p><div class="indent inline-content"><p>The removed object.</p></div></div></div><div class="field "><a name="replace"></a><h3 class="anchor"><code><a href="#replace"><span class="identifier">replace</span></a>(<span style="white-space:nowrap">OldObject:<span class="type">T</span>,</span> <span style="white-space:nowrap">NewObject:<span class="type">T</span></span>):<span class="type">T</span></code></h3><div class="doc"><p>Replaces an existing <code><a href="../../flixel/Flx