I use 'URLLoader' to load images, I can't get the picture after loading is complete

I use ‘URLLoader’ to load images,
I can’t get the picture after loading is complete

Loading completed within the event

Unable to obtain image, return null

QQ20250710-224408

For loading images, it’s usually better to use Loader instead of URLLoader. URLLoader is meant primarily for text or binary data. Loader will automatically generate a Bitmap and BitmapData.

The content property of the Loader should be a Bitmap, and you can access the bitmapData property if you need the BitmapData object.

Using ‘URLLoader’ to load images
Can it be done upon completion of loading
Create images synchronously through BitmapData.frombytes?