scale9Grid workaround for nested movieclip

using setInterval:
http://www.devpro.it/code/122.html

possible solutions using bitmapData class:
http://luar.com.hk/blog/?p=594

Final solutions/Flex 2 (presumably bitmapData solution):
http://www.adobe.com/devnet/flex/quickstart/embedding_assets/#EmbeddingImagesScale9
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-July/169871.html

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.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s


%d bloggers like this: