Have you looked into using a ViewStack and
simply changing the selectedIndex?
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf
Of Rajesh Jayabalan
Sent: Monday, May 02, 2005 2:12 PM
To: [email protected]
Subject: [flexcoders] Menu
controlled panels
Hi,
I am trying to create an application with a
menubar and a set of
menuitems. For each menuItem I should show a panel
(filled with its
specific information) ex
Menu Item : Find Orders -- Panel-1 : FInd
orders panels with all the
searchable fields and stuff
Menu Item : Create Order -- Panel-2 : A
panel in which the user can
enter information for creating a new order.
When panel-1 is shown panel-2 cannot be shown and
vice versa.. also
both the panels should occupy the full screen
(except the menubar
ofcouse).
I have got to a point where from the menubar on
change method I call a
function .. I am not sure how to send the panel as
a parameter and if
itis sent as an object how to convert it back to
panel object so I can
do this in the function
p2.visible= true;
p2.height="100%";
p2.width="100%";
p1.width="0";
p1.height="0";
p1.visible=false;
Regards
Rajesh J
Yahoo! Groups Links
|