Sounds play in swc

We are working on the game and there is one bug that separates from the release
TTT.swf main, loads two swfs in turn: TSwf1 and TSwf2.

In TSwf1 and TSwf2, they play щту sound, the sound is connected as swc, the name of the sound is the same in two different swc, but the sounds are different.

Expected behavior: since we load different swfs with different swc, the sounds should be different despite the same names. Actual behavior: TSwf1 plays sound with TSwf1.

Main.as
package nord
{
import flash.utils.setTimeout;
import nord.connect.ITest;
import flash.display.DisplayObjectContainer;
import flash.display.Loader;
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLRequest;
import flash.system.ApplicationDomain;
import flash.system.LoaderContext;

public class Main extends MovieClip
{  
 private var currentLdr:Loader;
 private var currentSwf:DisplayObjectContainer;
 
 public function Main()
 {
 
  addEventListener(Event.ADDED_TO_STAGE, init);
 }
 
 private function init(e:Event):void
 {  
  loadSwf("TSwf1");
 
  setTimeout(function()
  {
   stage.removeChild(currentSwf);
   currentLdr.unloadAndStop();
   currentLdr = null;
   currentSwf = null;
 
   setTimeout(function()
   {
    loadSwf("TSwf2");
   }, 1000);
 
  }, 5000);
 }
 
 public function loadSwf(name:String):void
 {  
  trace("LoadRequest: " + name + ".swf");
 
  currentLdr = new Loader();
  var req:URLRequest = new URLRequest(name+".swf");
  var ldrContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
  currentLdr.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
 
  currentLdr.load(req, ldrContext);
 }
 
   private function completeHandler(event:Event):void
 {
  currentLdr.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler);
 
  currentSwf = currentLdr.content as DisplayObjectContainer;
  stage.addChild(currentSwf);
 }
}
 
}

ITest.as
package nord.connect
{

/**
 * ...
 * @author DANIIL_NALETOV
 */
public interface ITest
{
 function doIt(data:Object = null):void;
}
}

By “name of the sound” do you mean “AS Linkage”? If so, maybe don’t use identical Class names…
Also aren’t there any warnings logged in the output?

Yes, “linkage”. No warnings messages

by name of the sound you mean the exported symbol name ?
if so, that is normal

once a symbol or definition is loaded then it become a constant
and you can not override it with the same name but different content

use a different name for each sound (the exported definition name)

but imho you would be better off by simply loading an external .mp3 file of the sound