good point On 2/22/06, Grant Cox <[EMAIL PROTECTED]> wrote: > > Except you would have to iterate through every _parent level until you > hit the _root anyway, in case any ancestor clip is scaled... I've done > that before for visibility ( parent was _visible=false, grandchild was > _visible=true but of course not seen). > > > Lanny McNie wrote: > > >Also, you could just multiply the width/height by the scale.. > > > >var w = subClip._width * subClip._parent._xscale / 100; > >var h = subClip._height * subClip._parent._yscale / 100; > > > >Sorry for the psuedo code. > > > >On 2/22/06, Rich Rodecker <[EMAIL PROTECTED]> wrote: > > > > > >>ah, nice one. > >> > >>On 2/22/06, Grant Cox <[EMAIL PROTECTED]> wrote: > >> > >> > >>>If you use localToGlobal you can find the dimensions in root > >>> > >>> > >>coordinates. > >> > >> > >>>/////////////////////////////////// > >>>var topleft = {x: inner._x, y: inner._y}; > >>>var bottomright = {x: inner._x + inner._width, y: inner._y + > >>>inner._height}; > >>> > >>>inner._parent.localToGlobal(topleft); > >>>inner._parent.localToGlobal(bottomright); > >>> > >>>trace("inner from: " + topleft.x + "," + topleft.y + > >>> " to: " + bottomright.x + "," + bottomright.y ); > >>>/////////////////////////////////// > >>> > >>> > >>>Rich Rodecker wrote: > >>> > >>> > >>> > >>>>wierd that i've never hit this before, but I'm running into an issue > >>>> > >>>> > >>with > >> > >> > >>>>getting the width of a clip's children after the parent clip has been > >>>> > >>>> > >>>scaled > >>> > >>> > >>>>down. > >>>> > >>>>So, I say parent clip name "holder_mc". I create 4 movieclips inside > >>>>holder_mc and load movie into them. Each of the loaded clips are 600 > >>>> > >>>> > >>>x600. > >>> > >>> > >>>>If i scale holder_mc down 50%, each of the loaded clips still reports > >>>> > >>>> > >>>their > >>> > >>> > >>>>size as 600x600. > >>>> > >>>>Somebody's HAD to have dealt with this one already...any suggestions? > >>>>_______________________________________________ > >>>>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 > >>> > >>> > >>> > >>_______________________________________________ > >>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 > >> > >> > >> > > > > > > > >-- > >------------------------- > >Lanny McNie > >_______________________________________________ > >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 >
-- ------------------------- Lanny McNie _______________________________________________ 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