scale9Grid workaround for nested movieclip

using setInterval:

possible solutions using bitmapData class:

Final solutions/Flex 2 (presumably bitmapData solution):

time tested old goodies:
v2 UI component style  MC subclasses. The trick is to use boundingBox_mc to keep track of the desired dimension either set at runtime or compile time (Flash IDE) at the first frame it get instantiated, and then dynamically load(createChild()) and layout()/draw() all the other visual assets based on the preset layout algorithum accordingly. So it might take some energy just to get the layout right, considering the features such as alignment of a textfield to the bottom-right corner of the component. Using this approach, the MC that needs anti-distortion can be composed of 9-slice mcs, or maybe several slices bitmapData manipulated mcs.
This is the most time consuming while most generic solution. It’s worthwhile for building a site that implement this framework.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: