digging the docs, I found this: "Flex supports scale-9 formatting of embedded images. The scale-9 formatting feature lets you define nine sections of an image that scale independently" at Flex 2 Developer's Guide > Flex Programming Topics > Embedding Assets
Embedding asset types
And this at the same page: "An embedded SWF file may already contain scale-9 information specified by using Flash Professional. In that case, the SWF file ignores any scale-9 parameters that you specify in the embed statement." I try both inside an actionscript project but didn“t work. Any working example using scaleGridTop, scaleGridBottom, scaleGridLeft, and scaleGridRight? On 7/21/06, Charles Parcell <[EMAIL PROTECTED]> wrote:
Here are my thoughts. Based on the image you passed on in one of your previous postings, it looks like you are building a drop down list component. I would assume that you wanted slice9 so you could scale the component in the X direction for longer strings. Is this a correct assumption? You might want to break your image into three (3) columns. Col 1 would be an image from the left edge of the image to just right of the first black line. The second would be a single pixel column between the left and right black lines. The third column would be from just to the left of the right black line to the right edge of the image. With these three graphics you can build a X scaled component of any width. Simply replicate the single pixel column to create a text area the size you need. Use the BitmapData class to build the image and simply dump the resulting image in to a MC. This is but one example of the power held by imaging code new to Flash 8 ( copyPixels() for example ) Charles P. _______________________________________________ [email protected] 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
_______________________________________________ [email protected] 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

