RE: [flexcoders] Question about shared objects

2005-08-22 Thread Matt Horn





nope, it can be 
public.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  [EMAIL PROTECTED]Sent: Monday, August 22, 2005 2:02 
  PMTo: flexcoders@yahoogroups.comSubject: Re: 
  [flexcoders] Question about shared objects
  Thanks one question though does the storeName function have to be 
  private? I am asking because lets say I put the storeName function on a 
  seperate .as file 
  





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



  









Re: [flexcoders] Question about shared objects

2005-08-22 Thread nostra72



Thanks one question though does the storeName function have to be private? I am asking because lets say I put the storeName function on a seperate .as file





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



   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.



  









RE: [flexcoders] Question about shared objects

2005-08-22 Thread Matt Horn





Ok, this example stores 
the value of the textinput box in a sharedobject and gets it when the app first 
starts:
 
http://www.macromedia.com/2003/mxml" 
initialize="initApp()">public var 
mySO:SharedObject;public var welcomeMessage:String;
 
public function initApp() { mySO = 
SharedObject.getLocal("mydata"); welcomeMessage = "Hello " + 
getName();}
 
private function 
getName() { return mySO.data.name;}
 
private function 
storeName() { mySO.data.name = 
ti1.text; mySO.flush();}


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  [EMAIL PROTECTED]Sent: Monday, August 22, 2005 11:25 
  AMTo: flexcoders@yahoogroups.comSubject: Re: 
  [flexcoders] Question about shared objects
  Store a text and have it hold it for the next time I run the 
  application 





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



   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.



  









Re: [flexcoders] Question about shared objects

2005-08-22 Thread nostra72



What I meant was instead of using a combo box I was wondering how someone stores the text on a textinput box using shared objects





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



   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.



  









RE: [flexcoders] Question about shared objects

2005-08-22 Thread Matt Horn





Ok, but you can't use a 
dataprovider array to provide data to a textinput field. start by changing that 
back to a combobox if you want to use the functionality in that sample 
app. 

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  [EMAIL PROTECTED]Sent: Monday, August 22, 2005 11:25 
  AMTo: flexcoders@yahoogroups.comSubject: Re: 
  [flexcoders] Question about shared objects
  Store a text and have it hold it for the next time I run the 
  application 





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



  









Re: [flexcoders] Question about shared objects

2005-08-22 Thread nostra72



Store a text and have it hold it for the next time I run the application





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



   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.



  









RE: [flexcoders] Question about shared objects

2005-08-22 Thread Matt Horn





A TextInput field cannot 
take a dataprovider array as input values. Perhaps you can explain why you 
are trying to do what you are trying to do with a TextInput instead of a 
ComboBox?
 
matt h.

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  [EMAIL PROTECTED]Sent: Monday, August 22, 2005 11:03 
  AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
  Question about shared objects
  
  Ok I took the following code
  http://www.macromedia.com/2003/mxml" 
  xmlns="*">enter ="addItemToCombo( event );"initialize 
  ="addSharedObjectitems( theCombo );" 
  >ScotlandEnglandN. 
  IrelandWales
   
   
   
  Then I changed it to this making the mx:Combo in to a TextInput 
  item.
  http://www.macromedia.com/2003/mxml" 
  xmlns="*">enter ="addItemToCombo( event );"initialize 
  ="addSharedObjectitems( theCombo );" 
  >ScotlandEnglandN. 
  IrelandWales
   
   
  I got an error message what else do I have to do to change the combobox 
  to a textinput box that I can use with a shared object





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