public void LoadProductImage() { if (_texture != null) { ProdcutImageLoaded(_texture); return; } WPN_TextureLoader loader = WPN_TextureLoader.Create(); loader.TextureLoaded += HandleTextureLoaded; loader.LoadTexture(ImgURI); }
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); }