[Flashcoders] LoadClip and centering new content

2006-02-02 Thread Éric Thibault
Hi all!!! I've finaly made my component but can accross the issue of aligning the newly loaded content... I can align correctly images but swf is a bit complicated... 1. If I load a SWF that the stage is 300*300 but on frame 1 there is only 1 MC of 100*100, the with of the newly loaded SWF i

Re: [Flashcoders] LoadClip and centering new content

2006-02-02 Thread Éric Thibault
OUF!!! long day... full of typo mistakes... sorry! Éric Thibault wrote: Hi all!!! I've finaly made my component but can accross the issue of aligning the newly loaded content... I can align correctly images but swf is a bit complicated... 1. If I load a SWF that the stage is 300*300 but o

RE:[Flashcoders] LoadClip and centering new content

2006-02-03 Thread Éric Thibault
Hello again... My problem is : how to know the stage's dimentions of a loaded SWF to center it correctly in its container? Here's my tests on that particular problem 1. Set _lockroot inside the loaded SWF : no effect. 2. Set Stage.scaleMode = |"noScale" : no effect. |When I execute the loade

RE: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread j.c.wichman
: Friday, February 03, 2006 3:11 PM To: Flashcoders Mailing List Subject: RE:[Flashcoders] LoadClip and centering new content Hello again... My problem is : how to know the stage's dimentions of a loaded SWF to center it correctly in its container? Here's my tests on that particular

Re: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread Éric Thibault
riginal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Thibault Sent: Friday, February 03, 2006 3:11 PM To: Flashcoders Mailing List Subject: RE:[Flashcoders] LoadClip and centering new content Hello again... My problem is : how to know the stage's dimention

Re: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread Nathan Derksen
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Thibault Sent: Friday, February 03, 2006 3:11 PM To: Flashcoders Mailing List Subject: RE:[Flashcoders] LoadClip and centering new content Hello again... My problem is : how to know the stage's dimenti

Re: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread Helen Triolo
Looks like that info is in the swf header (Northcode pulls from that to do its getStageSize) but I don't know how you can access the header of a loaded swf from within Flash itself. Helen Éric Thibault wrote: I already do that... but the width and height of the container clip takes into acco

Re: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread Éric Thibault
rs Mailing List Subject: RE:[Flashcoders] LoadClip and centering new content Hello again... My problem is : how to know the stage's dimentions of a loaded SWF to center it correctly in its container? Here's my tests on that particular problem 1. Set _lockroot inside the loaded SWF : n

RE: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread Ryan Potter
-(h/2); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Thibault Sent: Friday, February 03, 2006 9:06 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadClip and centering new content I already do that... but the width and height of the container

Re: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread Nathan Derksen
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 th

Re: [Flashcoders] LoadClip and centering new content

2006-02-03 Thread Éric Thibault
what you mean? Greetz Hans -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Thibault Sent: Friday, February 03, 2006 3:11 PM To: Flashcoders Mailing List Subject: RE:[Flashcoders] LoadClip and centering new content Hello again... My problem is : how