Scale-9 only works if parts of the image are fully within each of the 9 "slices" of the scale-9 grid. Which means that you'll have to separate your image into 9 different segments before applying the scale-9 grid, providing the grid 'lines and the 9 sections of the image match up precisely. You can do this the painful way by slicing up your image into 9 parts and importing each separately, or using BitmapData to do the same, which is more code involved.
As for scale-9 for vectors, you might be interested in an article I wrote about using scale-9 for Flex skins: http://www.communitymx.com/abstract.cfm?cid=6C7D2 Hope that helps, _______________________________________________________________________ Joseph Balderson | http://joeflash.ca Flex & Flash Platform Developer | Abobe Certified Developer & Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Tom Bray wrote: > I need to be able to load an image, allow the user to specify the > scale9grid values, and then scale the image. I've tried a bunch of > different things but either the scale9grid values aren't used or I get > an invalid parameter exception. Is it possible to do this? > > Thanks, > > Tom > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > > > >