The purpose of the ViewLocator/ViewHelper was to allow Commands to update one or many views based on successful execution of the command. But with Data Binding being as powerful as it is (almost as powerful as The Force itelf) it was determined that this was the best solution as it also offered better de-coupling.
 
In the example you mentioned below, I dont see were your need a ViewLocator/ViewHelper. You are simply doing component manipulation, so the only thing you need is a smart component to handle all this. Unless the reason you are asking for this is because you plan to put the pin/un-pin code in a command. I would just put it straight into my smart component.
 
<mx:Canvas>
 
   <mx:Script>
      public function pin( comp:UIComponent ):void {
         ...
      }
 
       public function unpin( comp:UIComponent ):void {
         ...
       }
   </mx:Script>
 
   <mx:TileList>
   </mx:TileList>
</mx:Canvas>
 
Hope that helps in some way, unless I am not fuilly understanding what you mean.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Holmes
Sent: Friday, November 03, 2006 12:01 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Cairngorm ViewHelper\ViewLocater Example?

Yes and no. We have hundreds of screens that we're putting in pop ups for the most part that the user can get to by using an application control bar navigation system. I want to give the user the ability to pin screens to thier "desktop" when they choose to so they can customize thier desktop with the applications they use most frequently. I have an array of the of screen names that I bind to the TileList. When a user pins a screen to thier desktop I wanted to just push it on the array and render the panel in the array. Or vice versa when a user "un-pins" a screen. They're not very large panels, mainly just small charts or other snippets of information. The actual panel being rendered would be a small or mini view of the application they were using, just enough to let them always know what's going on with that screen and allowing buttons or links back into the screen or application. Does that make more sense?
 
Right now I'd settle on  just being able to dynamically render panels.
 
Thanks alot Dimitrios, I really appreciate you trying to help me out.
Brian. 


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios Gianninas
Sent: Friday, November 03, 2006 8:17 AM
To: [EMAIL PROTECTED]ups.com
Subject: RE: [flexcoders] Cairngorm ViewHelper\ViewLocater Example?

So the user sees like 4 panels in a tilelist and you want to make 3 disappear and only the selected one grow to full size? is that it?
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Holmes
Sent: Thursday, November 02, 2006 12:16 PM
To: [EMAIL PROTECTED]ups.com
Subject: RE: [flexcoders] Cairngorm ViewHelper\ViewLocater Example?

Hi Dimitrios,
 Thanks for the reply. I have a list of configurable panels that I'm displaying in a TileList. The user needs to be able to choose which ones he/she would like to see. Based off this gesture I need a way to look up the appropriate panel and render it on thier screen. That's really what I'm trying to do.
 
Thanks,
Brian..
 


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios Gianninas
Sent: Thursday, November 02, 2006 7:49 AM
To: [EMAIL PROTECTED]ups.com
Subject: RE: [flexcoders] Cairngorm ViewHelper\ViewLocater Example?

We dont really advocate the use of the ViewHelper/ViewLocator any more, only in extreme cases. If you want to see an example, I believe if you download the Cairngorm 1.5 distribution it will contain it. But the real question is, why are you thinking of using it?
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Holmes
Sent: Wednesday, November 01, 2006 12:23 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Cairngorm ViewHelper\ViewLocater Example?

Can someone point me to an implementation of a cairngorm view helper \ view locator example?
 
Thanks,
brian..


***
The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information.
***

AVIS IMPORTANT

WARNING

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.

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.


***
The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information.
***


***
The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information.
***

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to