Re: [flexcoders] Re: text from a form into an e-mail?
On Nov 8, 2009, at 8:14 AM, Tracy Spratt wrote: At the instance or global level of an mxml file, you can only initiate variables to simple values. “richTextInstance” does not yet exist when you are trying to access the text property value, thus the error. Declare the variable as you are, but wait to initialize the value by using a ceeationComplete handler. Now, mx:Form is just a layout container, and won’t process the field data for you in any special way. You will need to get the value from each form item control individually, and build the string you want. (or, if the form changes update a model, use the model.) Right, so what I had built thus far is: private var mailMe:String = mailto:kear...@gmail.com?subject=answersbody= ; private function sendEmail():void { navigateToURL(new URLRequest(mailMe + unNaturalText_1.text + unNaturalText_2.text),'_self'); } It's working well now except that there's no separation between each text block from each TextInput instance in the email output. I'm trying to put each text block in its own paragraph. I've tried inserting \n and \r in various combinations with + and the .text instances. None of those thus far works to separate the text blocks into their own paragraphs. What am I missing? Is there good reason to use a model for this situation? Tracy, I appreciate your patience, persistence and teaching. Kearney Tracy Spratt, Lariat Services, development services available -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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
Re: [flexcoders] Re: text from a form into an e-mail?
Hi Dear, May be this Free Flash Flex Magazine issue may help you, Please download the Free Pdf issue of this magazine and hope you may get some hint from this. http://ffdmag.com/magazine/726-a-breath-of-fresh-air-for-desktop-apps Regards On Mon, Nov 9, 2009 at 9:39 PM, Kearney Buskirk kear...@lightthrumedia.comwrote: On Nov 8, 2009, at 8:14 AM, Tracy Spratt wrote: At the instance or global level of an mxml file, you can only initiate variables to simple values. “richTextInstance” does not yet exist when you are trying to access the text property value, thus the error. Declare the variable as you are, but wait to initialize the value by using a ceeationComplete handler. Now, mx:Form is just a layout container, and won’t process the field data for you in any special way. You will need to get the value from each form item control individually, and build the string you want. (or, if the form changes update a model, use the model.) Right, so what I had built thus far is: private var mailMe:String = mailto:kear...@gmail.com?subject=answersbody=kear...@gmail.com?subject=answersbody= ; private function sendEmail():void { navigateToURL(new URLRequest(mailMe + unNaturalText_1.text + unNaturalText_2.text),'_self'); } It's working well now except that there's no separation between each text block from each TextInput instance in the email output. I'm trying to put each text block in its own paragraph. I've tried inserting \n and \r in various combinations with + and the .text instances. None of those thus far works to separate the text blocks into their own paragraphs. What am I missing? Is there good reason to use a model for this situation? Tracy, I appreciate your patience, persistence and teaching. Kearney Tracy Spratt, Lariat Services, development services available -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Your email settings: Individual Email|Traditional Change settings via the Webhttp://groups.yahoo.com/group/flexcoders/join;_ylc=X3oDMTJnaDF0MGgwBF9TAzk3NDc2NTkwBGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNzdG5ncwRzdGltZQMxMjU3Njk2OTY4 (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digestflexcoders-dig...@yahoogroups.com?subject=email+delivery:+Digest | Switch to Fully Featuredflexcoders-fullfeatu...@yahoogroups.com?subject=change+delivery+format:+Fully+Featured Visit Your Group http://groups.yahoo.com/group/flexcoders;_ylc=X3oDMTJlOGkxNjU2BF9TAzk3NDc2NTkwBGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNocGYEc3RpbWUDMTI1NzY5Njk2OA-- | Yahoo! Groups Terms of Use http://docs.yahoo.com/info/terms/| Unsubscribe flexcoders-unsubscr...@yahoogroups.com?subject=unsubscribe -- With Regards Shabir Ahmad Gilkar Srinagar Kashmir JK Voice: +91 9419942501 email: shabirgil...@gmail.com Skype: shabirgilkar
[flexcoders] Re: text from a form into an e-mail?
How does it not work? Where is the problem? Can you build and send body text without using the form data? I have done this a lot, but do not have my code in front of me right now. Do it one step at a time. Tracy --- In flexcoders@yahoogroups.com, Kearney Buskirk kear...@... wrote: Hi I'm trying to move text filled into a form in an app being built with Flash Builder beta2 into the body of an e-mail. I'm trying to do this via the default program on the user's computer because it seems potentially simplest. If there's a better basic strategy or a big problem my aforementioned strategy, please clue me in. What I've tried that hasn't worked is calling this function on clicking the Submit button: private function sendEmail():void { var u:URLRequest = new URLRequest(mailto:recepi...@...?body=+ nameFormItem); navigateToURL(u, self); } I suspect there's at least a problem with the code after the email address Better for the FormItem text to be put into Model first? Need to use an HTTP Service? Thanks for your attention. Kearney Buskirk LightThruMedia
Re: [flexcoders] Re: text from a form into an e-mail?
Thanks for your response. I re-wrote the code so at least I can send body text without the form data. private function sendEmail():void { navigateToURL(new URLRequest('mailto:kear...@gmail.com?body=some%20body%20text%20goes%20in%20here'),'_self') } Now the problem is how to specify the contents of the FormItems in the 'mailto'. Kearney On Nov 5, 2009, at 6:28 PM, Tracy wrote: How does it not work? Where is the problem? Can you build and send body text without using the form data? I have done this a lot, but do not have my code in front of me right now. Do it one step at a time. Tracy --- In flexcoders@yahoogroups.com, Kearney Buskirk kear...@... wrote: Hi I'm trying to move text filled into a form in an app being built with Flash Builder beta2 into the body of an e-mail. I'm trying to do this via the default program on the user's computer because it seems potentially simplest. If there's a better basic strategy or a big problem my aforementioned strategy, please clue me in. What I've tried that hasn't worked is calling this function on clicking the Submit button: private function sendEmail():void { var u:URLRequest = new URLRequest(mailto:recepi...@...?body=+ nameFormItem); navigateToURL(u, self); } I suspect there's at least a problem with the code after the email address Better for the FormItem text to be put into Model first? Need to use an HTTP Service? Thanks for your attention. Kearney Buskirk LightThruMedia -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links
RE: [SPAM] Re: [flexcoders] Re: text from a form into an e-mail?
Ok, next, put that string into a variable and use the var in the url string. When that works, all you need to do is generate the string from the form, and put it in the var. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Kearney Buskirk Sent: Thursday, November 05, 2009 11:51 PM To: flexcoders@yahoogroups.com Subject: [SPAM] Re: [flexcoders] Re: text from a form into an e-mail? Thanks for your response. I re-wrote the code so at least I can send body text without the form data. private function sendEmail():void { navigateToURL(new URLRequest('mailto:kearney@ mailto:kear...@gmail.com?body=some%20body%20text%20goes%20in%20here' gmail.com?body=some%20body%20text%20goes%20in%20here'),'_self') } Now the problem is how to specify the contents of the FormItems in the 'mailto'. Kearney On Nov 5, 2009, at 6:28 PM, Tracy wrote: How does it not work? Where is the problem? Can you build and send body text without using the form data? I have done this a lot, but do not have my code in front of me right now. Do it one step at a time. Tracy --- In flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com, Kearney Buskirk kear...@... wrote: Hi I'm trying to move text filled into a form in an app being built with Flash Builder beta2 into the body of an e-mail. I'm trying to do this via the default program on the user's computer because it seems potentially simplest. If there's a better basic strategy or a big problem my aforementioned strategy, please clue me in. What I've tried that hasn't worked is calling this function on clicking the Submit button: private function sendEmail():void { var u:URLRequest = new URLRequest(mailto:recepient@ mailto:recepi...@...?body= ...?body=+ nameFormItem); navigateToURL(u, self); } I suspect there's at least a problem with the code after the email address Better for the FormItem text to be put into Model first? Need to use an HTTP Service? Thanks for your attention. Kearney Buskirk LightThruMedia -- Flexcoders Mailing List FAQ: http://groups. http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share. https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e6 2079f6847 acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail- http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links (Yahoo! ID required) flexcoders-fullfeat mailto:flexcoders-fullfeatu...@yahoogroups.com u...@yahoogroups.com