|
-
loader.content.width vs loader.width
I dont quite get this.
I am loading an image and after some calculations to proportionally resize image to fit on the stage I trace:
trace(imageLoader.width / 2);
trace(imageLoader.content.width / 2);
//output
221.425
221.425
these two values are the same, which is understandable..
then I have the option to click on the image and expand it to its full width and height so I can pan it.
and when the image expands, i trace:
trace(imageLoader.width / 2);
trace(imageLoader.content.width / 2);
//output
600.5
221.425
why are these values now different?
shouldnt now these both be 600.5 ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|