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

<http://www.resource.com/> www.resource.com <http://www.resource.com> 

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
Firdosh Tangri
Sent: Thursday, September 27, 2007 6:11 PM
To: [email protected]
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 <http://www.resource.com> 

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
Firdosh Tangri
Sent: Thursday, September 27, 2007 5:26 PM
To: [email protected]
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





 

Reply via email to