I was using the value in Application.application.stage.stageHeight
to control the viewStack. The problem that I am having is
determining an event that is consistantly dispatched when the
browser window is resized. I tried all that were available (resize,
render, etc..), but had difficulty because the new value of
stageHeight doesn't seem to update until after the screen has
finished changing size. It's not a big deal in this case because
99% of the time, the screen resolution will not be changed in the
middle of running an application. I was just interested in learning
how to do something like this should the user resize the browser
window.
I know that there is probably a way, (you guys come up with some of
the most incredible solutions) to listen for a change to the
stageHeight property and based on the value, bind a change to the
viewStack. I'm just not sure how to go about it though.
Thanks again,
Tim
--- In [email protected], "Manish Jethani"
<[EMAIL PROTECTED]> wrote:
>
> On 5/1/06, Tim Hoff <[EMAIL PROTECTED]> wrote:
> > I have a panel that contains a viewStack with two children. One
of
> > the children is a tabNavigator and the other is a panel. The
goal is
> > to have the tabNavigator show if the screen resolution is
800X600 and
> > the panel to show for resolutions above 800X600. I've tried
several
> > different ways to do this, but none have been successful. I was
> > wondering if anyone else had tried to do this dynamically.
>
> More than the resolution, you care about the amount of space
available
> to your application, right?
>
> You could get the exact width and height of the stage using the
following code:
>
> var w:Number = systemManager.stage.stageWidth;
> var h:Number = systemManager.stage.stageHeight;
>
> Based on the values, you can set the selected index of your
ViewStack.
>
> Manish
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

