Re: [flexcoders] How to apply resize effect to children
I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh
Re: [flexcoders] How to apply resize effect to children
thnx peeyush , i'll try that. On Feb 19, 2008 3:00 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] How to apply resize effect to children
Hi Peeyush, Actually I was not restricting expansions and contracting , so it was looking too wierd. I'll go for simple resize whith scroll policies off and and % size of child component. That looks good if the duration is not too large. On Feb 19, 2008 5:52 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I havent tride anything else because it worked well for my case. What exactly goes wrong in your app? do components go totally out of their normal size ratio?(can you post a screen shot ) There is a post on application level resizing here http://blogs.adobe.com/aharui/ On Feb 19, 2008 4:57 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: HI Peeyush I tried that, it works , but doesn't look good. Most irritating is that everything, including blue border which appears on selection is also enlarged. Is there some other way to achieve cool n smooth sliding ? On Feb 19, 2008 3:00 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] How to apply resize effect to children
I havent tride anything else because it worked well for my case. What exactly goes wrong in your app? do components go totally out of their normal size ratio?(can you post a screen shot ) There is a post on application level resizing here http://blogs.adobe.com/aharui/ On Feb 19, 2008 4:57 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: HI Peeyush I tried that, it works , but doesn't look good. Most irritating is that everything, including blue border which appears on selection is also enlarged. Is there some other way to achieve cool n smooth sliding ? On Feb 19, 2008 3:00 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] How to apply resize effect to children
HI Peeyush I tried that, it works , but doesn't look good. Most irritating is that everything, including blue border which appears on selection is also enlarged. Is there some other way to achieve cool n smooth sliding ? On Feb 19, 2008 3:00 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh -- Regards, Yogesh