Exemplo n.º 1
0
        public virtual void load(AsURLRequest request, AsLoaderContext context)
        {
            mRequest = request;
            String url = request.getUrl();

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

            BcTexture2D image = BcResFactory.GetInstance().LoadImage(url);
            AsDebug.assert(image != null, url);

            AsBitmapData bitmapData = new AsBitmapData(image);
            mContent = new AsBitmap(bitmapData);

            Debug.WriteLine("Image loaded: " + url);
            dispatchEvent(new AsEvent(AsEvent.COMPLETE));
        }
Exemplo n.º 2
0
        public virtual void load(AsURLRequest request, AsLoaderContext context)
        {
            mRequest = request;
            String url = request.getUrl();

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

            BcTexture2D image = BcResFactory.GetInstance().LoadImage(url);

            AsDebug.assert(image != null, url);

            AsBitmapData bitmapData = new AsBitmapData(image);

            mContent = new AsBitmap(bitmapData);

            Debug.WriteLine("Image loaded: " + url);
            dispatchEvent(new AsEvent(AsEvent.COMPLETE));
        }
Exemplo n.º 3
0
 public virtual void loadBytes(AsByteArray bytes, AsLoaderContext context)
 {
     throw new AsNotImplementedError();
 }
Exemplo n.º 4
0
 public virtual void loadBytes(AsByteArray bytes, AsLoaderContext context)
 {
     throw new AsNotImplementedError();
 }