Answered
how do I convert a jpg to a Sprite
Just want to turn a jpg into a Sprite dynamically.
Just want to turn a jpg into a Sprite dynamically.
When you load an external jpg, your Loader.content is of type flash.display.Bitmap. I don't believe you can convert this Bitmap to a Sprite.
Why do you need it to be a Sprite? Bitmap is a display object.
If you definitely need a Sprite, all i can think of is to create a Sprite and add the Bitmap to your sprite using Sprite.addChild.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.