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:[email protected]?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



Reply via email to