Re: [Flashcoders] Masked mc and total size
natalia Vikhtinskaya skriver: How I can check how they intersect? Can you explain at this example how I should calculate total size? You can find the bounding boxes with the getBounds method and take it from there. But it is still only the bounding boxes. And things do get complicated when things are scaled, rotated or otherwise transformed. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Masked mc and total size
How I can check how they intersect? Can you explain at this example how I should calculate total size? 2010/12/8 Henrik Andersson : > natalia Vikhtinskaya skriver: >> >> Mask is 100px width. Image is 200px width. Putting 3 masked mc in one >> container don't give 300px width. >> > > True, but if you put the image at (0,50) the visible size is 50 pixels. That > is, assuming that the image has the registration point in the top left > corner. And that the mask covers the region (0,0) to (100,100). > > My point is that you can't just take the width of the mask or the maskee but > have to actually check how they intersect. > > Good luck if the mask/maskee isn't rectangular and/or rotated. > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Masked mc and total size
natalia Vikhtinskaya skriver: Mask is 100px width. Image is 200px width. Putting 3 masked mc in one container don't give 300px width. True, but if you put the image at (0,50) the visible size is 50 pixels. That is, assuming that the image has the registration point in the top left corner. And that the mask covers the region (0,0) to (100,100). My point is that you can't just take the width of the mask or the maskee but have to actually check how they intersect. Good luck if the mask/maskee isn't rectangular and/or rotated. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Masked mc and total size
Mask is 100px width. Image is 200px width. Putting 3 masked mc in one container don't give 300px width. 2010/12/8 Henrik Andersson : > Glen Pike skriver: >> >> mc.mask.width? > > What if the maskee is smaller? What if the mask and the maskee only > partially overlaps? > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Masked mc and total size
Glen Pike skriver: mc.mask.width? What if the maskee is smaller? What if the mask and the maskee only partially overlaps? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Masked mc and total size
mc.mask.width? On 08/12/2010 17:26, natalia Vikhtinskaya wrote: Hi I have mc content_mc with 3 mc inside. Each of them has image with different size and masked with size 100px width. I expected to get total size for container_mc 3*100. But it is not true. When I trace(content_mc._width) it gives me 497. I need correct calculation for content mc. What I can do for that? I tried different type of masks – dynamic and static. Result always wrong. Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Masked mc and total size
Hi I have mc content_mc with 3 mc inside. Each of them has image with different size and masked with size 100px width. I expected to get total size for container_mc 3*100. But it is not true. When I trace(content_mc._width) it gives me 497. I need correct calculation for content mc. What I can do for that? I tried different type of masks – dynamic and static. Result always wrong. Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders