Not that I know of. If the first frame was representative of the size as a whole, then iterating through the movie clips looking for clips with negative x/y values could be done, however it's sort of a moot point as soon as everything moves around in subsequent frames. I also don't think that will work if some of the symbols are graphic symbols instead of movie clips. You basically need to know in advance what the size of the clip is going to be, then code that into your positioning code. Not pretty, but it's doable.

Nathan
http://www.nathanderksen.com


On Feb 3, 2006, at 8:40 AM, Éric Thibault wrote:

Mmm...

The funiest thing is that if I want to center my loaded SWF that has instances outside the loaded SWF'stage, it gets shifted.... :'(

Is there a way to know the nomber of pixels to the left, top, bottom and right of the registration point (0,0) of a container? I could than compensate for the extras of the SWF inside of it...

Say that my container is 200px in width but I know that it has 50px extra to the left (-50px), my real width is then 150px??

A+

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to