Question
Size of sprite different in AS3 and Flash
When i do a Select All of my symbol in Flash I get a height
(lets say 300x300). Even if there are multiple items, it groups
them together to give me the total size.
In AS3 I never get the same size. I have tried calling getRect(), width/height, etc... I get a different size, it's close but still invalid, sometimes smaller, sometimes larger.
To replicate this:
1. Create a new sprite with some text, add some paint brushes, etc..
2. Add the sprite to the stage and notice its width and height
3. Give the sprite an instance name (in this case I called it "block")
4. Add a document main source file and add the following code to the constructor (from the bottom of the script)
You will see that the size the code tells you and the size the flash editor gives are different. Is this a bug?
In AS3 I never get the same size. I have tried calling getRect(), width/height, etc... I get a different size, it's close but still invalid, sometimes smaller, sometimes larger.
To replicate this:
1. Create a new sprite with some text, add some paint brushes, etc..
2. Add the sprite to the stage and notice its width and height
3. Give the sprite an instance name (in this case I called it "block")
4. Add a document main source file and add the following code to the constructor (from the bottom of the script)
You will see that the size the code tells you and the size the flash editor gives are different. Is this a bug?
