it seems there is an error in the code below, but where?
function cloneLoader(source:Loader):Loader
 {
  var clone:Loader = new Loader();
  clone.loadBytes(source.contentLoaderInfo.bytes);
  return clone;
};
clone.loadBytes is an asynchronous call. So you probably can't use the returned object right away.
Maybe try  return Loader(ObjectUtil.clone(source));
There is no error in the code as such, nothing wrong with the syntax, it will work fine if source is a Loader.
What error message do you get?
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论