Kirl
01-22-2009, 11:53 AM
I made a dynamic text balloon like you see in comics by having an autosizing textfield and a circle mc behind it which scales to the textfield width and height. The text field and circle mc are both seperate objects, so I move and scale them individually.
A better solution would be to make the textfield a child of the balloon mc. The problem with that is that when I scale the balloon mc to encompass the textfield I also scale the textfield (because it is now a child).
I tried making the balloon mc a child of the textfield instead, but somehow the balloon didn't show and I couldn't manage to make it work. Meaby a textfield has some restricitions I'm not aware of?
What would be the best hierarchy structure for something like this?
And is it possible for a textfield to have a mc as a child?
A better solution would be to make the textfield a child of the balloon mc. The problem with that is that when I scale the balloon mc to encompass the textfield I also scale the textfield (because it is now a child).
I tried making the balloon mc a child of the textfield instead, but somehow the balloon didn't show and I couldn't manage to make it work. Meaby a textfield has some restricitions I'm not aware of?
What would be the best hierarchy structure for something like this?
And is it possible for a textfield to have a mc as a child?