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
[flexcoders] 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:recepi...@isp.com?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
[flexcoders] How to interact with the contents of a SWF loaded into Flex?
The problem: from buttons in Flex, how to control going to a frame or frame label in a timeline, in a SWF made in Flash 9, which is then loaded into a Flex project by a SWFLoader component. There will be buttons for next and previous. Each frame to be accessed by a corresponding State in Flex. How to refer to and interact with the contents of a SWF loaded into Flex? Would the above best be done as a Flex component exported from Flash 9? Thanks Kearney Buskirk
Re: [flexcoders] how to manage display of 2 images inside a VBox?
On Dec 22, 2008, at 12:08 PM, Manish Jethani wrote: On Mon, Dec 22, 2008 at 10:14 PM, kearney_buskirk kear...@lightthrumedia.com wrote: The situation: a large photo jpg and a small text png are vertically constrained within a VBox. The small text png is positioned below the photo in the layout. The problem is the small file loads first at the top of the VBox and then is pushed down to its place at the bottom once the larger photo loads. So how to program Flex to load the text file after the photo file? Or second choice would be for the text file to be constrained to load in its place. VBox Image source=... complete=smallImage.load() / Image source=... autoLoad=false / /VBox On the complete event of the first one, you load the second. These are images which get fed a different source in different states, through a mx:SetProperty/ (to make a slide show with captions). The above code worked in the starting state (which is not the same as the base state) but then didn't work in subsequent states. I don't understand why that would be the case. I suppose I could insert a mx:SetProperty/ for the autoLoad and a mx:SetEventHandler/ for the complete event in each state but there must be a more elegant solution. Thank you very much for your response. Kearney Buskirk Putting this within the opening VBox tag didn't work: creationPolicy=queued creationIndex=0 creationPolicy is really for the container (VBox) itself, not for its children. That is to say, it does not affect the order in which the children are created. Moreover, here the issue is not that the second one is _created_ before the first, it is that the image inside the second one gets loaded before the first. -- http://manishjethani.com/ -- 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: [flexcoders] how to manage display of 2 images inside a VBox?
On Dec 22, 2008, at 4:05 PM, Alex Harui wrote: Did you try resizeToContent=true? When resizeToContent is inserted into either the VBox or the Image, a mistake reads: cannot resolve attribute 'resizeToContent' to that component type. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Manish Jethani Sent: Monday, December 22, 2008 12:09 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how to manage display of 2 images inside a VBox? On Mon, Dec 22, 2008 at 10:14 PM, kearney_buskirk kear...@lightthrumedia.com wrote: The situation: a large photo jpg and a small text png are vertically constrained within a VBox. The small text png is positioned below the photo in the layout. The problem is the small file loads first at the top of the VBox and then is pushed down to its place at the bottom once the larger photo loads. So how to program Flex to load the text file after the photo file? Or second choice would be for the text file to be constrained to load in its place. VBox Image source=... complete=smallImage.load() / Image source=... autoLoad=false / /VBox On the complete event of the first one, you load the second. Putting this within the opening VBox tag didn't work: creationPolicy=queued creationIndex=0 creationPolicy is really for the container (VBox) itself, not for its children. That is to say, it does not affect the order in which the children are created. Moreover, here the issue is not that the second one is _created_ before the first, it is that the image inside the second one gets loaded before the first. -- http://manishjethani.com/
Re: [flexcoders] how to manage display of 2 images inside a VBox?
On Dec 23, 2008, at 10:30 AM, Alex Harui wrote: Sorry, forgot that not all containers have that. You could try setting the textImage to be invisible until the big image loads. May I suggest that Flex have at least a simple slideShow component. Think I'll try making it in Flash and insert that .swf in Flex. Thanks. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Kearney Buskirk Sent: Tuesday, December 23, 2008 10:11 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how to manage display of 2 images inside a VBox? On Dec 22, 2008, at 4:05 PM, Alex Harui wrote: Did you try resizeToContent=true? When resizeToContent is inserted into either the VBox or the Image, a mistake reads: cannot resolve attribute 'resizeToContent' to that component type. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Manish Jethani Sent: Monday, December 22, 2008 12:09 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how to manage display of 2 images inside a VBox? On Mon, Dec 22, 2008 at 10:14 PM, kearney_buskirk kear...@lightthrumedia.com wrote: The situation: a large photo jpg and a small text png are vertically constrained within a VBox. The small text png is positioned below the photo in the layout. The problem is the small file loads first at the top of the VBox and then is pushed down to its place at the bottom once the larger photo loads. So how to program Flex to load the text file after the photo file? Or second choice would be for the text file to be constrained to load in its place. VBox Image source=... complete=smallImage.load() / Image source=... autoLoad=false / /VBox On the complete event of the first one, you load the second. Putting this within ! the opening VBox tag didn't work: creationPolicy=queue d creationIndex=0 creationPolicy is really for the container (VBox) itself, not for its children. That is to say, it does not affect the order in which the children are created. Moreover, here the issue is not that the second one is _created_ before the first, it is that the image inside the second one gets loaded before the first. -- http://manishjethani.com/