[Flashcoders] flash returns "incorrect" size for masked clips

2006-09-29 Thread Radley Marx



note:  I posted this initially to another list and got some clues,  
but would like to have this worked out...




I have a .swf that's 400x300. It has a stage and mask that's 400x300,  
but the masked content is 800x600.


When I check ._width & ._height for the movie I get 800x600, instead  
of 400x300 which *should* be the true (and useful) value.


Is this a permanent "error"? Or does the value eventually come back  
as I expected?


My goal is to be able to load any swf or image into a gallery and be  
able to adjust the size to match.



Sorry for the fishing expedition. Considering how much work I see out  
there with "off-stage" content, it just seems really odd that Flash  
would return a useless value.




thanks for your input!


-radley





 
--

Radley Marx
[EMAIL PROTECTED]
310.220.4088
http://www.radleymarx.com
 
--





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash returns "incorrect" size for masked clips

2006-09-29 Thread Martin Wood

useful is a matter of perspective :)

if you want to load in the content behind a mask and dont know how big the 
content is then its useful to be able to find out its real size, not just the 
visible size.


Radley Marx wrote:
I have a .swf that's 400x300. It has a stage and mask that's 400x300, 
but the masked content is 800x600.


When I check ._width & ._height for the movie I get 800x600, instead of 
400x300 which *should* be the true (and useful) value.


Is this a permanent "error"? Or does the value eventually come back as I 
expected?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash returns "incorrect" size for masked clips

2006-09-29 Thread Radley Marx



perhaps...

but by my understanding, if I wanted to know the size of a specific  
movieClip, I'd target it directly instead of the parent... ?


;-)


-radley




On Sep 29, 2006, at 11:07 AM, Martin Wood wrote:


useful is a matter of perspective :)

if you want to load in the content behind a mask and dont know how  
big the content is then its useful to be able to find out its real  
size, not just the visible size.


Radley Marx wrote:
I have a .swf that's 400x300. It has a stage and mask that's  
400x300, but the masked content is 800x600.
When I check ._width & ._height for the movie I get 800x600,  
instead of 400x300 which *should* be the true (and useful) value.
Is this a permanent "error"? Or does the value eventually come  
back as I expected?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






 
--

Radley Marx
[EMAIL PROTECTED]
310.220.4088
http://www.radleymarx.com
 
--





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com