예제 #1
0
        public virtual void load(AsURLRequest request, AsSoundLoaderContext context)
        {
            mRequest = request;
            mContext = context;

            String url = request.getUrl();

            if (url.StartsWith("http"))
            {
                throw new NotImplementedException("Http loading not implemented");
            }

            mSound = BcResFactory.GetInstance().LoadSound(url);
            AsDebug.assert(mSound != null, url);

            Debug.WriteLine("Sound loaded: " + url);
            dispatchEvent(new AsEvent(AsEvent.COMPLETE));
        }
예제 #2
0
        public virtual void load(AsURLRequest request, AsSoundLoaderContext context)
        {
            mRequest = request;
            mContext = context;

            String url = request.getUrl();

            if (url.StartsWith("http"))
            {
                throw new NotImplementedException("Http loading not implemented");
            }

            mSound = BcResFactory.GetInstance().LoadSound(url);
            AsDebug.assert(mSound != null, url);

            Debug.WriteLine("Sound loaded: " + url);
            dispatchEvent(new AsEvent(AsEvent.COMPLETE));
        }
예제 #3
0
 public AsSound(AsURLRequest request, AsSoundLoaderContext context)
 {
     mRequest = request;
     mContext = context;
 }
예제 #4
0
 public AsSound(AsURLRequest request, AsSoundLoaderContext context)
 {
     mRequest = request;
     mContext = context;
 }