         n = instances.length;
         for (i = 0; i < n; i++)
         {
-            mx_internal::effectsPlaying.push(
+            effectsPlaying.push(
                 new EffectNode(effectInst, instances[i]));
         }
         

        // This function is called when an effect, which was started
        // earlier by this effect manager, finishes playing.  Remove
        // this effect from the "effectPlaying" list
        var n:int = mx_internal::effectsPlaying.length;
        for (var i:int = n - 1; i >= 0; i--)
        {
            if (mx_internal::effectsPlaying[i].instance == effectInst)
            {
                mx_internal::effectsPlaying.splice(i, 1);
                break;
            }
        }

    {
        // Iterate through the array backward, because calling end()
        // may cause the element to be removed from the array.
        var n:int = effectsPlaying.length;
        for (var i:int = n - 1; i >= 0; i--)
        {
            var otherInst:EffectInstance =
                effectsPlaying[i].instance;
            if (otherInst.target == target)
                otherInst.end();
        }       
