Re: [flexcoders] scale9grid question
scale9grid only works in clips that only contain vector shapes...so you can't have sub-movieclips or sprites. i don't really know your requirements but one solution would be to create a container clip, insert both clips as children of that one and manage both that way. On Fri, Aug 12, 2011 at 12:57 AM, technusiast technusi...@yahoo.com wrote: I am working with Flex 3, and import a movieclip symbol from a SWF. The symbol is rectangular and has scale9 grid enabled because it has rounded corners. Inside the area of the grid where objects resize both horizontally and vertically, I placed another symbol. But I do not want this 2nd symbol to resize. I tried enabling scale9 on the 2nd symbol, and just reduce its grid to a zero area (in the center) with the hope that the 2nd symbol does not resize. But the 2nd symbol still resizes when inside the first one. Any ideas how this can be done? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] scale9grid question
My specific requirement is skinning the scrollbar thumb. It is drawn in Flash as a vector shape (the thumb itself) containing another shape (a rectangle) in the middle of the first one. When the scrollbar resizes (stretches), I don't want the middle shape to stretch as well, but retain its shape. Since the shapes are used for skinning and embedded in Flex, I don't have code to manage them. So I'm still at a loss on how to prevent the resizing of the inner shape. From: kris range krisra...@gmail.com To: flexcoders@yahoogroups.com Sent: Friday, August 12, 2011 8:19 AM Subject: Re: [flexcoders] scale9grid question scale9grid only works in clips that only contain vector shapes...so you can't have sub-movieclips or sprites. i don't really know your requirements but one solution would be to create a container clip, insert both clips as children of that one and manage both that way. On Fri, Aug 12, 2011 at 12:57 AM, technusiast technusi...@yahoo.com wrote: I am working with Flex 3, and import a movieclip symbol from a SWF. The symbol is rectangular and has scale9 grid enabled because it has rounded corners. Inside the area of the grid where objects resize both horizontally and vertically, I placed another symbol. But I do not want this 2nd symbol to resize. I tried enabling scale9 on the 2nd symbol, and just reduce its grid to a zero area (in the center) with the hope that the 2nd symbol does not resize. But the 2nd symbol still resizes when inside the first one. Any ideas how this can be done? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] scale9grid question
I am working with Flex 3, and import a movieclip symbol from a SWF. The symbol is rectangular and has scale9 grid enabled because it has rounded corners. Inside the area of the grid where objects resize both horizontally and vertically, I placed another symbol. But I do not want this 2nd symbol to resize. I tried enabling scale9 on the 2nd symbol, and just reduce its grid to a zero area (in the center) with the hope that the 2nd symbol does not resize. But the 2nd symbol still resizes when inside the first one. Any ideas how this can be done?
[flexcoders] scale9grid and containers
Hi, Embeded background with scaleGridTop,left,... doesnt resize. Is there a simple way to use an image as scale9grid background of a container (hbox) ? thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056
[flexcoders] scale9Grid: What am I missing?
I have my image set up just like in the docs http://livedocs.adobe.com/flex/3/html/help.html?content=embed_4.html, but my image isn't actually scaling. What am I missing? This is my code: [Embed(source='images/window.png', scaleGridTop='40', scaleGridBottom='185', scaleGridLeft='300', scaleGridRight='585')] [Bindable] private var windowImage:Class; ... mx:Image id=backgroundImage source={windowImage} width=1000 / The image is only 603 px wide, so it should stretch, but it's just sitting there like a lump. Thanks; Amy
Re: [flexcoders] scale9Grid: What am I missing?
Hi Amy, I remember something weird about this, try loosing the apostrophe's around the numbers. [Embed(source='images/window.png', scaleGridTop=40, scaleGridBottom=185, scaleGridLeft=300, scaleGridRight=585)] Mike -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] scale9Grid: What am I missing?
On Sep 23, 2008, at 10:55 AM, Amy wrote: mx:Image id=backgroundImage source={windowImage} width=1000 / You're missing the height parameter. I think this is necessary - either as a percent or static value - to force the image component resize. You can also try adding scaleContent=true to that. cheers, jon
Re: [flexcoders] scale9Grid: What am I missing?
On Sep 23, 2008, at 11:02 AM, Michael Schmalle wrote: I remember something weird about this, try loosing the apostrophe's around the numbers. Good catch. I haven't run into that in a long time probably because I've been setting this stuff through AS now (or skins). - j
[flexcoders] scale9Grid on flex image control. does it work?
Trying this simple bit of code: var image:Image = new Image(); addChild(image); image.source = images/image.png; image.maintainAspectRatio = false; image.scale9Grid = new Rectangle(2,2,30,30); the image size is 200 x 200 pixles i also tried adding different event handlers like complete thinking the content of the image hadn't loaded yet. but it's the same error every time. ArgumentError: Error #2004: One of the parameters is invalid. at flash.display::DisplayObject/set scale9Grid(); my question is using the scale9Grid even possible on the image control?
RE: [flexcoders] scale9Grid on flex image control. does it work?
I know there are places where scale9 doesn't work. For some reason I can never remember them. However, in this case, I would try waiting for complete event then waiting for updateComplete (you'll get an updateComplete before complete too so ignore that one). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of walsaadie Sent: Wednesday, August 29, 2007 3:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] scale9Grid on flex image control. does it work? Trying this simple bit of code: var image:Image = new Image(); addChild(image); image.source = images/image.png; image.maintainAspectRatio = false; image.scale9Grid = new Rectangle(2,2,30,30); the image size is 200 x 200 pixles i also tried adding different event handlers like complete thinking the content of the image hadn't loaded yet. but it's the same error every time. ArgumentError: Error #2004: One of the parameters is invalid. at flash.display::DisplayObject/set scale9Grid(); my question is using the scale9Grid even possible on the image control?
[flexcoders] scale9Grid
Hello FlexCoders! I'm trying to make here pretty simple component which should involve scale9Grid functionality. I still don't feel professional in Flex UI components framework I might have here something stupid, though i guess some of you should be able to help me. What I am trying to make is resizable frame. Therefor I have created class that extends UIComponent and I am creating 8 Sprite objects one for each corner and one for each side and drawing graphics needed. Concept seems to be alright, except that I am receiving this error, no matter how I try: ArgumentError: Error #2004: One of the parameters is invalid. First of all I tried to set scale9Grid to whole component, then I even tried to create container Sprite in which i placed all other Sprites and apply scale9Grid to that object but still same. Structure of my class is like this: override protected function createChildren():void { //create all Sprites, add subsprites to container Sprite, add container Sprite to UIComponent display list } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { // call function that draws graphics and set scale9Grid property } I guess at that point I am setting scale9Grid it already should be perfectly fine, and component should be initialized. Or am i missing something here? Any help will be appreciated. Janis
Re: [flexcoders] scale9Grid
It sounds like you're creating a custom scale9 which isn't necessary. http://www.adobe.com/devnet/flex/articles/flex_skins_07.html (best article yet for skinning; that I've read, at least) That page shows you how to use CSS to utilize scale9. Hope it helps... On 1/31/07, Janis Radins [EMAIL PROTECTED] wrote: Hello FlexCoders! I'm trying to make here pretty simple component which should involve scale9Grid functionality. I still don't feel professional in Flex UI components framework I might have here something stupid, though i guess some of you should be able to help me. What I am trying to make is resizable frame. Therefor I have created class that extends UIComponent and I am creating 8 Sprite objects one for each corner and one for each side and drawing graphics needed. Concept seems to be alright, except that I am receiving this error, no matter how I try: ArgumentError: Error #2004: One of the parameters is invalid. First of all I tried to set scale9Grid to whole component, then I even tried to create container Sprite in which i placed all other Sprites and apply scale9Grid to that object but still same. Structure of my class is like this: override protected function createChildren():void { //create all Sprites, add subsprites to container Sprite, add container Sprite to UIComponent display list } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { // call function that draws graphics and set scale9Grid property } I guess at that point I am setting scale9Grid it already should be perfectly fine, and component should be initialized. Or am i missing something here? Any help will be appreciated. Janis -- John C. Bland II Chief Geek Katapult Media, Inc. - www.katapultmedia.com --- Biz Blog - http://blogs.katapultmedia.com/jb2 Personal Blog - http://blog.blandfamilyonline.com http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.org Home of AZCFUG - http://www.azcfug.org
Re: [flexcoders] scale9Grid
Thanks for reply, but i guess that's not exactly what I need. I'm making resize frame, so I just need to stick 4 corners in they positions and sides at full height. So this is not exactly skinning thing. And i don't think this is custom scale9, custom would be if I would resize all objects scriptically within resize handler which is other option. All I am trying to do is just apply Rectangle to scale9Grid property, not big deal. but it doesn't work somehow. Janis 2007/1/31, John C. Bland II [EMAIL PROTECTED]: It sounds like you're creating a custom scale9 which isn't necessary. http://www.adobe.com/devnet/flex/articles/flex_skins_07.html (best article yet for skinning; that I've read, at least) That page shows you how to use CSS to utilize scale9. Hope it helps... On 1/31/07, Janis Radins [EMAIL PROTECTED] wrote: Hello FlexCoders! I'm trying to make here pretty simple component which should involve scale9Grid functionality. I still don't feel professional in Flex UI components framework I might have here something stupid, though i guess some of you should be able to help me. What I am trying to make is resizable frame. Therefor I have created class that extends UIComponent and I am creating 8 Sprite objects one for each corner and one for each side and drawing graphics needed. Concept seems to be alright, except that I am receiving this error, no matter how I try: ArgumentError: Error #2004: One of the parameters is invalid. First of all I tried to set scale9Grid to whole component, then I even tried to create container Sprite in which i placed all other Sprites and apply scale9Grid to that object but still same. Structure of my class is like this: override protected function createChildren():void { //create all Sprites, add subsprites to container Sprite, add container Sprite to UIComponent display list } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { // call function that draws graphics and set scale9Grid property } I guess at that point I am setting scale9Grid it already should be perfectly fine, and component should be initialized. Or am i missing something here? Any help will be appreciated. Janis -- John C. Bland II Chief Geek Katapult Media, Inc. - www.katapultmedia.com --- Biz Blog - http://blogs.katapultmedia.com/jb2 Personal Blog - http://blog.blandfamilyonline.com http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.org Home of AZCFUG - http://www.azcfug.org