Example #1
0
    public void LoadProductImage()
    {
        if (_texture != null)
        {
            ProdcutImageLoaded(_texture);
            return;
        }


        WPN_TextureLoader loader = WPN_TextureLoader.Create();

        loader.TextureLoaded += HandleTextureLoaded;
        loader.LoadTexture(ImgURI);
    }
Example #2
0
    public void LoadProductImage()
    {
        if (_texture != null)
        {
            dispatch(PRODUCT_IMAGE_LOADED);
            return;
        }


        WPN_TextureLoader loader = WPN_TextureLoader.Create();

        loader.addEventListener(BaseEvent.LOADED, OnTextureLoad);
        loader.LoadTexture(ImgURL);
    }