Missed that email, thanks for the repost.

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Steven Webster
Sent: Friday, April 15, 2005 7:27 AM
To: [email protected]
Subject: RE: [flexcoders] Re: Popup only works once



> Cairngorm .99 should have the ability to unregister view
> helpers from the ViewLocator so when this is released you 
> will need to unregister the View in the destruction sequence 
> of the popup. In the mean time there are these options (may 
> be more out there):

Alistair released a patch for Cairngorm some months ago to address this; the
patch will be part of the forthcoming 0.99 release:

"The URL on Yahoogroups is:
 
http://groups.yahoo.com/group/flexcoders/message/6148
 
Here's the gist of the email:
 
  public function initialized( view : Object, id : String ) : Void
   {
      this.view = view;
      this.id = id;
      ViewLocator.getInstance().register( id, this );
      
      view.addEventListener( "unload", Delegate.create( this, unregisterView
) );
   } 
 
   private function unregisterView() : Void
   {
      ViewLocator.getInstance().unregister( id );
   }
   private var id : String;
   private var view : Object;
 

Add that to the ViewHelper base-class, and it gives you a method that allows
you to unregister the view; the motivation for this was people that were
using ViewHelper inside Popup windows; when the popup window was destroyed
with deletePopUp() it was deleting the view, but keeping the ViewHelper
reference - so we now ask people to explicitly unregister views in popups
when they are destroyed."

Hope that helps in the interim.

Best,

Steven

--
Steven Webster
Technical Director
iteration::two
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.11 - Release Date: 14/04/2005
 



 
Yahoo! Groups Links



 







 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to