|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
text from a form into an e-mail?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@...?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: 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@..., Kearney Buskirk <kearney@...> 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@...?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: 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@...?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@..., Kearney Buskirk <kearney@...> > 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@...?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: 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@... [mailto:flexcoders@...] On Behalf Of Kearney Buskirk Sent: Thursday, November 05, 2009 11:51 PM To: flexcoders@... 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:kearney@...?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 flexcoders@yahoogro <mailto:flexcoders@...> ups.com, Kearney Buskirk <kearney@...> 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:recepient@...?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-fullfeatured@...> ured@... |
|
|
Re: [SPAM] Re: Re: text from a form into an e-mail?Hi Tracy
I must be misunderstanding what you're saying. I tried this: private var mailMe:String = "mailto:kearney@...?body=bodyText"; private function sendEmail():void { navigateToURL(new URLRequest('mailMe'),'_self') } and on clicking the Submit button which calls sendEmail, the browser tells me it can't find the file "FormTest2/bin-debug/mailMe”. Kearney On Nov 5, 2009, at 9:53 PM, Tracy Spratt wrote: > > > 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@... [mailto:flexcoders@...] > On Behalf Of Kearney Buskirk > Sent: Thursday, November 05, 2009 11:51 PM > To: flexcoders@... > 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@...?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@..., Kearney Buskirk <kearney@...> >> 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@...?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 >> >> >> > > > > |
|
|
[SPAM] Re: Re: text from a form into an e-mail?remove the single quotes around mailMe. You want to pass the variable, not a string.
--- In flexcoders@..., Kearney Buskirk <kearney@...> wrote: > > Hi Tracy > > I must be misunderstanding what you're saying. I tried this: > > private var mailMe:String = "mailto:kearney@...?body=bodyText"; > > private function sendEmail():void > { > navigateToURL(new URLRequest('mailMe'),'_self') > } > > and on clicking the Submit button which calls sendEmail, the browser > tells me it can't find the file "FormTest2/bin-debug/mailMe". > > Kearney > > > > On Nov 5, 2009, at 9:53 PM, Tracy Spratt wrote: > > > > > > > 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@... [mailto:flexcoders@...] > > On Behalf Of Kearney Buskirk > > Sent: Thursday, November 05, 2009 11:51 PM > > To: flexcoders@... > > 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@...?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@..., Kearney Buskirk <kearney@> > >> 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@?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: Re: text from a form into an e-mail?On Nov 6, 2009, at 10:59 AM, valdhor wrote: > remove the single quotes around mailMe. You want to pass the > variable, not a string. That worked, thank you, to generate an email. private var mailMe:String = "mailto:kearney@..."; private function sendEmail():void { navigateToURL(new URLRequest(mailMe),'_self'); } Now I have the problem of generating the string from the form - I would think this variable would work to do that: private var text2:String = richTextInstance.text If this variable is even written but not used, the app doesn't even display - gives this: TypeError: Error #1009: Cannot access a property or method of a null object reference. And then I don't understand how to combine the above two variables to insert into new URLRequest(). Thanks for your help. Kearney > > > --- In flexcoders@..., Kearney Buskirk <kearney@...> > wrote: >> >> Hi Tracy >> >> I must be misunderstanding what you're saying. I tried this: >> >> private var mailMe:String = "mailto:kearney@...?body=bodyText"; >> >> private function sendEmail():void >> { >> navigateToURL(new URLRequest('mailMe'),'_self') >> } >> >> and on clicking the Submit button which calls sendEmail, the browser >> tells me it can't find the file "FormTest2/bin-debug/mailMe". >> >> Kearney >> >> >> >> On Nov 5, 2009, at 9:53 PM, Tracy Spratt wrote: >> >>> >>> >>> 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@... [mailto:flexcoders@...] >>> On Behalf Of Kearney Buskirk >>> Sent: Thursday, November 05, 2009 11:51 PM >>> To: flexcoders@... >>> 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@...?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@..., Kearney Buskirk <kearney@> >>>> 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@?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 >>>> >>>> >>>> >>> >>> >>> >>> >> > > > > > ------------------------------------ > > -- > 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: Re: text from a form into an e-mail?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.) Tracy Spratt, Lariat Services, development services available _____ From: flexcoders@... [mailto:flexcoders@...] On Behalf Of Kearney Buskirk Sent: Friday, November 06, 2009 3:16 PM To: flexcoders@... Subject: [SPAM] Re: [flexcoders] Re: text from a form into an e-mail? On Nov 6, 2009, at 10:59 AM, valdhor wrote: remove the single quotes around mailMe. You want to pass the variable, not a string. That worked, thank you, to generate an email. private var mailMe:String = "mailto:kearney@ <mailto:kearney@...> gmail.com"; private function sendEmail():void { navigateToURL(new URLRequest(mailMe),'_self'); } Now I have the problem of generating the string from the form - I would think this variable would work to do that: private var text2:String = richTextInstance.text If this variable is even written but not used, the app doesn't even display - gives this: TypeError: Error #1009: Cannot access a property or method of a null object reference. And then I don't understand how to combine the above two variables to insert into new URLRequest(). Thanks for your help. Kearney --- In flexcoders@yahoogro <mailto:flexcoders@...> ups.com, Kearney Buskirk <kearney@...> wrote: Hi Tracy I must be misunderstanding what you're saying. I tried this: private var mailMe:String = "mailto:kearney@ <mailto:kearney@...?body=bodyText> ...?body=bodyText"; private function sendEmail():void { navigateToURL(new URLRequest('mailMe'),'_self') } and on clicking the Submit button which calls sendEmail, the browser tells me it can't find the file "FormTest2/bin-debug/mailMe". Kearney On Nov 5, 2009, at 9:53 PM, Tracy Spratt wrote: 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@... [mailto:flexcoders@ <mailto:flexcoders@...> yahoogroups.com] On Behalf Of Kearney Buskirk Sent: Thursday, November 05, 2009 11:51 PM To: flexcoders@yahoogro <mailto:flexcoders@...> ups.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:kearney@...?body=some%20body%20text%20goes%20in%20here'),'_self')> ...?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@yahoogro <mailto:flexcoders@...> ups.com, Kearney Buskirk <kearney@> 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:recepient@?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 ------------------------------------ -- 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-fullfeatured@...> ured@... |
|
|
Re: 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:kearney@...?subject=answers&body= "; 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: 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 <kearney@...>wrote: > > > > 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:kearney@...?subject=answers&body=<kearney@...?subject=answers&body=> > "; > > 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<http://groups.yahoo.com/group/flexcoders/join;_ylc=X3oDMTJnaDF0MGgwBF9TAzk3NDc2NTkwBGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNzdG5ncwRzdGltZQMxMjU3Njk2OTY4> > (Yahoo! ID required) > Change settings via email: Switch delivery to Daily Digest<flexcoders-digest@...?subject=Email+Delivery:+Digest> > | Switch to Fully Featured<flexcoders-fullfeatured@...?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-unsubscribe@...?subject=Unsubscribe> > > > > -- With Regards Shabir Ahmad Gilkar Srinagar Kashmir J&K Voice: +91 9419942501 email: shabirgilkar@... Skype: shabirgilkar |
| Free embeddable forum powered by Nabble | Forum Help |