Sajid, I have an AS2.0 class that is a lot simpler to use.
com.codext.managers.LayoutManager.initialize(panel1); com.codext.managers.LayoutManager.initialize(panel2); panel1.dock = "top"; // this fills the space panel2.dock = "top"; // this fills the space under panel1 and does not overlap // and if you want padding panel1.anchors = {left:50, top:50, right:50}; panel2.anchors = {left:50, top:50, right:50}; you can set anchors without using dock, but then your coordinates are absolute and are not measured off of their docked siblings. using these and other Code XT LayoutManager methods you can do about everything you want where layout is concerned. Resizing is automatic as long as you're setting the width and height rather than _width and _height. The only issue is that this is part of a component framework I'm hoping to release eventually so I don't want it available publically. Maybe we should talk more about it off list. I would eventually like to get input from users before the set is released. Tyler On 4/26/06, Sajid Saiyed <[EMAIL PROTECTED]> wrote: > > Hi Lee, > Thats a pretty nice component but how do I use it to manage layout? > I can slace movieclips with it, but didnt quiet get how to rearrange the > layout. > > Hope you can share something on this. > > --sajid > > On 4/26/06, Lee McColl-Sylvester <[EMAIL PROTECTED]> wrote: > > Seriously though, I've built something similar. An admin system for a > > pageable kiosk app. It lets you reposition, resize, recolor, format > > text etc, though the actual adding of items is set in a .NET app. > > > > The core functionality behind it is a resizer class I built, which just > > so happens to be a tutorial component on the macromedia exchange > > website. Do a search in exchange for DR-Resizer or Lee McColl and > > you'll find it. > > > > Regards, > > Lee > > > > > > > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Sajid > > Saiyed > > Sent: 26 April 2006 12:04 > > To: flashcoders@chattyfig.figleaf.com > > Subject: [Flashcoders] Flash Layout Manager > > > > I am looking for some hints at creating a layout manager in Flash > > which will allow me to drag and drop movieclips on stage and at the > > same time, reposition other movieclips. > > > > Something like what you see at www.gtalkr.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 > > > _______________________________________________ > 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