Flash Help. Flash Post Text File.
i had a idea for a site, and hell it could be also used in a sig.
where there is a open space for writeing. some one presses submit boom its saved to a text file. and then everyone can read it. but the cool thing is any one can change the text just like that as fast as they want. so basicly i wanna know how to make flash write to a text file.
also. i am a noob to hell when it comes to flash.
if anyone wants to make a fast thing of this i whould be soo happy!
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 07-27-2004, 03:25 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash Help. Flash Post Text File.
i had a idea for a site, and hell it could be also used in a sig.
where there is a open space for writeing. some one presses submit boom its saved to a text file. and then everyone can read it. but the cool thing is any one can change the text just like that as fast as they want. so basicly i wanna know how to make flash write to a text file.
also. i am a noob to hell when it comes to flash.
if anyone wants to make a fast thing of this i whould be soo happy!
FLASH Won't POST Data To Php File
Hello, we are stuck on a problem. We want the flash file to post and redirect to the same php file so the user can see their results. Here is how the creator of this flash function coded it:
Code:
var time:Number = _root.Time;
var name:String = myVar1.myVar1;
function go() {
getURL("http://www.mysite.com/forums/race_complete.php", "_self", "POST");
clearInterval(_);
In the php file I have:
Code:
$name = htmlspecialchars($HTTP_POST_VARS["name"]);
$time = htmlspecialchars($HTTP_POST_VARS["time"]);
However it doesn't display the $name or $time results they are empty. We have spent over a week trying to figure this out so I figured it was time I asked you guys. Please respond and thanks.
How To Collect Special Characters Using FLASH And POST Them To A PHP File?
Hi all,
First of all (first time here, so I guess I should briefly present myself), I am new, I am not a FLASH nor a PHP pro, but I think I understand the basics. I own a basic website, and its sole purpose is to help me find interesting job opportunities. I'll graduate in biology (see, I'm not a programming wizard, but I hope some of you out there can help me out!) in August.
Now, here is my problem. I have a Flash movie containing a form. The information collected in the form is sent to a PHP file using the POST method. I want my form to be able to collect special characters such as "é", "â", "à", "è", "ê" (French vowels), but Flash does not POST these characters correctly in my PHP file. For example, I receive "Vérification" instead of "Vérification".
I know the problem is not coming from the PHP file, because my form used to be an HTML form called by my Flash movie. This HTML form could send the special characters correctly to my PHP file and the results were e-mail to my account. I think the actual Flash form would need to encode the special characters (or all characters) in UTF-8 format before they are sent to my PHP file, but I don’t know how to do it. Could anyone help?
To put you in context, I have 8 textfields named "newfname", "newlname", "newinstitut", "newmail", "newsite", "newemail", "newsubject" and "newcomment". Because I want some information to be mandatory, I use the following script in my Flash file:
Code:
on (release){
if (newfname == "" || newlname == "" || newinstitut == "" || newsubject == "" || newcomment == ""){
stop();
} else {
getURL("php/form_en.php", "_blank", "POST");
gotoAndStop("scene 2", 64);
}
}
Please let me know if this is not descriptive enough.
Rojito
Post HTML Text To FLASH MENU
IN FLASH 5
I have recently designed a Flash vertical menu....
It looks great....HOWEVER....the department wants to have the ability to
post or to change the text themselves via an input box on a back-end portion of the site...
IN OTHER WORDS they don't know FLASH but like the look and want the ability to change
the text or a word or even a link on the fly by posting the new text to the FLASH MENU.....
Could ANYONE direct me to a link or site where i could review the possibilities of posting or sending
variables from a html or flash page that updates the FLASH menu on a live site?
I would greatly appreciate your input......otherwise i have start over.
THANKS....PLEASE RSVP.ASAP
Adding Input Text To POST URL In Flash
Hi,
I have a simple query. I have been trying to teach myself Flash / Actionscript and need some help.
I am trying to add a mailing-list registration page to a flash site, and i am having problems tagging the 'input text' onto the end of the URL.
Th steps i have taken are:
1. Made an input text box with the instance name 'email'.
2. Added the following actionscript to the submit button:
on(release){
emailName = email.text
url="http://ui.constantcontact.com/d.jsp?name=ccoptin&m=MYNUMBER&p=oi&ea="+emailName;
getURL(url,"_blank","POST");
}
The URL variables work to access the 'Constant Contact' registration page, but it will not tag on the input text at the end. If I add an email address to the actual URL in the code, it works just fine. I just need to pick up the input text.
Have i made a simple mistake?
Cheers
Post Results To A Text File
First of all. I am new to actionscript.
I am developing a quiz game and would like to post the results to a text file on the local computer. Would appreciate any help.
How To Use As3 In Flash Cs3 To Add Dynamic Text From A Text File Into A Flash File
let me start out by saying today is my first day of scripting in flash.
I have a text file text.txt
it contains
text1=hello world
can someone please show me how to display this text in a flash file
i have been searching for this for hours and there are solutions with flash mx and actionscript 2.0 but i would like to see how to do this in as3.
just a simple frame that loads that file and displays it when you test run the program
much apreciated
RC
Help With Making A Flash Form/Saving Text To File/and Displaying In Flash
I'm trying to make a flash movie that has a form (with a textbox, textarea, and a submit button) that would save to a file and display it in a textbox. This is going to be a small site so MySQL isn't required.
I'm trying to do this completely in flash, without any outisde html forms. I know you can use php in flash but I wasn't sure how (and i've searched). And I'm not sure how to go about with making forms in flash. Is this possible, and are there any similar tutorials you could point me to?
Regards
Send Post Data From Flash To Php/mySQL And Display Results In Flash
Could someone explain to me simply how to connect flash with my server and vice versa?
My flash movie takes a var from the URL string:
<param name="movie" value="product_info.swf?products_id=918">
and
<embed src="product_info.swf?products_id=918"...>
Getting the value of products_id is easy but I want to send the var products_id to a php page, do some mySQL on it and return the results to my flash movie. I'm using loadVariables (or sendAndLoad) but nothing comes back. I know the scripts are ok as i've tried to send the vars by getURL("page.php","_blank","POST") and it works but loadVars() doesn't. Thanks in advance!
My Post Clip Doesn't Grab Latest Post Until Refresh Or Next Post
ok, i have a movie that has a posting feature
problem is, when i submit a post, SOMETIMES the clip that handles the posting reads in the text before it has been written to the text file, resulting in the post not being shown when the text is reloaded. it will show if the browser is refreshed, or a new post is submitted afterwards
basically, i'm just loading a text file at the start of the clip and if a post is submitted, i go back and load the text file again
hope that makes sense....any ideas?
Flash Game That Returns Score To A Text File Or A Xml File
Hai,
I am New to Flash dont even know the abc of flash and i have a task thst is i need to have a game in flash that plays with a user name and after the game is completed the score and the user name are to be return into a text file or a xml file in the system.... can this be possible plz hlp me
Configure Flash File By Using Vars From Text File
Hey, I just cant seem to work it out.
If I use:
loadVariables("config.txt", "_root");
trace(content);
with in the text file:
content = 12345
the Tracer just returns "undefined"
while if I use it in a Dynamic Text field, using the var field set to content, it works just fine.
So I tested with:
loadVariables("config.txt", "_root");
test1=content;
test2=54321
test3=test1+test2;
trace(test1);
trace(test2);
trace(test3);
and the trace returns:
undefined
54321
54321
Im getting the idea trace can only handle variables, and not strings, and the text file is read a string, thus I cant calculate with it. Am I right? What can I do about this?
Comparing Strings Of XML File And Text File In Flash
Here is my code:
var words:Array = new Array();
var wordsLoader:XML = new XML();
wordsLoader.ignoreWhite = true;
wordsLoader.onLoad = function(success) {
if (success) {
parseWords();
} else {
trace('Sorry dude');
}
};
wordsLoader.load("words.xml");
function parseWords() {
if (wordsLoader.firstChild.nodeName == "gamedata") {
var rootNode:XMLNode = wordsLoader.firstChild;
for (i=0; i<rootNode.childNodes.length; i++) {
words[i] = rootNode.childNodes[i].firstChild.nodeValue;
}
}
return(words);
}
var myText:String;
loadText = new LoadVars();
loadText.load("codetext.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
for(i=0; i<words.length; i++){
trace(words[i]);"<br>"
var mytext:String;
mytext = words[i];
var code:String;
code = this.code;
trace(code);
if( mytext == code){
trace('SUCCESS');
}
}
}
}
two strings 'code' and 'mytext' are not gettin compared...
need help..
Export Text From A Flash File Into A Separate File?
Is it possible to export text from a text field, which has been created in Flash and export it into an external file such as a text file or Word document?
The idea is that information will be collected by the user into a text field within the swf. Hopefully, this information can then be exported into an external file which will allow the user to work on and edit at a later stage. It needs to be a separate editable document. Is this possible? I'm using Flash 8.
Any help would be greatly appreciated.
Thanks,
Philippa
[F8] Can Flash Load Text Without Changing It And Display Whats Raw In The Text File?
just curious... I just want flash to read a txt file and do nothing to it... just echo it out loud and display it in Flash...
is there a way to do this?
like if the text file had "the quick brown fox jumped over the lazy dog" in it and NOTHING else... no variable syntax or anything..
is there a way this can be done?
I appreciate anybody who can help
Loading External Text File Into Flash Using Links From Dynamic Text Field Link?
I am using a dynamic text field to load in .txt files with html tags. I have a couple "click here" type links that I would like to use to load a different .txt document into the same dynamic text field instead of a url link like it does default. Is this possible? I'm sure I could put a button over the text since its not long enough to need a scrollbar but I would like a more dynamic and flexible way to do this if its possible.
Thanks
External Text File Used In Flash Text Field
hi,
I am working on an fla project that loads an external text file. The problem is, when I put a return into the external text file, I get a double return in the flash textfield. (I would like the double return in the flash textfield to take the single return from the external text file, and not create a double return.)
My question is, can I use a code in my external text file to make the flash textfield behave correctly. Or, is their some sort of flash setting that will fix the problem.
can you help?
thanks
Updating Text In A Flash Site Using A Text File
I am setting up a site that will be maintained by workers that have little or no knowledge of using Flash. The site will need to be updated on a regular basis but the information will not be apparent until the day. What I would like to do is allow a user to update a text file, which will subsequently update the site. Is this possible? Or would I require Generator to do this?
The site is running from the hard drive, it is almost acting like a program. I would like to keep them away from the ActionScripts if possible, but if they had to kep them away from the important scripting.
Not the easiest or straightforward of questions, but I would appreciate the help.
Steve
How Do I Pull Text Into FLash MX Froma Text File?
How do I pull text inot FLash from an external TXT file?
What I want to do is create a nice flash page and to update it all I would need to do is change the text in the TXT file.
How do I do this. I hae played around with the getvariable actions but have had no luck.
Can anyone Help?
UTF8 Text In Flash Using An External Text File
I have a project where i have to import large amounts of Farsi text into flash, after searching i found this script that does the job but doesnt have an option for setting the text direction to "right to left". can some one modify thae script to do that? thanks amigoz!
-----------------
String.prototype.text2Html = function (fontSize, fontColor, align, fontFace) {
if (fontFace == null) {fontFace = "_sans";};
if (align == null) {align = "left";};
if (fontSize == null) {fontSize = "10";};
if (fontColor == null) {fontColor = "#333333";};
return (((((((((("<p align="" + align) + ""><font face="") + fontFace) + "" size="") + fontSize) + "" color="") + fontColor) + "">") + this) + "</font></p>");
};
unicodeData = new LoadVars();
unicodeData.source = "text_files/demoText.utx";
unicodeData.onLoad = function(){
_level0.display = this.data.text2Html("+1", "#333333", "left", "Verdana");
}
unicodeData.load(unicodeData.source);
[F8] Live Updating Of Text In Flash Via Text File?
I'm creating a Flash document for the company I work for that displays a Top 10 list of the sales people. I'm running it locally off a PC that's connected to a 37" inch LCD mounted in our office. It's sort of a way to raise awareness about everyone's standing throughout the month and to encourage competition.
There's three scenes in total. The first displays the top 10 sales people from the previous month. The second displays the top 10 for the entire year to date. And the final displays the top 10 for the current month to date. The problem is that they want this leaderboard to be updated daily. I'm hoping there's a way to automate this in some way.
I was thinking that it might be possible to tell Flash to pull sales numbers and sales person's names from a locally stored file. Is there any chance something like this is feasible? I'm relatively new to Flash but I'm a quick learner.
Any and all help will be greatly appreciated!
Scrollable Text From A Text File In Flash 5
Hello
I would like to make some scrollable text using text from a .txt file. I dont really need an actual scrollbar, i just need the up and down buttons. I have looked at various tutorials and looked at other posts but am still confused. Most of the tutorials i've seen have been for Flash MX and I need one for Flash 5. Could anyone please explain to me how i could accomplish this but could you please explain in basic terms as I am quite new to flash and am already getting confused. Any help would be very much appreciated
Thank You
Flash In Php Post ?
hi all,
is there a way of getting a flash object to work in a php post ? i want to put some free lessons on how to do a particular form of juggling/dance/martial art onto a forum im making and just cant seem to find anyone that can even tell me wether its possible or not.
Many Thanks
GS
Flash Get Post From Php
Hi guys I come up with something I need to know how to get and post data from php and php from mySQL. Is there any tutorial or references from where I can learn flash php integration. thnx guys help will be appreciated.
Using Php's GET And POST With Flash?
I've read on php, I have some basic idea on how to use it, but I need two things.
1 - How do I go to a php file with a GET or POST in it? As in, myfile.php?do=Hi
Would I do a simple "getURL("myfile.php?do=Hi","_blank");" ? Or do I do something completely different?
2 - Once I get to myfile.php?do=Hi, how do I made the "do" variable inside my .swf? I want my flash file to be able to use "Hi" in order to show something.
Thanks for any help!
Post-it On Flash
Some one can help me with this?
I nedd a note area... the user put de note on any place of scene e type our
comment...
After this the user press a button named save...
All information is saved on MySQL database using PHP including note
position...
Anyone can send me a link with some informations about can i do this?
How To Post A Flash Sig...
Hi all, I just wanted to paste a flash swf movie as a sig and I was wondering if anyone can supply me the html. Akin to <a href....> <img...>. Thanks in advance.
How To Post A Flash Sig...
Hi all, I just wanted to paste a flash swf movie as a sig and I was wondering if anyone can supply me the html. Akin to <a href....> <img...>. Thanks in advance.
POST To Flash
Hey guys I am trying to pass a variable from a PHP script to a flash file running actionscript 2. HELP!!! Can loadvars() work for this? Does anyone have any examples or resources I could check out? Thanks
Post From Flash To .asp ?
Hi guys...
I have an assignment in school, where i'm to create a site that gives players an opportunity to contribute to a new add-on for World of Warcraft.
On the form i want to have a pop-up with a map (flash) where you can choose location.
See form
The location you choose should then be posted to the .asp page (form.asp) in the location textfield, so that when you submit, the location you chose on the flash map is sent along with the other information.
- Is this possible?? And if so, how do i post the info from Flash to the textfield
Any help will be greatly appreciated
Asp And Flash Instead Text File
A little help here
I have a movie reading from a text file but I want to upgrade it, to read from a database using an asp file
I already done with the asp File and this is the code (using the URLEncode)
<%
While ((Repeat1__numRows <> 0) AND (NOT rsmunicipios.EOF))
%>
<% Response.write "&" & Server.URLEncode(rsmunicipios("Municipio")) & "=" & Server.URLEncode(rsmunicipios("AdiccionTotal")) & "&" %>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsmunicipios.MoveNext()
Wend
%>
the flash is reading this asp file and is displying the data on dynamic text box, perfect
I wish to know how to use the content of Dynamic text in my movie and go to
xFrame. example if in the Dynamic text have the number 89 then I
want to go to frame 89 from xMovie. The Dynamic text have obtain the number from a variable stored in a external asp file
this is the code that I use to display data on my dynamic text box the dynamic tex box is using the var property
porcientoAdjuntas.text = Adjuntas;
etc etc etc... this work perfect
the problem is when I take the content of Dynamic text and tell my movie go to stop
xFrame. example if in the Dynamic text have the number 89 then I
want, go to stop frame 89 from xMovie. The Dynamic text have obtain the number from a variable stored in a external asp file
this the code that I use in the text file version but now when I use the asp file it doesnt work
CarolinaColor.gotoAndStop(Number(Adjuntas));
Get Text Into Flash From An .txt File?
I really need som help with this guys,,
Im building a new webpage and we will have many ppl updateing it.. Ppl that don´t understand nor have flash...
Now i need to have text in my swf that they can update. I know this is possible to do just by letting them update a txt file on the server, and then flash imports the texts and adds the font, color and effects afterwards.. But how!?!?!?
Been looking around here and in flash for 3 days now but i cant seem to find anything..
Can anyone please help me?!?!
=0)
Flash To PHP To Text File.
Anybody know where I could locate a prebuilt PHP script that will write Flash variables to a text file?
Thanks a million!!
Text File In Flash Mx
Any could tell me
How can you get the text to display in flash from a text file?
Thanks
Ecinele
CSV , Text File Out Put From Flash Exe
Hi,
I want to save data from flash exe to CSV file and text file . OS is XP and there will be no server connections. Is this possible. Please help.
Thanks,
Manu
Flash To Text File
Hi Guys,
I am looking for a way to write text to a text file via a flash movie. I realise that this has been covered a few times but I have never found a solution.
I have a text file with the following info:
&ButtonName1=freeserve*&url1=http://www.freeserve.com/community/chat/?linkfrom=Community&ChannelMenu&ButtonName2=a1*chatrooms*&url2=http://www.a1chat-rooms.com/&ButtonName3=chatzone*&url3=http://www.chat-zone.com/
The text file is loaded into the flash movie and each ButtonName and url are used on a button. I would like to be able to create a flash movie that allows each variable to be changed via inputing a new title /url into a text filed that is then saved/send to text file (maybe via a perl script).
I have found an online tutorial that demonstrates what I am after but doesn't work (no author support). I am not literate enough with perl to know what may be the problem. but it does show what i would like to do perfectly. The (none working demo) can be found here http://www.flash-db.com/PerlTut/
Does this make sense if not give me a shout and I'll try and explain better.
Thanks
How To Get Text Out Of A XML File And Put It Into Flash?
How can i get text out of a XML file and put it into flash?
I know how it works with pictures only not with text. :S
I want to insert this code into flash.
Code:
CODE<?xml version="1.0"?>
<Informatie>
<Auto>
<Auto>Toyota</Auto>
<Shortd>Testje</Shortd>
<Longd>Testje</Longd>
<Prijs>4543</Prijs>
</Auto>
</Informatie>
Flash/PHP POST Vs GET In Netscape
I'm having a problem when calling external PHP scripts in Flash using load variables when viewed through Netscape...
When I use POST as the method, none of the variables are passed to or from the script...
When I use GET as the method, the script seems to be called twice and the output is doubled...
If I use neither, and attach the variables to the end of the address in a query string, the output is quadrupled...
In IE, POST works fine, but the results from GET or a query string are the same as above.
Any ideas?
Send And Post In Flash Between 2 Swf;s
I'm sander working on a deaf page for the deaf community, and i like flash alot, but i'm still having troubel with sending variables,
what is supos to happen :
check : http://www.globaldc.nl/flash
--> the first gap in the bridge will load another swf ( not in a movie clip but in level 4
now if you trigger in that movie clip the woman the paper and the rose the stone at the back of the window will drop,
i want to communicatie with the main flash file so that the gap in the bridge is filled with a solid rock, ill have the movie clip made , but how to trigger from a level 4 loaded *.swf ?
hope someone could help me.
tnx
POST From Flash In Netscape Vs. IE
Greetings -
I am using a function in my Flash application to post a variable value to an .asp page, in order to call up that page in a new window with information, pertaining to the submitted variable value. Works just fine in IE. However, in Netscape, the variable posted by Flash does not appear to be received by the .asp page.
Anyone seen similar problems and/or know of a solution? Thanks much!
|