[flexcoders] Re: Scale 9
Scale 9 has nothing to do with the position of the image. You would use the normal properties for that ( top, bottom, left, right ). What scale 9 defines is the portion of the image to stretch when the dimensions of the image are changed to be bigger than the original image size. So, if you look at the sample in your link, the blue rectangle in the very center is what will be stretched. The rest of the image ( the fancy corners ) will remain unchanged. -TH --- In flexcoders@yahoogroups.com, hgnowhg hgno...@... wrote: I'm very confused on using scale 9 to position images in flex. I am using this link: http://www.adobe.com/devnet/flex/quickstart/embedding_assets/#EmbeddingImagesScale9 They have a width of 266 and height of 55...I get where the 266 and 55 come into play in the embed code: scaleGridTop=55, scaleGridBottom=137, scaleGridLeft=57, scaleGridRight=266 But where do the 57 and 137 come from?
RE: [flexcoders] Re: Scale 9 not being picked up
Is this the case for symbols too? i.e. if I'm just using a symbol will it automatically scale rather than resize? Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 13 December 2007 16:03 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up Image will resize the SWF. The SWF will have to resize the symbol that has scale9 on it, and not just scale the SWF. You might need to use a Flex SWF to wrap the symbol so the Image code does a resize and not a scale. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Thursday, December 13, 2007 12:42 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up Yes, I'm using an Image control. The image loads a SWF and the SWF has scale-9 built into it. Will this not work then? Is there any way to make this work? I've tried using the scale-9 embedding properties but that won't work either! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 12 December 2007 17:43 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up Are you sizing the assets directly or are they wrapped by Image or something like that? I don't think scale9 is recursive. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Wednesday, December 12, 2007 1:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up We have one main assets swf which contains multiple symbols. We reference several of these references and the designer has applied scale-9 to each of the symbols - but when it comes to viewing them in Flex, the scale-9 doesn't work (it just stretches normally). Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scalenine Sent: 11 December 2007 19:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Scale 9 not being picked up Are you using bitmaps as skins in your Flash file? If so, I don't believe scale-9 will punch through to those bitmaps in either scenario. You would have to pull those bitmaps out of the Flash file as separate assets. Regarding the arrow getting stretched, are you using Flex 2? The reason I ask is because in Flex 2 the arrow icon has to be part of the ComboBox, thus it will stretch even with scale-9 applied to it. You could try to change this by setting both vertical scale grids above o below the arrow. However, if you are using rounded corner those would end up getting stretched. Other wise you might have to create different skins for ComboBoxes with different heights. I believe the issue is being resolved in Flex 3 with a new property called arrowIcon making the icon separate from the skin so the skin scales separately from the arrowIcon. I'm not sure about the ScrollBars. I've found that sometime adjusting the scale grids on the ScrollBar arrow skins can fix the issue. HTH, Juan scalenine.com : degrafa.com : ocflex.org : branddoozie.com : atomiccurve.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark Ingram [EMAIL PROTECTED] wrote: I've also had trouble with this. I can't get scale-9 with flash assets to work at all (either by setting scale-9 via CS3 or by setting scale-9 in stylesheet). From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of polestar11 Sent: 11 December 2007 08:58 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Scale 9 not being picked up Hi There Does anyone have any idea why flash symbols for skinned controls with scale-9 would not be picked up? Specifically arrows for the ComboBoxes and Scrollbars. Scaling the resources in Flash also results in the arrow symbols being scaled incorrectly with no scale-9. Cheers Tracy
RE: [flexcoders] Re: Scale 9 not being picked up
How are you using the symbol? Does the symbol have layers? Are the internal layers the ones with scale-9? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Tuesday, December 18, 2007 1:50 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up Is this the case for symbols too? i.e. if I'm just using a symbol will it automatically scale rather than resize? Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 13 December 2007 16:03 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up Image will resize the SWF. The SWF will have to resize the symbol that has scale9 on it, and not just scale the SWF. You might need to use a Flex SWF to wrap the symbol so the Image code does a resize and not a scale. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Thursday, December 13, 2007 12:42 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up Yes, I'm using an Image control. The image loads a SWF and the SWF has scale-9 built into it. Will this not work then? Is there any way to make this work? I've tried using the scale-9 embedding properties but that won't work either! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 12 December 2007 17:43 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up Are you sizing the assets directly or are they wrapped by Image or something like that? I don't think scale9 is recursive. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Wednesday, December 12, 2007 1:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up We have one main assets swf which contains multiple symbols. We reference several of these references and the designer has applied scale-9 to each of the symbols - but when it comes to viewing them in Flex, the scale-9 doesn't work (it just stretches normally). Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scalenine Sent: 11 December 2007 19:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Scale 9 not being picked up Are you using bitmaps as skins in your Flash file? If so, I don't believe scale-9 will punch through to those bitmaps in either scenario. You would have to pull those bitmaps out of the Flash file as separate assets. Regarding the arrow getting stretched, are you using Flex 2? The reason I ask is because in Flex 2 the arrow icon has to be part of the ComboBox, thus it will stretch even with scale-9 applied to it. You could try to change this by setting both vertical scale grids above o below the arrow. However, if you are using rounded corner those would end up getting stretched. Other wise you might have to create different skins for ComboBoxes with different heights. I believe the issue is being resolved in Flex 3 with a new property called arrowIcon making the icon separate from the skin so the skin scales separately from the arrowIcon. I'm not sure about the ScrollBars. I've found that sometime adjusting the scale grids on the ScrollBar arrow skins can fix the issue. HTH, Juan scalenine.com : degrafa.com : ocflex.org : branddoozie.com : atomiccurve.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark Ingram [EMAIL PROTECTED] wrote: I've also had trouble with this. I can't get scale-9 with flash assets to work at all (either by setting scale-9 via CS3 or by setting scale-9 in stylesheet). From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of polestar11 Sent: 11 December 2007 08:58 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Scale 9 not being picked up Hi There Does anyone have any idea why flash symbols for skinned controls with scale-9 would not be picked up? Specifically arrows for the ComboBoxes and Scrollbars. Scaling the resources in Flash also results in the arrow symbols being scaled incorrectly with no scale-9. Cheers Tracy
RE: [flexcoders] Re: Scale 9 not being picked up
Yes, I'm using an Image control. The image loads a SWF and the SWF has scale-9 built into it. Will this not work then? Is there any way to make this work? I've tried using the scale-9 embedding properties but that won't work either! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 12 December 2007 17:43 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up Are you sizing the assets directly or are they wrapped by Image or something like that? I don't think scale9 is recursive. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Wednesday, December 12, 2007 1:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up We have one main assets swf which contains multiple symbols. We reference several of these references and the designer has applied scale-9 to each of the symbols - but when it comes to viewing them in Flex, the scale-9 doesn't work (it just stretches normally). Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scalenine Sent: 11 December 2007 19:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Scale 9 not being picked up Are you using bitmaps as skins in your Flash file? If so, I don't believe scale-9 will punch through to those bitmaps in either scenario. You would have to pull those bitmaps out of the Flash file as separate assets. Regarding the arrow getting stretched, are you using Flex 2? The reason I ask is because in Flex 2 the arrow icon has to be part of the ComboBox, thus it will stretch even with scale-9 applied to it. You could try to change this by setting both vertical scale grids above o below the arrow. However, if you are using rounded corner those would end up getting stretched. Other wise you might have to create different skins for ComboBoxes with different heights. I believe the issue is being resolved in Flex 3 with a new property called arrowIcon making the icon separate from the skin so the skin scales separately from the arrowIcon. I'm not sure about the ScrollBars. I've found that sometime adjusting the scale grids on the ScrollBar arrow skins can fix the issue. HTH, Juan scalenine.com : degrafa.com : ocflex.org : branddoozie.com : atomiccurve.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark Ingram [EMAIL PROTECTED] wrote: I've also had trouble with this. I can't get scale-9 with flash assets to work at all (either by setting scale-9 via CS3 or by setting scale-9 in stylesheet). From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of polestar11 Sent: 11 December 2007 08:58 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Scale 9 not being picked up Hi There Does anyone have any idea why flash symbols for skinned controls with scale-9 would not be picked up? Specifically arrows for the ComboBoxes and Scrollbars. Scaling the resources in Flash also results in the arrow symbols being scaled incorrectly with no scale-9. Cheers Tracy
[flexcoders] Re: Scale 9 not being picked up
Hi Juan Our ScrollBar arrow turned out to be a Bitmap, so you were right about scale-9 not being picked up for Bitmaps. Changing that to a vector fixed it. The scale-9 issue seems to only be a problem for ComboBoxes. Our ComboBox arrows are vectors and we are developing in FlexBuilder 3 Beta 2. Is it possible that the Flex 2 bug still exists for some cases in FlexBuilder 3? I use the same arrow now for our scroll-bar, which works fine in the ScrollBar case, but not the ComboBox. Cheers Tracy --- In flexcoders@yahoogroups.com, scalenine [EMAIL PROTECTED] wrote: Are you using bitmaps as skins in your Flash file? If so, I don't believe scale-9 will punch through to those bitmaps in either scenario. You would have to pull those bitmaps out of the Flash file as separate assets. Regarding the arrow getting stretched, are you using Flex 2? The reason I ask is because in Flex 2 the arrow icon has to be part of the ComboBox, thus it will stretch even with scale-9 applied to it. You could try to change this by setting both vertical scale grids above o below the arrow. However, if you are using rounded corner those would end up getting stretched. Other wise you might have to create different skins for ComboBoxes with different heights. I believe the issue is being resolved in Flex 3 with a new property called arrowIcon making the icon separate from the skin so the skin scales separately from the arrowIcon. I'm not sure about the ScrollBars. I've found that sometime adjusting the scale grids on the ScrollBar arrow skins can fix the issue. HTH, Juan
[flexcoders] Re: Scale 9 not being picked up
Eureka!! I found a fix to our ComboBox problem, after reading about this bug: https://bugs.adobe.com/jira/browse/SDK-12803 Our ComboBox symbol comprised of the arrow button symbol used in the editable ComboBox skin. For the non-editable ComboBox skin I took out this reference by creating a new symbol for the arrow button (just by breaking the symbol apart, rendering it in the same raw state as for the editable ComboBox arrow) and wallah, it works! --- In flexcoders@yahoogroups.com, polestar11 [EMAIL PROTECTED] wrote: Hi Juan Our ScrollBar arrow turned out to be a Bitmap, so you were right about scale-9 not being picked up for Bitmaps. Changing that to a vector fixed it. The scale-9 issue seems to only be a problem for ComboBoxes. Our ComboBox arrows are vectors and we are developing in FlexBuilder 3 Beta 2. Is it possible that the Flex 2 bug still exists for some cases in FlexBuilder 3? I use the same arrow now for our scroll-bar, which works fine in the ScrollBar case, but not the ComboBox. Cheers Tracy
RE: [flexcoders] Re: Scale 9 not being picked up
Image will resize the SWF. The SWF will have to resize the symbol that has scale9 on it, and not just scale the SWF. You might need to use a Flex SWF to wrap the symbol so the Image code does a resize and not a scale. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Thursday, December 13, 2007 12:42 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up Yes, I'm using an Image control. The image loads a SWF and the SWF has scale-9 built into it. Will this not work then? Is there any way to make this work? I've tried using the scale-9 embedding properties but that won't work either! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 12 December 2007 17:43 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up Are you sizing the assets directly or are they wrapped by Image or something like that? I don't think scale9 is recursive. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Wednesday, December 12, 2007 1:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up We have one main assets swf which contains multiple symbols. We reference several of these references and the designer has applied scale-9 to each of the symbols - but when it comes to viewing them in Flex, the scale-9 doesn't work (it just stretches normally). Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scalenine Sent: 11 December 2007 19:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Scale 9 not being picked up Are you using bitmaps as skins in your Flash file? If so, I don't believe scale-9 will punch through to those bitmaps in either scenario. You would have to pull those bitmaps out of the Flash file as separate assets. Regarding the arrow getting stretched, are you using Flex 2? The reason I ask is because in Flex 2 the arrow icon has to be part of the ComboBox, thus it will stretch even with scale-9 applied to it. You could try to change this by setting both vertical scale grids above o below the arrow. However, if you are using rounded corner those would end up getting stretched. Other wise you might have to create different skins for ComboBoxes with different heights. I believe the issue is being resolved in Flex 3 with a new property called arrowIcon making the icon separate from the skin so the skin scales separately from the arrowIcon. I'm not sure about the ScrollBars. I've found that sometime adjusting the scale grids on the ScrollBar arrow skins can fix the issue. HTH, Juan scalenine.com : degrafa.com : ocflex.org : branddoozie.com : atomiccurve.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark Ingram [EMAIL PROTECTED] wrote: I've also had trouble with this. I can't get scale-9 with flash assets to work at all (either by setting scale-9 via CS3 or by setting scale-9 in stylesheet). From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of polestar11 Sent: 11 December 2007 08:58 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Scale 9 not being picked up Hi There Does anyone have any idea why flash symbols for skinned controls with scale-9 would not be picked up? Specifically arrows for the ComboBoxes and Scrollbars. Scaling the resources in Flash also results in the arrow symbols being scaled incorrectly with no scale-9. Cheers Tracy
RE: [flexcoders] Re: Scale 9 not being picked up
We have one main assets swf which contains multiple symbols. We reference several of these references and the designer has applied scale-9 to each of the symbols - but when it comes to viewing them in Flex, the scale-9 doesn't work (it just stretches normally). Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scalenine Sent: 11 December 2007 19:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Scale 9 not being picked up Are you using bitmaps as skins in your Flash file? If so, I don't believe scale-9 will punch through to those bitmaps in either scenario. You would have to pull those bitmaps out of the Flash file as separate assets. Regarding the arrow getting stretched, are you using Flex 2? The reason I ask is because in Flex 2 the arrow icon has to be part of the ComboBox, thus it will stretch even with scale-9 applied to it. You could try to change this by setting both vertical scale grids above o below the arrow. However, if you are using rounded corner those would end up getting stretched. Other wise you might have to create different skins for ComboBoxes with different heights. I believe the issue is being resolved in Flex 3 with a new property called arrowIcon making the icon separate from the skin so the skin scales separately from the arrowIcon. I'm not sure about the ScrollBars. I've found that sometime adjusting the scale grids on the ScrollBar arrow skins can fix the issue. HTH, Juan scalenine.com : degrafa.com : ocflex.org : branddoozie.com : atomiccurve.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark Ingram [EMAIL PROTECTED] wrote: I've also had trouble with this. I can't get scale-9 with flash assets to work at all (either by setting scale-9 via CS3 or by setting scale-9 in stylesheet). From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of polestar11 Sent: 11 December 2007 08:58 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Scale 9 not being picked up Hi There Does anyone have any idea why flash symbols for skinned controls with scale-9 would not be picked up? Specifically arrows for the ComboBoxes and Scrollbars. Scaling the resources in Flash also results in the arrow symbols being scaled incorrectly with no scale-9. Cheers Tracy
RE: [flexcoders] Re: Scale 9 not being picked up
Are you sizing the assets directly or are they wrapped by Image or something like that? I don't think scale9 is recursive. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Wednesday, December 12, 2007 1:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Scale 9 not being picked up We have one main assets swf which contains multiple symbols. We reference several of these references and the designer has applied scale-9 to each of the symbols - but when it comes to viewing them in Flex, the scale-9 doesn't work (it just stretches normally). Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scalenine Sent: 11 December 2007 19:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Scale 9 not being picked up Are you using bitmaps as skins in your Flash file? If so, I don't believe scale-9 will punch through to those bitmaps in either scenario. You would have to pull those bitmaps out of the Flash file as separate assets. Regarding the arrow getting stretched, are you using Flex 2? The reason I ask is because in Flex 2 the arrow icon has to be part of the ComboBox, thus it will stretch even with scale-9 applied to it. You could try to change this by setting both vertical scale grids above o below the arrow. However, if you are using rounded corner those would end up getting stretched. Other wise you might have to create different skins for ComboBoxes with different heights. I believe the issue is being resolved in Flex 3 with a new property called arrowIcon making the icon separate from the skin so the skin scales separately from the arrowIcon. I'm not sure about the ScrollBars. I've found that sometime adjusting the scale grids on the ScrollBar arrow skins can fix the issue. HTH, Juan scalenine.com : degrafa.com : ocflex.org : branddoozie.com : atomiccurve.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark Ingram [EMAIL PROTECTED] wrote: I've also had trouble with this. I can't get scale-9 with flash assets to work at all (either by setting scale-9 via CS3 or by setting scale-9 in stylesheet). From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of polestar11 Sent: 11 December 2007 08:58 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Scale 9 not being picked up Hi There Does anyone have any idea why flash symbols for skinned controls with scale-9 would not be picked up? Specifically arrows for the ComboBoxes and Scrollbars. Scaling the resources in Flash also results in the arrow symbols being scaled incorrectly with no scale-9. Cheers Tracy