Send Text To A CGI Script?
hello all, I was wondering if anyone knew how to send and recive text in flash from a CGI script.
any help would be appreciated. thanks
Duane
FlashKit > Flash Help > Flash Newbies
Posted on: 10-10-2003, 12:03 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[F8] Send Text From Input Field To Text File?
Hi!
How can i send text in an input field to a text file in the same folder by clicking a button?
Just as pure text?
I thought maybe sendandsave or something..
I have no idea..
Please help?
Thanks.
Send Text
Hey,
I am looking how to have a flash 5 text input box that when it is submitted it is put into a specific text file on the same server. So you enter text, press enter and BAM, it is saved in a txt file. Any help would be greatly appreciated.
Thx
Lee
Get Some Text And Send By Mail
Hi,
I need some help in MX.
I have 9 box(InputText), I call var1, var2,...var9. I need get all information and send by mail, directly from my cd using the Outlook.
Is this possible?
Send Text To A CGI Script?
hello all,
I was wondering if anyone knew how to send and recive text in flash from a CGI script.
any help would be appreciated.
thanks
Duane
Send Text To Texfiled Help Plz
I have a main movie with a textbox instance called resmiles and a var name of miles
i call it into focus on the timeline by using
(Selection.setFocus("miles")
then i want to make the rest of the textfields in the frame selectable by simply clicking them into focus and being able to press the buttons on my OSKeypad to type into them.
this is what i have so far
timeline main movie
(Selection.setFocus("miles")
onMouseUp = function(){
focus = Selection.getFocus();
splitStr = focus.split(".");
focused = splitStr[1];
doit= eval(focused);
}
and on the OSK buttons
the buttons are contained in another movieclip called kb
on (release) {
doit=_root.doit
now=doit.text
doit.text=now+"5";
}
im going crazy now been working on this for 2 hrs
thanks
Send Text Big Problem
HI! EVERYONE!!!
my problem is this, i wanr to send to a .txt file the test that i input in a flash input text. does anyone kow how to do that!!
Thanks very much for the help!!!1
Usig Buttons To: Send Me An E-mail / Send Data From A Feedback Form?
As the title may suggest, i need some way of making an email button, and also feedback form buttons; both submit and reset. i thought this would be fairly standard stuff but didnt get any answers in the general help forum... its all for the last page of my site at www.geocities.com/jamesmbrannan if you would like to take a look
thx for any help/ advice
lev
Send Text From Swf To Email Client
can i send my text from different dynamic textfields to my email-client-window like outlook when i use the mailto commando. the text from the variabels should appear in the client-window so that the user just have to klick his send-button to submit his decisions in the flashform he filled out before. i know the form would be easier to do with asp, cgi or php but i need a solution in the way with the email-client.
thanks a lot
s1
Send The Content Of A Text Box To A .txt File?
I need help to send to the printer the content of a text box (dynamic), i would like to print only the text, whitout the background of the movie, and print all the text in the box, its a big text that needs a scroll button. How to do that in a simple way. i try the function "print" off an object, but it prints all the frames and the background, and it only prints one page.
Need help.
Thanks for your time and help.
Help - Send Editable Text To Email
Hey everyone,
I am working on a website, and I want to include an editable text field so that visitors can fill in information that is directly sent to an email account. I know how to make the fields, but I don't know how to set the variables or what the correct scripting is to send the information to the email account.
Please help if you know how
thanks
cyndy
PLEASE HELP How Do I Send Info From A Text Field To A Url
Hi,
I realy need some help here...
I have created a Flash .exe file that we use as a "portal" of sorts.
Upon launching this portal you are asked to login with your firstname, lastname and employee number
Flash then validates the lastname and employee number information with an xml file containing that information.
My problem is I have to also take the Firstname Lastname and employee number and send it to a url.
I attached a text file with my entire code so you can see what I did so far if it is not too much trouble could you make the changes their or just let me know how so I can do it my self.
Please help I fear my job may be riding on this project.
Thanks in advance.
On Rollover Send Variable To Text
when I click a menu button
on(press){
reset all 52? variables to = ""
}
on(release){
set certain variables to say something
}
then on the 52 symbols that will corresond to the variables
on(rollOver){
display the variable in a text box somewhere on the stage
}
for the sake of example the number 52 could be dropped down to 5
can anyone figure that out?
thanks
PHP To Send Varaibles To A Dynamic Text Box
How can i get a dynamic textbox to get a variable called cookie and place its value in a dynamic textbox. the variable is called cookie and is in cookiepage.php?do=get
thank you very much
AbdulGomaa
Send Input Text In E-mail?
I'd like to build a contact page where the user can write an e-mail directly on the webpage.
So far there's an input text field with the instance namne "message" and a component dropdown menu with e-mail adresses. Then another input text field called "sender" where the user is expected to enter her own e-mail adress.
How do we make the user's text send automatically in an e-mail to, say, flashbeginners@pleasehelp.com at the click of a button?
Oh, and how do we display the results of a couple of radio buttons in the final message?
Help greatly appreciated..
Send Text File To Flash Thru PHP
Hello, I read over the old post by Jubber, about sending variables from Flash -> PHP -> Flash but I can't seem to get it right. I have a series of input boxes which take values and then send it to a PHP script. The PHP script compiles the values and writes a .CKT file. Then I am trying to read this file into a string and send it back to Flash into a dynamic text field named "retVar". When I test the .swf, the dynamic text field is just always left blank. Any help would be greatly appreciated. Here is my code...
flash code...
submit_btn.onRelease = function( )
{
var loginVars:LoadVars = new LoadVars();
loginVars.c1 = parseInt( c1.text );
loginVars.c2 = parseInt( c2.text );
loginVars.c3 = parseInt( c3.text );
loginVars.l1 = parseInt( l1.text );
loginVars.l2 = parseInt( l2.text );
loginVars.l3 = parseInt( l3.text );
loginVars.r1 = parseInt( r1.text );
loginVars.r2 = parseInt( r2.text );
loginVars.r3 = parseInt( r3.text );
loginVars.sendAndLoad( "triple_rlc.php", loginVars, "POST" );
};
php code...
PHP Code:
PHP Code:
<?php
//File being written to
$filename = "triple_rlc_result.CKT";
//Footer file to place at end of file
$footer = "footer.txt";
//Simultation file
$simul = "simul.txt";
//Path to Micro cap
$mcpath = "../";
//Get capacitors
$c1 = $_POST['c1'];
$c2 = $_POST['c2'];
$c3 = $_POST['c3'];
//Get Inductors
$l1 = $_POST['l1'];
$l2 = $_POST['l2'];
$l3 = $_POST['l3'];
//Get Resistors
$r1 = $_POST['r1'];
$r2 = $_POST['r2'];
$r3 = $_POST['r3'];
//Open file
$fi = fopen( $filename, 'w' ) or die( "Unable to open file." );
//Write title
$string = "*Writing to the filename, " . $filename . "
";
fwrite( $fi, $string );
//Write capacitors
$string = "C1 5 0 " . $c1 . "P
";
fwrite( $fi, $string );
$string = "C2 6 0 " . $c2 . "P
";
fwrite( $fi, $string );
$string = "C3 7 0 " . $c3 . "P
";
fwrite( $fi, $string );
//Write Inductors
$string = "L1 2 5 " . $l1 . "N
";
fwrite( $fi, $string );
$string = "L2 3 6 " . $l2 . "N
";
fwrite( $fi, $string );
$string = "L3 4 7 " . $l3 . "N
";
fwrite( $fi, $string );
//Write Resistors
$string = "R1 1 0 1M
";
fwrite( $fi, $string );
$string = "R2 1 2 " . $r1 . "
";
fwrite( $fi, $string );
$string = "R3 1 3 " . $r2 . "
";
fwrite( $fi, $string );
$string = "R4 1 4 " . $r3 . "
";
fwrite( $fi, $string );
//Write finished
$string = "*Variables finished writing
";
fwrite( $fi, $string );
//Open footer
$fa = fopen( $footer, 'r' ) or die( "Unable to open footer file." );
$contents = fread( $fa, filesize( $footer ) );
//Write footer
fwrite( $fi, $contents );
//Close footer
fclose( $fa );
//Close file
fclose( $fi );
//Read entire output file
$return = fopen( $filename, 'r' ) or die( "Unable to open return file." );
//Return outputfile to dynamic text box.
print "retVar=" . $return;
?>
I'm sorta new to send vars back and forth, but I have been working with PHP and Flash off and on for 4-5 years now. Thanks ahead of time.
Using LoadVars To Send UTF-8 Formatted Text
In my application I recieve xml encoded as UTF-8. In my case this xml contains Polish chars/words like "części". The users of the application can now edit the text and on save I send it back to the server...
To send the data back I create a xml string and send it like this:
var loadUrl = GlobalSetting.get("servletIP") + Servlets.get(servletname);
var send_lv:LoadVars = parameters;
send_lv.sendAndLoad(loadUrl, this, "POST");
where parameters is a LoadVars looking kinda like this:
var parameters = new LoadVars();
parameters.action = add;
parameters.id = someId;
parameters.xml = theXmlString;
The Problem:
Using LoadVars will URLEncodes all the parameters, in the case of the Polish characters the ę is encoded to %C4%99 . The Java.URLEncoder does not understand the %C4%99 encoding and wrong data is saved...
Does anyone know how I can avoid this problem???
I want to send the actual ę character, and it should be possible because I should send it as a UTF-8...
Send A Varible From A Text Box To A Url In Actionscript 3.0
well i'm just learning 3.0 and know how to do this in 2.0 but need to know how in 3.0. I basically need to send a variable that a user types in and send that variable to the url string.. here is the code I have but it's not working and instead of sending a variable it sends the words [object textfield] to the url
ActionScript Code:
stop();
search_input.text = '';
function ButtonEventHandler(eventObject:Event):void{
var btnName:String = eventObject.target.name.split('_').shift();
var search:String = search_input.text;
MovieClip(parent).gotoLink(btnName, search);
}
//var Name=escape(search_input.text)
var link:URLRequest = new URLRequest("http://www.mysite/somepage/search/search.php?query="+ search_input +"&search=1");
search_mc.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent): void
{
navigateToURL(link);
}
search_mc.buttonMode = true;
anyone have any ideas what i'm doing worng or how to correctly do this?
How To Send Text Message From One Screen To Another?
I done my dot matrix scroller, i jus need help in implementing my user interface, so that wen u type in text in the m e ssage box, then when u click the submit button it should send the text on to the new screen
How To Send Text Messeges From A Website
Hi everybody!!
I would like to know if someone know a component to send Text messages from a website. A client ask me to add this feature to his website and I think I have seen it before. Does anyone knows how to do this?
Thanks in advace!!!!
How To Send Text AND Images To Stage From Xml?
Hi,
I have been a 'squirrel finder' tutorial from kirupa.com (http://www.kirupa.com/web/xml/exampl...rrelfinder.htm) to try and create a fairly simple xml-fed flash interface. Basically, i need to have a list of architectural projects in a menu, and when each one is clicked the project info is loaded into a dynamic text field and a series of maybe 2 or 3 images are also sent to movie clips on the stage.
I've got as far as just displaying the text using the tutorial: http://beentheunseen.ae-hosting.com/projects.html
This is my xml file:
<?xml version="1.0" ?>
<menu>
<menuitems>
<item type="school">
<name>Chapin School</name>
<info>
<![CDATA[This school has been under development for many years...]]>
</info>
<image1>face.jpg</image1>
<image2>face2.jpg</image2>
<image3>face3.jpg</image3>
</item>
<item type="school">
<name>Molloy School</name>
<info>
<![CDATA[Our work with Molloy has been...]]>
</info>
<image1>molloy.jpg</image1>
<image2>molloy2.jpg</image2>
<image3>molloy3.jpg</image3>
</item>
<item type="school">
<name>Deerfield Academy</name>
<info>
<![CDATA[Text text text...]]>
</info>
<image1>deerfield.jpg</image1>
<image2>deerfield2.jpg</image2>
<image3>deerfield3.jpg</image3>
</item>
<item type="school">
<name>Canterbury School</name>
<info>
<![CDATA[Text text text...]]>
</info>
<image1>canterbury.jpg</image1>
<image2>canterbury2.jpg</image2>
<image3>canterbury3.jpg</image3>
</item>
</menuitems>
</menu>
And this is the AS code:
function DisplayInfo(){
infobox_mc._visible = true;
infobox_mc.content_txt.text = this.location_text;
}
var item_spacing = 18;
var item_count = 0;
function CreateMenu(menu_xml){
var items = menu_xml.firstChild.firstChild.childNodes;
for (var i=0; i<items.length; i++) {
if (items.attributes.type == "school") {
var species = items.firstChild;
var location = items.childNodes[1];
var item_mc = menu_mc.attachMovie("menu_item","item"+item_count, item_count);
item_mc._y = item_count * item_spacing;
item_count++;
item_mc.species_txt.text = species.firstChild.nodeValue;
item_mc.main_btn.location_text = location.firstChild.nodeValue;
item_mc.main_btn.onRelease = DisplayInfo;
}
}
}
var squirrel_xml = new XML();
squirrel_xml.ignoreWhite = true;
squirrel_xml.onLoad = function(success){
if (success) CreateMenu(this);
else trace("Error loading XML file");
}
squirrel_xml.load("projects.xml");
Unfortunately the code is still mildly squirrel themed, lol. Could anyone help me to incorporate a way to display the images specified in the XML file at the same time as the project information? I assume i need to make a couple of movie clips on the stage and send the file url information to them somehow. I've tried adding bits of script from a number of tutorials and forums, but i don't seem to be able to make it work...
Thanks!
Ben
Edited: 02/15/2008 at 02:32:16 PM by BeenTheUnseen
Send Variable To Text File...
I'm looking for a way to send the variable stored in a text field to a textfile on the serevr and save it there.
ie the user enters a name and a number into 2 text fields, this is then sent toa textfile (or xml file, etc) and is storedin there for use later.
Any ideas or links to tutorials?
Sean
Send Text File With Flash
I have a Flash app that generates a formatted file, that I want to save/send this file some where, and then using the PHP's shell_exec command to open a program and send it the formatted file. Finally, I want to take the $output from the command and send it back to Flash 8. How do I go about sending the file to PHP and send it to the program through the shell_exec? Thanks for any help.
Send Text Variable To Flash From Html
Hello, and thx if you can help me. here is what i would like to do : put a text somewhere in my html page containing the flash, and send it to the flash so it writes the text in the flash. for example i type kinoko in a form in html and the swf writes "welcome kinoko". if someone know how to do this, help would be greatly appreciated. thx thx thx !
Send FRadioButton Label To A Dynamic Text Box
Howdy,
I'm trying to send the selected FRadioButton Label to a Dynamic Text box with a change handler. I've done all it says in the online help with no results.
You guys explain it better anyway.
Thanks for any help.
Radmo =]
Input Text And Send Email Using Flash Only
Is it possible to create a form in flash with a text field and a submit button that will send an email containing whatever is in the text field to a specified email address when the button is pressed using flash/actionscript only (no external coding)? If so, how or where can I find mor einfo on the process? I apologize if this is an easy answer to find but my internet times out whenever I search the forums.
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
Send A Text Field With The Mail Form?
I only need to know how i can add to a mail form that i have a > text field < called "order" that have a list of products that the user select in the page.
So when the form sends the user information, sends the text field to...
I need to know if this is posible or not -
sorry for keep posting the same question, but i cant find this anywhere!!
[MX04] Text Component- How To Send Data
All my variables are passing on list and combobox data but not anything with a text field component or text area component, please help!
my_lv.the_detail = quote.getValue();
returns "undefined" whereas the comboboxes work:
my_lv.the_data = daData.getSelectedItem().data;
and yes I tried
my_lv.the_detail = quote.getValue().data;
Please help!
[F8] Send Data (stats) From Flash To Text Or DB
Hello,
I am working on a Flash project that will run on a local computer (not on the net) in a museum.
Is there a simple way to have some ActionScripting send out some statistics (basically a hit counter) to a text file or Access DB?
Basically, I want to be able to look at a text file every couple of months and see how many people went into a certain part of the program or got something right/wrong.
Anybody done this? I thought a "high score table" kind of setup might be similar, but everything I have seen has been for PHP on the web.
Any help would be appreciated.
Thanks!
- Kent
Send Text From Web Page To Flash File
Banging my head against a wall with this one...
Trying to put some hidden text at the top of an ASP page (can even be JavaScript) that will fill in a few dynamic text fields in a flash file.
Would just use a .txt file but each page needs to have different text using the same flash file.
Have trailed the net all afternoon looking for the answer, found a few tutorials but my asp/javascript/actionscript understanding is so rubbish, can't even begin adapt anything to work:
http://www.asp101.com/articles/flash/
http://www.kirupa.com/forum/showthread.php?t=195460
http://www.smartwebby.com/flash/exte...ta.asp#asp_php
Any help on this one would be greatly appreciated
Please Help Me How To Send Text Data To The Client From Server ?
Hi
I am using FMS3 for streaming live video and text.For that I created two SWF one is "Publisher" ,whic is used to capture video and send text to the FMS3.The next is "Viewer" which is the client application .Now i succeeded in streaming live video.But not able to send text
Please help me how to send text data to the client from server ?
Netstream.send Only Text Messages Or Any Type?
In Netstream.send() documentation it says: "... arguments — Optional arguments that can be of any type."
In the documentation to the Netstream class it says "You can also use NetStream objects to send text messages to all subscribed clients (see the NetStream.send() method)."
I tried to send a Rectangle with Netstream.send:
Code on Sender:
var rect = new Rectangle(1,2,5,5);
nc.call("serverShowRect",null, rect);
Code on Flash Media Server: (FMS 2.0.4)
STREAM_NAME = "myStream";
Client.prototype.serverShowRect= function(msg)
{
myStream = Stream.get(STREAM_NAME);
myStream.send("@setDataFrame","onRectangle",msg);
}
Code on Client:
function onRectangle(infoObject:Object):void {
trace ("Rectangle received.");
trace ("tracing properties:");
var key:String;
for (key in infoObject) {
trace(key + ": " + infoObject[key]);
}
try {
var rect:Rectangle = infoObject["rectangle"] as Rectangle;
trace("Rect as rect:" +rect);
}
catch (error:Error){
trace(error.message);
}
}
The function onRectangle() ist called ok. The infoObject's properties can be shown by trace. But I cannot convert infoObject into an Rectangle. var rect will be either null or I get an type-conversion error.
Does anyone know how to send other data than Strings using Netstream.send()? Or can one actually only send Strings using FMS2 ?
Send Vars To External Text File
hi,
Can I send variables from flash movie to external text file.
For example:
I have one Flash file: in that I have a text field with instance name "content" . I will load some text from the external text file which has got the varialbe name "content".
Now my doubt:
in flash movie if I type some text in the text field and click on the button, can I send this text to the external text file?
is there any way of doing it by using pure inbuilt scripts of flash without the combination of coldfusion or javascript.
Thanking you,
Prathap
One Dynamic Text Field And Send Mail, How?
Hello,
I have one dynamic text field and one button in my movie like newsletter.
I want to send into my mailbox the value of the field. Just need to know the button actionscript and the php side.
Any example please?
Thanks
Send Vars To External Text File
hi,
Can I send variables from flash movie to external text file.
For example:
I have one Flash file: in that I have a text field with instance name "content" . I will load some text from the external text file which has got the varialbe name "content".
Now my doubt:
in flash movie if I type some text in the text field and click on the button, can I send this text to the external text file?
is there any way of doing it by using pure inbuilt scripts of flash without the combination of coldfusion or javascript.
Thanking you,
Prathap
[F8] 'send' Button In Contact Form, AND Text Not Showing Up
<---- that's me right now....
I've bought a flash template like this one, http://www.shotstudio.com
I was able to figure out most of everything, but now I am stuck on 4 things:
how to add more pictures to the galleries rather then just 5
how to get the stupid 'send' button on the contact form to work
how to get the biography text to show up when i click biography from nav bar
and the same issue with the 'about' text.
im not really sure how anything was created cause i bought a template.... i'll try to answer any information possible to help anyone help me... pretty pretty please... sigh
(kum-bi-ya! )
How To Send Flash Quiz Score To A Text File Thru Php
Hello, someone probably answered this kind of questions before, but having little knowledge of php really makes it hard to figure out the right solution So here's my question:
I created a simple 10 question quiz, the player gets a final score at the end. The quiz will be hosted on a website (which already has php installed and working), it would be real nice if the scores can be written to a text file. I've tried every example I could possibly find on the web, and no luck. I don't want to send the data back to Flash, I only want to send the Flash scores to a text file on the remote server.
How can this be done?
Thanks!
How Can I Have Multiple Input Text Fields Send To My Email?
im self taught amature flash designer and the last piece to my website is having all designated input text fields go to my email on the one touch click of a designated "send" button.
i cant figure it out. basically what i have is multiple input text fields all in one keyframe that i want from the click of my send button go to my email within flash. any help would be greatly appreciated.
How To Send To Send An Action Between Browser Frames
my doubt may look silly. but pls help me.
I have a left frame with a swf movie containing buttons. And when when I click the buttons I want the movie in the right frame to go and play a particular frame.
how do I do this?
Send Real Fax/send Pdf In Mail, Using Flash
Hi, I am a moderate flash designer and mostly make animations. I don't work with actionscript too much so I really need your guys' help. I need 2 things.
First: I am making an internet fax demo where I want someone to enter their email in a simple text box, click send, and it will email a pdf document to the email address (a sample fax).
Second: In the same demo, there will be another text box, where a user would enter a fax number, hit send, and it will fax them the pdf (or the stuff in the pdf in any other format) to their fax machine.
is this doable using flash? I don't even mind if i have to use a php or a xml file. but in that case, i also want to know what to write in the actionscript to call those files.
I would really appreciate if someone could please help me out with this. I had been searching all night, i found some actionscripts but have no clue what they mean.
How Open Mail Client, Send Contents Of Dynamic Text Box?
Hello,
I'm stumped on this one. I have three input text boxes. I want to create a 'submit' button that emails the contents of these boxes to myself.
I have no idea where to begin with this. Can anyone point me in the right direction? No need to code for me, just give me some ideas on how to approach this one... pleeeeeezzzz... =)
One-way Text Chat - Send Message To Specific Client Or Moderator
We need help to modify the chat component so that when a client sends a message it only goes to the moderator. The purpose is for a live video presentation where we are allowing the attendees to ask questions through the chat component. Like a Q&A session. We don't want the other attendees to see the questions - only the presenter/moderator.
If we can allow the clients to see their own questions (in the chat log) that would be nice but not all that necessary.
LoadVars.send Doesn't Send..
Hi people, It's a LONG time since my last Flash application, I'm just catching up.
I'm trying to build a Flash "driver" for a serverless chat client (this means I'm making it work with a database and a php script, but no socket server, as I don't have the money to have such a hosting that let's me use one).
Anyway, what I'm trying to do is to get Flash to query the php script, sending some data (like channel id, user id etc..) and retrieve the new messages.
I have debugged the php script and I can assure the problem is not there.
The script prints whatever request arguments it recieves into comments in the response page.
What I'm doing in flash is:
code:
Request = new LoadVars();
Request.my_var = "foo";
Request.send("http://blablabla....php", "_blank", "POST");
The darn thing doesn't send anything to the php script.
I've already seen that it is possible to add variables to the url string, and they get passed to the script, but I don't want to get so dirty...plus I want to use POST, because of potentially long messages being passed.
Does anyone know anything about this?
Gosh I have it when Flash comes to such stupid problems.
Php rules!
If I don't get it right within a few hours, I'll just build the whole thing in Javascript. I just don't want to have to build it for each and every browser on the web...
Cheers!
|