actually, I'm not sure if localToGlobal does anything with the scaling. I have the feeling it simply adds coordinates of parent movieclips to the local ones..
On 4/24/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote: > > getBounds doesn't really help, as I'm also tracing it, and it doesn't seem > to change one way or the other. (same > with getRect) > > to Bernard: I have tried using localToGlobal and the other variant, but > no matter what I do > it doesn't really change values somehow (or maybe i'm doing it wrong). > Could you post > an example as to where, in the boxscaling example, localtoglobal actually > outputs > something different than say the common _x coordinate? > > Actually the bigger scope of the problem is finding out the positions of > movieclips within a > parent movieclip which is scaled, I've twidled with some options, but none > seem to work :(. > > and to Mark: I didn't actually mean to sound sarcastic, I really did > thought that perhaps > using the coordinates of the centerpoint in the algorithm would do > something meaningfull, > but alas, it didnt, but no hard feelings :). > > thanks for the help, > Meinte > > > On 4/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > When the registration point is not the top-left corner of your clip, you > > might > > want to check the MovieClip.getBounds() method, it's very handy. > > > > Tim. > > > > > > On Mon, 24 April 2006 18:45, Meinte van't Kruis wrote: > > > Hi folks, > > > > > > I have a problem correctly figuring out the actual x value of the > > top-left > > > corner of a movieclip when scaling it. > > > To demonstrate to this: > > > > > > put movieclip t on stage(a black box). Edit it, so that it's left top > > > corner isn't on the movieclip centerpoint. > > > > > > this code on stage: > > > > > > onEnterFrame=function(){ > > > t._xscale++; > > > trace(t._x); > > > trace(t.getBounds().xMin); > > > trace(t.getRect().xMin); > > > } > > > > > > if you execute it, you can clearly see the top-left corner is in fact > > > moving, due to the scaling. > > > But the values never change. So my question is: > > > > > > how do I know the coordinates of the topleft corner of an > > (off-centered) > > > movieclip, or > > > the coordinates of the topright corner of a centered movieclip while > > > scaling it? > > > > > > I'm really stuck on this, help would be very much appreciated. > > > > > > greetings, > > > Meinte > > > > _______________________________________________ > > 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 > > > > _______________________________________________ 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