Jagdish,

See the code snippet : one thing....   you will have to consider
"yourMainView - canvas" as a principal UIComponent and add / remove
all your consecutive views with respect to it. Test it with diff.
resolutions it will definitely show persistent view.


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
        layout="absolute" pageTitle="Mayur's central view"
        width="100%" height="100%"
        backgroundGradientColors="[0xeeeeee,0xbbbbbb]">
        <mx:Canvas id="yourMainView"
                horizontalCenter="0" verticalCenter="0"
                width="1024" height="768"
                borderStyle="solid"
                borderThickness="2" borderColor="#FF00ff"
                backgroundColor="0x333333">
        </mx:Canvas>
</mx:Application>


 ~ Mayur
Enjoy Flexing :)
http://mprami.wordpress.com



On Dec 8, 5:54 pm, "Abhinav Mehta" <[email protected]> wrote:
> Hi Girish
>
> I also found the same problem in my project, what I did there was-
>  While intializing the application i.e. preintilaized(), i use to call
> one-algo inside that- this algorithm in turn calculates the current screen
> resolution....by:
>             mx.core.Application.application.screen.X &
>              mx.core.Application.application.screen.Y
>             further(you can use)-
>                  mx.core.Application.application.screen.height
>                  mx.core.Application.application.screen.width
>
> Now after getting the client-app screen resolution, I use to set one
> 'flag'(kind of variable), which states that which screen-resolution the
> client is using, now on the basis of that (flag), further components layout
> is rendered at the run-time....further using this policy I could
> successfully add/modify the further requirements(changes- if any), just by
> adding one more flag-state.
>
> Regards
> Abhinav Mehta
> MSRIT- Bangalore
>
> ----- Original Message -----
> From: "Jagdish" <[email protected]>
> To: "Flex India Community" <[email protected]>
> Sent: Tuesday, December 08, 2009 8:22 AM
> Subject: [flex_india:27152] Re: Application fitting to Resolution 1024/768
>
> Hey Girish,
>
> Thanks for the reply .
>
> Am working on a web application .can you suggest me some other
> source.
>
> On Dec 6, 9:30 pm, girish <[email protected]> wrote:
> > HI jagadish,
>
> > use
>
> > width="{(Screen.mainScreen.bounds.width)}"
> > height="{(Screen.mainScreen.bounds.height)}"
>
> > instead of 100%
> > --
> > girish kumar.g
> > ph no :9966021209
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/flex_india?hl=en.

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.


Reply via email to