ActionScript 3 :: Using NavigateToURL With The "mailto" Email Address Being Populated From An XML List?
Jun 1, 2009
there are many tutorials out there on how to use this function, what I am trying to do and can't seem to find a tutorial on is using navigateToURL with the "mailto" email address being populated from an XML list.
For example you have a list of offices and each office has a lead. I want to populate a List component with the office name, and when clicked I want it to open the email client and populate the To: and Subject line from the xml file.
What I have so far populates the Office name into the list and when clicked the mail client will open but doesnt populate the To because I can't figure it out. I believe I need to specify a var to pull the email address from the xml list, I just cant seem to get it right.
I am wanting a mailto button in Flash MX which I can get to work nicely except that I need to specify either the return email address (ideal) or which email account to use. The reason for this is have have 5 email accounts running, and the default is not the one I want Flash to use.
here is the issue I am having: I have a button in my main movie and after it is pressed i want for it to open a pop up window right next to this button with some information in it. I have a email button so when you click on that button I want another window to open right next to this email button with my email address.
It works fine on a testing domain where the flash and the html file are located in the same folder, however, this flash banner is going to be stores on a subdomain callAs soon as it's put on the live site with the flash located in the images subdomain the link stops working. I don't even get an error message; it just doesn't do anything.We tried changing the code to:
on (release){ System.security.allowDomain("*"); System.security.allowInsecureDomain("*");
How I can get this html formatted text to display correctly in the body of an email, when I am using mailto:? I am trying to avoid using a PHP aggregate, so I can use the mailto: and have it open the users email program directly. Here is what my code looks like, with the style of string that my client would like to use to populate the body of the email .
Code: public function handleEmailClick(e) { ...... var emailVar = "mailto:"+""+"?subject="+emailSubject+"&body="+big String; var request:URLRequest = new URLRequest(emailVar); navigateToURL(request); }
I would like to know if there's a way you can take a screenshot of a flash object embedded in a page, and then email the PNG or JPG using the mailto: form submission to a specific address. So far I have investigated various javascript methods, but none of them have worked.
Can I have a control of cursor position in the landing email program when I use mailto? I think it looks more professional when the cursor goes into Subject field rather than falling right behind my email address in To field. The following snippet that I tried didn't make any difference. [code]...
I am trying to send email within an Adobe AIR app using AS3's navigateToURL() function. I have successfully sent over plain text, but was wondering if there is a way to set the content-type to text/html because right now it sends the HTML as brackets. [code]...
i am trying to create a list of buttons populated from an xml file they populate but i DONT want them to align with x starting at 0.[code]i want to be able to start the first buttons _x at lets say 100 or something and then space them out 30 px apart.
I would like to populate a combobox from XML file in Flash. Then, when a list item of combobox is pressed then thumbnail image of that particular category is being loaded in a movieclip from XML file.
I spent a hard time to achieve this, but there is no success.
I used this code so far to accomplish this task.
Code: var myXML = new XML(); myXML.ignoreWhite = true; myXML.onLoad = function(loaded){
How does one link a button to an email address? So in otherwords, once you click a button, your email application opens, ready to compose a message to the assigned address.
I'm trying to make a button that when clicked on opens an email client with an empty address field but a filled subject and body, but have no idea where to begin.The idea is that I have a "Refer me to your friends!" button, so when the user clicks it, it opens an email with the subject "Sairus is awesome" and a body filled with propaganda. The address field must remain blank so they can add in the friend's address they wish to send.For the moment I'm working with the below, however obviously enough the address is being filled in. Hoever, despite the seemingly correct code, the subject and body are remaining empty. I'm using Flash 8, is the syntax different in my version?
on (release) { getURL("mailto:sairus@awesome.com?subject=Sairus is awesome&body=The following 50 reasons explain why Sairus is awesome:"); }
I am searching for a way to retrieve all emails addresses from a given string. For example: if i have the string "AB CD [ABCD@gmail.com]" i want to receive only "ABCD@gmail.com".
I guess i should use RegExp and String match function, but i am not sure how.
wonder if someone could point me in the right direction on how to search a string for an email address, then change its color and make it clickable ex var str:String = "Lorem ipsum dolor sit amet, email@email.com consectetur adipiscing elit." output> "Lorem ipsum dolor sit amet, email@email.com consectetur adipiscing elit."
I am using AS3 on a website. Part of the AS has been setup by an external source and I ma now updating and adapting it. My knowledge of AS is limited but slowly expanding.
Currently the site is a main flash file with all the content delivered via a main.as file and then populated via images and videos held in folders on the web.
In one section we have an email link.
I was using Email[url]... and it worked fine. It launched the email program and put the email address in ready to go.
When I added the subject element as below[url]...
it now does what it should with the email program but it also opens a blank webpage.
What can I do to get rid of the blank web page opening?
Is it possible to let flash, send an email to your emailadress, when an Error occured, so that you know when Errors occur after you've put your SWF on the internet?
I have a form that is currently working. But would like it to validate for a legitimate email address. Here is the code I have right now:
Actionscript Code:[code].........
Is there any way to modify this or add another if statement to validate that it is not only entered, but a valid email address. I am new to AS3, and am not sure how to have it do this.
whats the code in flash 5 to inable input text to be sent to the clients email address - i.e, when the submit button is pressed, the form needs to be sent to the desired email address.
I am trying to create a form in actiocsript that verifies correct user input before submitting. So far I have the form checking that NewEmail contains characters, an "@" symbol and a "." symbol. However is there code that can check that the layout of the email is correct before submitting i.e. <"sometext"@"sometext"."sometext">
Also I need to insert a seperate name verifier to check that there are no numbers included in a text box. This is my code so far: _global.detailsCheck = function() { if ( _root.NewEmail.length == 0 | _root.NewEmail.length == "" | _root.NewEmail eq "") { // Alerts the user that their password is incorrect _root.Guide2 = "Please Fill All Detail Fields"; [Code] .....
I am having trouble creating an email form in Flash. The PHP is working fine and the email sends if I query the php in a browser but when I pass the variables from Flash the email address that is passed gets ****ed up.
For example: the text I enter in the text field: bobloblaw@football.com what is sent to php: bobloblaw%40football%2Ecom
I realise this is probably to do with urlencoding and I have tried escape() on the strings
I tried making a multidimensional Vector that was populated by other Vectors that are populated by Strings.
ActionScript Code: var myVect:Vector = new Vector.<Vector>; for (i = 0; i < 10; i++) { myVect[i] = new Vector.<String>; }
This is giving me a Type Coercion error, even though the Vectors all have the correct object types in them. Is the error because I'm putting a Vector full of Strings into another Vector?Also, I'm working with large amounts of data, so using Arrays aren't an option because I need all the performance I can get.
I'm Using EmailValidator for Validation: <mx:EmailValidator id="Email_Validator" source="{txtEmail}" property="text" required="false"/>
And My Code is: var isValidForm:Boolean=true; var validatorArr:Array = new Array(); validatorArr.push(Email_Validator); var validatorErrorArray:Array = Validator.validateAll(validatorArr); isValidForm = validatorErrorArray.length == 0; if(isValidForm) { //..... }
It is working fine. But I want domain should be "gmail.com" if some other, validation should return false.. How can I achieve this? I think Regular Expressions are useful. But I don't Know to use the same in flex?...
Now im developing one flash site. In that i have one form details.. I completed the form using php. when we user register all the data will store in one notepad file. Now i have one more form for referring friends... When users referring his/her friends in that form i have one field his/her (Referral Email id/phone no) text field. Once User submit the form first i want to check if this user already register with us or not. So i want to check the notepad file for his email id / phone no. if he already registered then only form will submit.
How to check email id/ phone no in notepad file from flash?
I'm a newbie in actionscript and I'm developing a flash game for facebook. The issue is that I want to save the e-mail address introduced by the player to a txt file.