Re: [flexcoders] Accordion: save form on exit

2005-08-27 Thread Manish Jethani
On 8/26/05, Simard, Ghislain <[EMAIL PROTECTED]> wrote:
> Is there a way to get the opened component saving the values when we click
> anywhere in the apps outside of that component?

I guess you can listen for the mouseDownSomewhere event and check for
the event's target property.

Manish


 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 




RE: [flexcoders] Accordion: save form on exit

2005-08-26 Thread Simard, Ghislain
Is there a way to get the opened component saving the values when we click
anywhere in the apps outside of that component?

Ghislain Simard



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
Behalf Of Manish Jethani
Sent: Friday, August 26, 2005 3:04 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Accordion: save form on exit


On 8/26/05, Simard, Ghislain <[EMAIL PROTECTED]> wrote:

> In the  following example.  If I am in the Comp1 and I click on an item on
the left  tree...meaning that I am focussing out of the Comp1...how to get
the Comp1  saved? 

>  
>  
> 
>  
>  
>  
> 
>  
>  
>   
>  

Comp1 will dispatch a focusOut event only if it's focusable and
currently has focus.  If you have a TextInput inside a Panel, with the
focus in the TextInput, and you move the focus out, it is the
TextInput that dispatches the event, not the Panel.

Manish



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 



 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 




Re: [flexcoders] Accordion: save form on exit

2005-08-26 Thread Manish Jethani
On 8/26/05, Simard, Ghislain <[EMAIL PROTECTED]> wrote:

> In the  following example.  If I am in the Comp1 and I click on an item on 
> the left  tree...meaning that I am focussing out of the Comp1...how to get 
> the Comp1  saved? 

>  
>  
> 
>  
>  
>  
> 
>  
>  
>   
>  

Comp1 will dispatch a focusOut event only if it's focusable and
currently has focus.  If you have a TextInput inside a Panel, with the
focus in the TextInput, and you move the focus out, it is the
TextInput that dispatches the event, not the Panel.

Manish


 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 




RE: [flexcoders] Accordion: save form on exit

2005-08-25 Thread Simard, Ghislain





So far 
the solutions proposed are good except for one thing!!
How to 
get saved a sub-component if I click anywhere on my apps (could be tree menu, 
buttons, etc).  The word "focus out" seems to be the best word to explain 
that but it is not doing what I need.
 
In the 
following example.  If I am in the Comp1 and I click on an item on the left 
tree...meaning that I am focussing out of the Comp1...how to get the Comp1 
saved?
 
 
Thanks
 

    <mx:Tree .../>
        
hide="saveForm(1)">    
    
     
hide="saveForm(2)">    
    
    


 
Ghislain Simard 

  -Original Message-From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED]On Behalf Of Philippe 
  MaegermanSent: Thursday, August 25, 2005 3:40 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Accordion: save 
  form on exit
  You could also use your 
  subComponents 'hide' events :
   
  hide="saveForm(1)">    
  hide="saveForm(2)">   
   
   
  Philippe 
  Maegerman
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Abdul 
  QabizSent: jeudi 25 août 2005 6:37To: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Accordion: save 
  form on exit
  You mean, when another view(form) inside an Accordion is 
  selected youwant to save the values in previously selected 
  view(form)?You can subscribe to Accordion's change event and do the 
  appropriate.Event object contains a propert(prevValue) which is zero-based 
  index ofpreviously selected view inside the Accordion.See the 
  code below:-  
  function saveForm(whichForm:Number)  
  {    
  switch(whichForm)  
    {  
      case 
  0:    
      
  comp1.saveForm();  
      
  break;    
    case 1:  
      
    
  comp2.saveForm();  
      
  break;    
  }  
  }      Comp1.mxmlfunction 
  saveForm(){saveRO.Save(myValues);//save values in the Database using 
  RemoteObject}Hope it 
  helps..-abdul-Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of 
  Ghislain SimardSent: Thursday, August 25, 2005 4:21 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Accordion: save form on 
  exithow can we get the form values saved on exit of a stack of an 
  Accordion?  I have tried focusOut but no success.I have a 
  function inside each component (Comp1 and Comp2) which is saving the 
  values in a database.   
     
  Comp1.mxmlfunction 
  saveForm(){saveRO.Save(myValues);//save values in the Database using 
  RemoteObject}--Flexcoders Mailing 
  ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
  --**STATEMENT 
  OF CONFIDENTIALITY** 
  This e-mail and any attached files are confidential 
  and intended solely for the use of the individual to whom it is addressed. If 
  you have received this email in error please send it back to the person that 
  sent it to you. Any views or opinions presented are solely those of author and 
  do not necessarily represent those the Emakina Company. Unauthorized 
  publication, use, dissemination, forwarding, printing or copying of this email 
  and its associated attachments is strictly prohibited.
  We also inform you that we have checked that this 
  message does not contain any virus but we decline any responsability in case 
  of any damage caused by an a non detected 
  virus.--





--
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
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  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.