Resize MovieClip with another MovieClip


i´m interesting to develop something special…

really i need this:

one MC (Called = MainMC ) as a master, but when i´m put another MC inside of MainMC, the first one could resize himself width some padding, and center according the content…

this is possible?.. any suggestion pls… thnks