- Points
- 481
- Digest
- 0
- R.P.
- 30
- Joined
- 2011-6-27
- Last visit
- 2012-11-30
- Posts
- 91
 
|
When I add a sprite and immediately after creating or adding the image, check the size of the image, I get [0,0] in the size.
var itemImage = sprite(imagePath);
someBtn.add(itemImage, 1, 1);
var sizeImage = itemImage.size();
trace("sizeImage", sizeImage);
Is there any way to get the actual size of the image at either the point when you create the sprite or when you add it to its parent? I need to do some image manipulations based on the size of the image.
|
|