Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Load Variables Email Address From Text File Anyone?



I have the code below attached to a movieclip which i am attempting to use to call in an email address from a text file. The idea being that the textfile can be altered by a luddite, and the recipient email adress changed in the flash file.... but i'm not doing too well...!The best i have achieved is undefined email or garbage.all help greatfully received. thanks.___________________________________on (rollOver) {this.gotoAndPlay(2);}on (release) {loadText = function(){ loadText = new LoadVars(); loadText.load("email.txt"); loadText.onLoad = function() { emailAddress = this.eAddress;}}submit.onRelease = function(){getURL("mailto:"+emailAddress);} }on (rollout) {this.gotoAndPlay(1);



Adobe > ActionScript 1 and 2
Posted on: 12/19/2006 09:35:39 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

HOW TO : Load Email Address From A .txt File For A Mailto Button
I have been trying to do this for a while and have fallen on my face.
I can't get my head around loadvars..... can't spot similar anywhere on the board, so here goes....

i wish to have a button which on release loads an email address from a text file, then sends using on(release); "mailto:email@email.com"

So that the recipient can be altered in a text file by changing the variable there, not in the flash file.

any ideas how i do that !?!

thanks very much for any hints in advance.... C

Sending Variables To An Email Address
Hi all,

What's the best way to send variables to an email address? I'm trying to avoid an email client from opening up on the host machine...

Is it possible? - or do I need to send to a backend script that then forwards on to an email address?

Thanks...

SS

Send Email Address Through Flash File Using PHP
Sir,

I want to send my Email address and some other information like name ,comments in a flash file using php and want to get these information at my desire email address.

please give me solution deeply bcoz i am begginer in flash.

Load Variables From Address Bar
i founded out, there is a way to load vars from addressbar like ../movie.swf?user=fphilipe .
i don't know how it works but i know it works. ultrashock uses this in the main page:




<param name=movie value="homepage-new78.swf?initData=Hey+Fphilipe%2C+welcome+back+%21%21%21%0AYour+last+visit+was+on%0A2004-01-19+18%3A32">

does somebody knows how it works???

Load Variables From Address Bar
is there a way to load variables from the address bar?
i mean like "../flash.html?name=BlaBla&email=blabla@bla.com"
it shoulds appear in the flash movie inside the html in dynamicfields.

Load Variables From Text Then Loading Image File With The Filename Given In Text File
The problem is, that i need flash to load variable from text file, eg: info.txt, with image=gt.jpg in it.
Then I want flash movie to load a gt.jpg into a blank movie.
The point is that after i change filename in txt file, i want movie to load that img.

I wrote AS:
loadVariablesNum("info.txt", 0);
loadMovieNum(image, 0);

but it's not working
After i traced variable image, debugger showed that this variable undefined, but if i put textbox with image as variable, it shows "gt.jpg".

Please help

Linking Text To An Email Address
Can someone tell me how to link text within flash so that when someone clicks on it, it will take them to a new email.

Embedding Email Address Into Text?
Am I doing something wrong? I placed the email address into the link area of the text properties box (using MX) and it won't do anything. If I put a regular URL in there it obviously works fine.

Is there something extra I need to do to have the text open outlook?

Obfuscate Text Like Email Address
As you probably know, Google is now indexing text on Flash, and it has fully indexed text embedded in my Flash site. But actually, I am NOT happy about it. Compiled .swf files were previously safe from email address harvesters that result in spam. Now since Google can index the files, these spammers will soon follow.

Therefore, I would like to ask you if there is a way to obfuscate the text. In .php and .html files, there are many ways to do so using URL encoding, Javascript, and of course images. I do not want to use images because it doesn't work well with my paragraph, and they're not immune from spammers' OCR software.

Any encoding solutions? Can I use the same URL encoding and Javascript as in .html files?

TIA
Leafgreen

Load Variables From Address + Username Add
i am trying to make a login for my site and i have the save text files to my server and that takes what ever you put in as your username and save a txt file that is username.txt so if you put in steven as your username it would save steven.txt

Any way i have that working and i need a login but i cannot get it to look somewhere on my server and what ever is in username it will load up that file +".txt" can you help me get it looking in say /members/username add ".txt"

Send Input Text To Email Address
I am making a website for one of my church's youth groups. I am trying to make a "prayer request" form so that kids can type in a prayer request then hit submit and the prayer request will be sent directly to the pastor's email address.... how do i do this?

Lisa

Load Variables From What The User Types In Address Bar
Hi,

I was just surfing and suddenly I found this site... www.youaremyfriend.com

How this site function really surprised me and I really want to learn how I can do the same thing myself. I hope some of you help me

What the site does is that you can put your first and last name before the domain name in the address bar and the flash file will use your enterd first and last name in the playing animation! Try this... www.Jack.Smith.youaremyfriend.com

Have any idea how it works?
Hadi

Trouble Sending Order_txt.text To My Email Address
I am having trouble sending order_txt.text to my email address, could some one help me?.

submit_btn.onPress = function(){
order_dyn.text = name_txt.text + address_txt.text + order_txt.text;
order_dyn.text.send (myaddress@blank.com);
}

How To Load More Than One Variables From One Text File ....
hello again......


well friends i have another prob....


lets c .... i have a text file name myfile.txt and in it the variable mytxt=.... now i want to add more than one variables in that file....

like .... mytxt1=
mytxt2=
mytxt3=
mytxt4= and etc...


so how can i do that..... how can i close a variable and start other.... or how can i difrentiate them.. so that i can load them from different places.... or on diff events...

what if i have a mc of 20 frames... now i want to load the
mytxt1= on frame 5
mytxt2= on frame 10
mytxt3= on frame 15
mytxt4= on frame 20


but the prob is that ... i want to use only one txt file for that... :-


ANY SUGGESTIONS plz !!!

Load Variables From A Text File - Help
Using a text file to load variables into a movie. Loading in OK but can't do maths with them - I assume this is because they are a text string? Tried Number function and parseInt to convert them to numbers but neither seem to work. What am I doing wrong???

Loading variables with:
loadVariablesNum("blueballdata.txt", 0);
in main timeline frame 2

then trying to add positionx and positiony and display answer in text field (also use values to position a movieclip on the stage)

have tried
total = Number(positionx) + Number(positiony)
and the same syntax with parseInt.

Any help appreciated

Load Variables From Text File = HELP
Hello All,

I'm hoping someone can help me with this issue. I am using the loadVariablesNum and importing variables from a text file. The problem is when the variables load they load with quotes around them. I need the variable to be a numeric 1 or 0 (1 for true 0 for false) so I can later I can check for equality (==).

How can I get the variable when loaded from a text file to be:

myvar = 1

instead of the way it is currently loading:

myvar = "1"

Thank you for any help.

Flanim8r

Load Variables: Text File
i'm using the following script to load text file variables:


Code:
on (release) {
_parent.Thread = "loading...";
_parent.File = File;
_parent.Topic = Topic;
loadVariables (_root.Forum.PathToDir+_root.Forum.Category+"/"+_root.Forum.File, _parent);
}

(Flash 5)

it loads the files no problem.... however, if i add information to a particular text file (it's a message board), when i click the subject again (the script above), it doesn't load my updated text file (with the new comments).

i'm guessing that this is something to do with the fact that after originally loading the text file, it just reads this (cached file) and not my updated version.

is there any way around this...??

any help very much appreciated... this is really doin my head in now!!

cheers - ric

Load Variables From A Text File
I have a couple of questions about loading a text file.

One. When my text file is loaded in the text box and you scroll down to read it then try to load another text file in the same textfield, it doesn't return to the top. How do I fix that?

Two. It seems that my text box is only loading a maximum number of characters. It doesn't load the whole text file. Can I fix that.

Three. A client that knows nothing about html is uploading the .txt files. Anytime she uses an apostrophe (') it shows up as a square. Can I somehow embed that character so it shows up?

Thanks for your help on any of these questions. Here is the link to the site so you can see what I mean.

http://www.dwightillinois.com/minutes.htm

Load Variables From Text File...
Hey,
I want to create flash site which reads the variables off of a text file. I currently have 2 layers (canvas & scripts). On the canvas I have 20 text layers which are set to dynamicly load according to the variable names (t1, t2, t3, etc...). On the script layer I used loadVariables("text.txt");  and in the file I have t1=xxx&t2=yyy&t3=zzz. However when I try to load the movie it says that I have the incorrect number of parameters and I have to have b/w 2 and 3. Please Help!

Load Variables From Text File...
hey all

can i load an array from a text file? and how would i write the syntax in the file?
i dont think i can, but thats why im here
if not....
i would like to load a variable from the text file example

myVar=one+two+three

how, in flash5 can i rip apart the string to make the 3 words separate, which i will be using for 3 other variables?
thanx in advance...
cheers
paul

Load Variables From A Text File
Let's say I have something like this, which loads a random movie:

Code:

file = ["movie1", "movie2", "movie3"];
i = file.length;
j = Math.floor(Math.random()*i);
loadMovieNum(filename[j], 1);

Is there a way I can use a text file with something like this:

Code:

movies = "movie1", "movie2", "movie3"

And use this in the fla file:

Code:

file = [movies];
i = file.length;
j = Math.floor(Math.random()*i);
loadMovieNum(filename[j], 1);

This way, whenever I want to update the movies, I can edit the text file instead of the fla file.

Load Variables From Random Text File In Set? HELP
I need to be able to_ Load variables from random text file in a given a set._ I am using the newest flash version (fx, mx??) on Mac OS X
heres what I was emailed
"needs:_
1. we'd like this game to load numbers dynamically from a given range
of numbers rather than from a textfile._ If all the numeric variables
loaded randomly from say a range of 1 to 10 for level 1 then how can
you program to make the answer for the game?_
2. , we have to devise a
way to keep track of the number of times a user chooses the bucket and
make the bucket work that many times._ So if you click 30 times
really fast on the bucket, it will probably only work 2 or 3 times as
it has to play an animation after a click._ The bucket becomes
inactive while in animation so how do we tell it to keep working
based on clicks?_
3._ keeping track of correct answers._ So this may be a way off but
we need to keep track of the wins by a user when they enter into the game._ keep track of these wins over the course of the whole game, or based on each user. "
can anyone help me or give me code for how to do any of this? I am rather lost and don't know where to begin- please help! I am still a beginner and would love some step by step how to's thank you!

How Do You Load Variables From A Text File Into An Array
how can I just load the variables from a text file into an array, regardless of how many variables there are or what their names are?

Using This._name To Load Text File Variables
n00b question here

i've managed to get a dynamic text box to display the instance name of it's parent MC (infoa, infob, infoc...):

on (release) {
gotoAndPlay(2);
txt.words = this._name;
with (anim) {
play();
}
}

But how can I get the text box to display the variable of the same name which is in a .txt.

Where should i put my loadVariables and what should it say

what i need is 64 instances of cubeMC, but when you click on one it displays the text according to which instance you click. The text (which has var: words) is inside txtMC (instance name txt) which is in cubeMC.

any help appreciated

Problem In Load Variables From Text File
I would like to load a plenty of data from a text file and then assign them to the variables in flash. However, when I use:

loadVariablesNum("test.txt",0);
doAssignment();
gotoAndPlay("finishLoading");

to achieve the purpose, the flash movie does not function well and it unreasonably back and stop to the first frame in the _root level. I think it should be the problem that the movie do not have enough time to load all variables from text file, so that it perform wrongly, isn't it? If so, how could I ensure that all data was loaded before move on to other frame, or does anyone have better solution to this problem? thanks for your help!!

Send An Email With The Users Email To An Email Address
ok..the subject may be a little confusing but this is what i have...

an input textbox where viewers type in their email address
a submit button

i want it so that when you hit submit after typing in your email address it sends an email to your@address.com providing you with whatever the person typed in the input textbox

is this possible without using php or asp or whatever?

peace
spen

Load Variables From Text File On Hard Drive?
Hello, all.

Can some one help me with an issue I'm having with loading variables from a text file that is sitting on a Hard Drive rather than the server?

I would like each computer station to pull data from the server based on their individual Station IDs (which is defined in the text file on the hard drive).

The path to the text file is C:StationID.txt - I am having trouble with defining the PATH to the text file on the actual hard drive.

Thank you very much

Problems Loading External Text File With Load Variables In Windows
Hi,

I want to load the text content in my Flash movie from a external text files with the load variable action. Everything works great, that is when I test it on my Mac, when I try it in Windows under virtual PC explorer won't load the external text files into my movie. Sometimes it even crashes Explorer completely! I tried several source codes which I found on Flashkit but every time the same happens.

Load Variables From Form To Email
i have a form that i want to send to an email address instead of a url. is this possible?

Load Variables To Email Button
I have the code below attached to a button that i am trying to make a mailto:email@email.com link from.
The catch being i would like to have the email address editable in a text file, without touching the flash itself.

currently my text file reads: &eAddress = "name@server.net"

Any clues as to what to try next!? I'm baffled as to why i can't make it function.




Code:
on (rollOver) {
this.gotoAndPlay(2);

}


onClipEvent (enterFrame) {

loadText = function(){
loadText = new LoadVars();
loadText.load("email.txt");
loadText.onLoad = function() {
emailAddress = this.eAddress;
}
}
submit.onRelease = function(){
getURL("mailto:"+emailAddress);
} }



on (rollout) {
this.gotoAndPlay(1);
}
thanks
C

[F8] Do You Know How To Send An Email To An Email Address
Do you know how to send an email to an email address with a predetermined message from flash using Flash & PHP????

Sending Variables To File Or Email
Hi,

I am trying to gather information froma form and send it to either a local text file or email the info(Prefered!) Below is the code I have been trying, but no luck yet.

chosenson



var usermail = emalTxt.text;
var username = nameTxt.text;
var subject = subTxt.text;
var body = bodTxt.text;
//var allTxt = usermail+username+subject+body;(commented out when trying to send locally)
_root.mailer.onPress = function() {
sendAll = new LoadVars();
sendAll.userm = usermail;
sendAll.usern = username;
sendAll.subj = subject;
sendAll.bod = body;
//sendAll.send("mailto:chosenson@excite.com");
sendAll.send("D:Harrysflashstudy buddyStudy_Buddysb_user_post.txt");

Email Button With File Variables
I need to have a button at the end of an swf that sends an email and includes variables from the file. Is that possible?

I successfully put a button that opens outlook with the To: address as I defined. But I need to add variables from the file to the email either in the note or as an attachment.

Also, if the user does not have Outlook, is there a way to still send an email?

Any help or suggestions will be appreciated.
Thanks,
Denise

Sending Variables From A Flash File To An Email
Hi

I have a flash file in wich there are two input text fields. They crate two variables: "name" and "email".

I would now like the flsah file to send this variables to my email address, but I do not know how to do this.

I have a cgi-bin folder in my webserver, but I do not know how to crate a script, actually I do not even know exactly was a cgi-bin is.

Can somebody help me to create a script in my flash file wich sends this variables to my email?

Thanks
Marcello

SWF File Attached To Email Won't Load Xml
Hey all,

Any ideas on this - I've attached an swf file, that calls on an XML file from my website, to an email to send out to clients. Unfortunately the SWF when run from inside the message box (as an attachment) doesn't seem to be able to access the address of the xml file, even though the internet is connected and the URL is correct.

this is a bit of a big spanner in the works. I've tried changing the publish settings to both "use network only" and "use local files only" but that doesn't solve the problem unfortunately.

Any help would be greatly appreciated!

Cheers

Pix

Validate Email Address
code someone tell me how i can validate an email address in a form.

cheers

Form To Email Address
I have an swf file, that is loaded (loadmovie) into another swf file. I am wondering how I can make a form submit the users email address (for mailing list) I have it all created, tried about 3 different types, both cgi & asp, and no luck at all. I would appreciate help, because I really need to get this working.

Thanks!

Email Address Submission?
I have an swf file (flashbottom.swf) which is loaded into main.swf. It all loads and everything, and in flashbottom.swf I have a form for mailing list. All they have to enter is their email address then press the submit button. For some reason, it just won't work! I've tried many different tutorials and open source, still no luck. I'd appreciate any help!

P.S. I don't want a mailing list script, just something that sends to my email, because I would like to add addresses manually

Check 2 Email Address
Hello.

I have a recomend bit on my site.
I have the script to check one e-mail but I cannot work out how you can check two.

The script I'm using at the moment is:

on (release, keyPress "<Enter>") {
if ((vemail.indexOf("@") != -1) && (vemail.indexOf(".") != -1) && (length(vemail)>5)) {
action = "Send";
loadVariablesNum("membership.php", 0, "POST");
nextFrame();
} else {
vemail = "PLEASE ENTER EMAIL";
action = "";
stop();
}
}





How can I alter this so it would check two ??

The script above checks the - TEXT BOX: "vemail" but i need it to do the same thing with TEXT BOX: "femail" too.


If you want have a look at what I done so far , check http://www.feneo.com (Its at bottom Left)

I'm so stuck. Pleeeeeeeeeease help

Thanks in advance


Dihan.com

Linking To An Email Address
Hey all, Im pretty new to flash and i am currently working on a flash site that needs to be able to link to an email address. I have tried many things but none work. How would i accomplish this?

Thanks
KaOs

How To Link Email Address
Hi guys...I dont practice much in Flash and now I am trying to create a website.....


Can someone tell me how can I link an email address to a Name? I cannot figure that thing out...


thanks

Malik

Email Address Linkage
hey, i want a link on my website which will enable the user to email me when clicked just like on a normal html site. i tried linking it to go to a webpage then typing "mailto:email@address.com" but the link doesn't work. how can this be done? your help would be much aprepriated

cheers. mark.

Linking To An Email Address? How
Though I am not a newbie... but this IS a newbie question. I cannot figure out how to link to a 'mailto:' address. I want to link a line of text to an email address. I have a line of text I have converted to a button and then with object actions I have added "on mouse event" "get URL", then inthe url box I added the html command 'mailto:name@place.com'

This did not work... what do I need to do?

Email Address In Flash
I have an email address on the stage that when user clicks on it, the mail browser would open up. How would I do this?

Thanks in advance!

Submit To An Email Address [F8]
This is the code I have on my submit button for a email address to be sent for a newsletter subscription to a site the email bit is working but the messages are not poping up in the other field I have vard as EmailStatus i.e "Not valid E-mail address" & "e-mail recorded";


on (release)
{
if (newsletter.length < 7 || newsletter.indexOf("@&quot == -1 || newsletter.indexOf(".") == -1)
{
EmailStatus = "Not valid E-mail address";
} else
{
loadVariablesNum ("index.php", "0", "POST");
newsletter = "";
EmailStatus = "e-mail recorded";
}
}



any Ideas where im going wrong????

Nuub

[F8] Linking Email Address To Another
Okay, so I know how to make a button that opens up a user's email application with the email address already loaded and ready to send.

What I want to do, is take that email address (the email address I made up for the site I'm working on, lets say "email@working.com") and have it automatically forward to a different email address/account that the user would be unaware of.

This is possible right?

URLRequest With Email Address
I'm assembling a form that is going to be processed by someone else. They told me to change the "action" field of the form (which I'm sending via URLRequestMethod.Post) to an email address instead of the script file they were using. They said they could take the raw POST data and process it as needed.

Assuming this is true, is the syntax just:
URLRequest("name@domain.com");
or do I need to put in a "mailto" or something else because it's an email address instead of a regular URL? Or use some other function?

Thanks,

Bob

Validate An Email Address
Hello

I am using this to validate email addresses and it does not seem to work:

} else if (!email_txt.length || email_txt.indexOf("@") == -1 || email_txt.indexOf(".") == -1) {
status_txt.text = "Invalid Email.";

I would, in any case, prefer to use the following server script for validation purposes:

<%
'Email
re.Pattern = "^w+@w+.w+"
If Not re.Test(email) Then
errorArray(1) = "red"
ErrorMsg = ErrorMsg & "<center>Please type in a valid email address</center>"
end if
%>

If I use this server script, how do I begin to show it in my movie, please? What Action Script do I use to 'pull it in' from the server and show it?

Many thanks

Steve

Copyright © 2005-08 www.BigResource.com, All rights reserved