Following is a sample of my code: <mx:ViewStack id="myViewStack" width="100%" height="100%" y="15"> <mx:Canvas id="displayOrders" label="My Orders"> <comp:DisplayOrders id="myOrders" /> </mx:Canvas>
<mx:Canvas id="displayItemSearch" label="Item Search" > <comp:SearchForm id="searchForm" /> <mx:Canvas id="custSearchForm label="Customer Search > <comp:CustSearchForm id="custSearchForm" /> </mx:Canvas> </mx:ViewStack> The problem is that I want the CUSTOMER SEARCH (last canvas) to be invisible to certain people. I have tried visible = "false" and includeinlayout = "false" but neither works --- In flexcoders@yahoogroups.com, "Dimitrios Gianninas" <[EMAIL PROTECTED]> wrote: > > Well a Viewstack by default only shows only one view at a time, so... perhaps > you can post a sample of your code? > > But simply, use the "visible" property: > > myBox.visible = false; > > Dimitrios Gianninas > RIA Developer > Optimal Payments Inc. > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of boy_trike > Sent: Monday, December 04, 2006 1:29 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] How to make ViewStack Item Invisible > > > > I have a viewstack with multiple canvas's below. Depending on a users > credentials, I want > some of the options to NOT be visible. I can set enabled to false and they > are greyed out but > I am not smart enough to figure out how to make them disappear (Out of sight, > out of mind) > > thanks > Bruce > > > > > > -- > WARNING > ------- > This electronic message and its attachments may contain confidential, > proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. > > AVIS IMPORTANT > -------------- > Ce message électronique et ses pièces jointes peuvent contenir des > renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. >