Hey Campbell, well the whole point was so that designers could do all this in Flash and developers dont have to worry about scaling assets to enhance the designer - developer workflow.
thanks firdosh On 9/28/07, Campbell Anderson <[EMAIL PROTECTED]> wrote: > > When you embed an image into the flex frame work it gets compiled to a > BitmapAsset Class with the bitmapdata of the embedded image. So for your > scale nine to work you will have to take the library based image and get the > bitmap data and copy it to the bitmapdata of the clip to be scale nined. > > > > Hope that helps > > > > Campbell > > > > *From:* Mike Krotscheck [mailto:[EMAIL PROTECTED] > *Sent:* Friday, 28 September 2007 10:30 a.m. > *To:* flexcomponents@yahoogroups.com > *Subject:* RE: [flexcomponents] Embed components from swf with scale9 into > flex > > > > I can theorize 2 workarounds. > > > > 1. Break the image into a fill and put the various pieces (corners and > whatnot) on different layers so they don't think they're part of the same > fill. > > 2. Trace the image down to pixels. > > > > The first will probably fail on the stretched pieces because it's using > the image as a fill, and expanding the filled area will only expose more of > the image rather than stretching it. > > > > The second is not recommended if you have a large and/or complex image. > > > > *Michael Krotscheck* > > Senior Developer > > > > > *RESOURCE INTERACTIVE* > > www.resource.com > > [EMAIL PROTECTED] > ------------------------------ > > *From:* flexcomponents@yahoogroups.com [mailto:flexcompone > [EMAIL PROTECTED] *On Behalf Of *Firdosh Tangri > *Sent:* Thursday, September 27, 2007 6:11 PM > *To:* flexcomponents@yahoogroups.com > *Subject:* Re: [flexcomponents] Embed components from swf with scale9 into > flex > > > > yup João your right, I was wondering if anyone had figured out a > workaround it > I can see many people have reported it as a bug, hopefully adobe will find > a > good solution to it. > > cheers > firdosh > > > > On 9/27/07, *João Saleiro* <[EMAIL PROTECTED]> wrote: > > I think this only applies to symbols made with vector shapes. For bitmaps, > this doesn't work as supposed. > 9-slice works for embed bitmaps using metadata on Flex 2, but it doesn't > work for bitmaps on Flash CS3. > I don't know if this is a bug, or if there's a valid reason for it, but > it's a feature i definitely miss... > > João Saleiro > > > > Mike Krotscheck wrote: > > If the embedded asset is set up with 9-slice scaling (in Flash), Flex will > automatically pick up on it without any fancy metatags. > > > > *Michael Krotscheck* > > Senior Developer > > > > > *RESOURCE INTERACTIVE* > > www.resource.com > > [EMAIL PROTECTED] > ------------------------------ > > *From:* flexcomponents@yahoogroups.com [mailto:flexcompone <flexcompone> > [EMAIL PROTECTED] *On Behalf Of *Firdosh Tangri > *Sent:* Thursday, September 27, 2007 5:26 PM > *To:* flexcomponents@yahoogroups.com > *Subject:* [flexcomponents] Embed components from swf with scale9 into > flex > > > > Hey guys, > so in Flex if I do a > > upSkin: Embed("MyPng", > > scaleGridTop=5,scaleGridBottom=20,scaleGridLeft=23,scaleGridRight=72); > > and specify how to scale the image. > > Now if I have the same image embeded in a swf file with some linkage id > myImage > > upSkin: Embed(source ="MyPngSWF.swf", symbol="myImage"); > > is it possible to tell flex somehow how to scale this asset ??.. > > > thanks > cheers > firdosh > > > > > > > >