Help With User Text Input
i have a flash login screen and need to make it so the user can type tier name in the box provided, any genius out there to help? thanks!
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 05-04-2007, 10:39 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
INPUT TEXT - How To Restrict Number Of Lines Of Text A User Can Input Into Textbox
In a flash form I've created I have a input textbox. I don't want the user to be able to input more than 7 lines of text. Is this possible to do? I know that I can set a value for 'max char', but this is not useful for me -- it's essential that the user cannot input more than 7 lines of text.
How can I limit the number of lines a user can input into a textbox?
Thanks!
Glenn
User Input Text
Help!
i'm re-designing a game at the moment, i need to allow the end user to be able to enter a stake, for e.g £10.00 into the space provided.....
i'm having a blonde day and cant think how to do this
Anyone any thoughts please
User Input Text Help
right now i have a movieclip that is loaded onto the stage and can be dragged and dropped anywhere on it. the problem is that the mc has an input text box in it and i can't click it to type anything it just reads it as a drag n drop mc. any help??
Passing User Input Values(text Form) Into A Text File
Hey,
I've created a form-like input to receive user input in the form of text in a frame. Now, I would like to pass that input into an external text file. I hope to get help to implement this. Let's assume that this app will be only used locally and not over the web.
Thanks
Input Text To Capture User's Name...
to display throughout flash demo???
i'm doing this sales demo and i want to be able to have the user type in their name, then when they click "enter" button, a widget will be animate in that says "Steve is logged in". this is purely for display, i don't need to capture any info. if anyone can help me figure this out, i would really appreciate it! please email me if you need more info. thanks!!
darin
How Do You Evaluate Text Input From User?
I posted this to the general help discussion forum and received no replies. Apparently no one understood my request or was interested in the posting. I would greatly appreciate your help.
Can someone please explain why this isn't working. I would like the user to enter the letter for example, the letter a, in an input box with the instance name boxa. When they press a button, I would like _root.great to go to the second frame. The code below is within the button that they will press to check their answer.
In short, how do you evaluate an input text box for the proper text from the user and then if the input text is correct/incorrect, have an event take place. (e.g., tellTarget event etc)
on (release) {
if (boxa==a) {
tellTarget ("_root.great") {
gotoAndStop(2);
}
}
}
Thanks bunches.
tnbanjoman
I'd Rather Be Giggin!
[F8] User Input Text Questions..
I have a little program where the user will input a question in an input text box and click a submit button. Based on the question asked a dynamic text box will answer it.
right now it is set up something like:
user: What is your name?
Flash: My name is Jimmy.
I have a couple questions to help make this better, as everything "works" right now...
1) What can I do to make the user input text transform to all lowercase letters, so that if they type: "WHAT is YOUr namE?" Flash will see: "what is your name?" ?
2) Is there a way to set an array up full of questions AND answers? Right now I am using a metric butt ton of if/else statements. I would prefer to use less code. I thought of an array with questions and another with answers, and if input text == questionArray[4] dynamic text will show answerArray[4] and so on, is that possible?
3) What about a key word criteria, instead of exacts? Like right now the question "What is your name?" MUST be entered exactly like that to generate the response. But some people talk differently, so a user might type "what's your name?" or "do you have a name?" Is there some way I can have Flash ignore certain words (What, Do, How, your, etc...) and focus only on the rest?
I know some of these (#3) may be very complicated, or impossible, but it never hurts to ask, right?
Thanks for any/all help with this!
~MoN
Using Text Input By User In Context
Hi there,
I have a movie where the user inputs their name and the beginning of the movie into an input text field.
I want to use this variable in context later on in a text box that loads dynamic text in another frame: "lorem ipsum... <captured variable> .. lorem ipsum"
Any ideas please?!
thanks
Using Text Input By User In Context
Please help! This is an urgent project so clear instructions would be very helpful!
1) In the first frame of the movie there is a movieclip which contains an input field and a submit button. The movie clip has the instance name "enterName_mc" and the input field "inputName". When the user clicks the submut button or presses enter, the name entered into "inputName" needs to be captured as a string or whatever.
2) After the second frame "enterName_mc" disappears on the root timeline and then a new mc called "errorBox" appears on the 20th frame.
3) in "errorBox" there will be a dynamic text field that needs to display the following text "Welcome <name captured from inputName> to our website"
Basically I need to know how to capture the name, export it to the _root timeline, load it into errorBox and then insert it into a dynamic string of text!
If this can't be done, and it needs to all be inside the same movieclip the same questions apply.
Capture User's Name In Input Text
i have a question..please help me
i m doin a page that allow user to enter their name,and user's name will be view in other frame....
i dunno how to 'capture' user's name...
Text Effects From User Input
I just got the new Flash MX04 and downloaded the cool RedGiant Timeline effects.
Is there any way to create these effects on the fly from text a user types in?
I would like to have the user type in a phrase and have it curve, then allow the user to drag and resize it.
Can this be done yet?
I'd gladly pay you on Thursday
for a hamburger today!
IS There A Way To Save Text A User Enters In A Input Text Box?
I'd like to create a movie that allows for cumulative input from a user.
That is, perhaps there are instances of input text boxes stacked in a corner of the page.
Then the user comes along, grabs one and pulls it p and writes in it.
Then that text is saved so the next user sees it AND can respond to it.
Maybe this can't be done or can't be done by a beginner?
Thanks in advance.
How Can I Reset Input Text After A User Has Typed Something?
I've got a form in my movie that lets visitors send me e-mail. I wanted to put a reset button to give the user the option to start over (much like many HTML forms). I've tried creatinge a new keyframe and labeled it falsestart. On the timeline it appear before the keyframe where the visitor is typing. I then tried setting the reset button to gotoAndPlay ("falsestart"); I thought it would reset the input text boxes, but it didn't work. Any suggestions on how I could get this to work would be greatly appreciated.
Forcing User To Put Text In Input Boxes
I am attempting to make input boxes mandatory to input text before going to the next frame of the movie.. has anyone done this?
I tried the javascript code (below) on the timeline to try to get it to warn you if you dont put anything into the input box but it seems not to work when I put it on the timeline frame that the input boxes reside on...
if (textbox.text == ""){
getURL("javascript:alert('message here')");
}
What I have is next buttons that go to a next frame......but I dont want them to be able to click on that next button until they fill out text into the input boxes......
I have attached a .fla file to see what I am aiming for...
[CS3] Run User-entered Actionscript From Input Text Box
i am using actionscript 2, so any code examples need to be in that... unless it is only something which can be achieved in AS 3, in which case it would be impossible to incorporate into my current project, and i also have almost no knowledge of AS 3, but it would still be useful to know
Hi... i have been trying to research this but so far i haven't been able to find anything on the subject
basically... i want to have an input text box, for example with a variable name of 'enterscript' and when the user clicks a button i want whatever actionscript has been entered into the 'enterscript' text box to be run as if it were the on (release) action of the button
this would then mean that the user can write actionscript and see what it does to the movie as they do it, which would be extremely useful for me, and it would also mean that you can dynamically change what the button does... any suggestions???
User Changed Fonts In Input Text
For some project for school, I need the abbility for users to change the font, fontsize (and perhaps even fontcolor) in an input textfield.
The text the users type in the textfield, will come on an e-card, so the changes they make in the input textfield, also should apply to the dynamic textfield on the e-card.
Since I'm just starting at AS, I do not know exactly where to begin or how to pull it off. Anybody who knows how to do it?
Forcing User To Put Text In Input Boxes
I am attempting to make input boxes mandatory to input text before going to the next frame of the movie.. has anyone done this?
I tried the javascript code (below) on the timeline to try to get it to warn you if you dont put anything into the input box but it seems not to work when I put it on the timeline frame that the input boxes reside on...
if (textbox.text == ""){
getURL("javascript:alert('message here')");
}
What I have is next buttons that go to a next frame......but I dont want them to be able to click on that next button until they fill out text into the input boxes......
I have attached a .fla file to see what I am aiming for...
[FMX] Format User Input Text With Punctuation
Hi,
The tutorials on your site are terrific--thanks! I'm fairly new to Flash (over the last few months I have followed Actionscripting in books and online tutorials and can do basics by essentially following the recipes, but am having considerably more problems putting it all together for my own program).
I am trying to create a program for my students that will take their text input in fields like author, title, publisher, date, place of publication, etc. and output bibliography citations in the proper format (complete with punctuation). What is the best way to handle the text formatting to add punctuation and make the citation entries? Your text tutorial on color and other properties is very good, as well as the input text that returns the words, but how do I go one more step to add my punctuation to the user's input?
Thanks,
Sue
Expand An Input Text Box As User Types
Is it possible to expand an input text box as a user inputs text? Meaning the border of the input box will follow the width of their text, all their "returns", etc.
[FMX] Format User Input Text With Punctuation
Hi,
The tutorials on your site are terrific--thanks! I'm fairly new to Flash (over the last few months I have followed Actionscripting in books and online tutorials and can do basics by essentially following the recipes, but am having considerably more problems putting it all together for my own program).
I am trying to create a program for my students that will take their text input in fields like author, title, publisher, date, place of publication, etc. and output bibliography citations in the proper format (complete with punctuation). What is the best way to handle the text formatting to add punctuation and make the citation entries? Your text tutorial on color and other properties is very good, as well as the input text that returns the words, but how do I go one more step to add my punctuation to the user's input?
Thanks,
Sue
How To Have The User Change The Font Of Input Text
i posted this before but i think i may have phrased it incorrectly...
"i am stuck...i am working on an engine for a site that will let people choose a pencil color, choose a font, and then choose the color of the type. i've gotten everything to work, but i have one thing that's irritating. the code that i've used to change the font is this:
on (release) {
font2 = "<font face="Times New Roman" >Type here</font>";
}
- on a button targeting the input text field "font2". the problem is, this way whenever the user changes fonts, they have to re-type what they already typed. is there a way to just change the font of what's already there without them having to start over? any help is much appreciated!"
UPDATE: what i want to happen is, the person types in what they want displayed, and then can choose different fonts to see what it will look like. is there a way to target the input text field to display what's typed there in embedded fonts?
here is the source file: http://crimsonmedia.com/images/pencil.zip
Parsing User Input From Text Field
I have an input text field into which a user types their answer to a question. The answer is "x, y, z" but can be upper or lower case, may or may not have spaces in it and the letters can appear in any order, i.e. "y, z, x".
Is there a way I can take the input, remove the white space, lowercase it all, tokenize the input and then test to see if any of it is correct?
I've done this in other languages but never in actionscript... I can't find a decent tutorial.
Any help / pointers appreciated thanks
Checking User Input Versus A Text File
My movie starts with user input field and submit button. I am using loadvariables to load a bunch of variables off a text file. these variables are called: valid1 valid2 valid3 etc. These are codes that are valid. THen when the user inputs a code into this input field and hits submit, i need to write a script that checks if what the user just entered is one of the valid variable on the text file we just loaded. They will get a message telling them wether or not the code they entered is valid.
Sounds easy right? I thought so too, then i spent way too many hours on it. Help would be appreciated.
//D
Detect When User Leaves Text Input Field, How?
Hi,
I will start building some forms in flashMX soon.
I want flash to do the client-side-validation: check to see if requiered fields are indeed filled.
I can do the validation when the user submits the form. No problem.
However I want some fields to evaluated immediately when the user leaves the field.
So assume there is a input text field with var = FirstName which is requiered!
When the user selects this field and leaves it again without filling it in, I want an action (warning) to be done.
How can I detect when the user leaves the field?
Displaying User Input Into A Dynamic Text Field
Hello everyone. Hope you are all well.
Have a bit or of a problem.
I have imported and XML file and using the code below i am able to store comments against a particular node.
//istener object for tree
var lo:Object = new Object();//a custom object called "lo" is created.
lo.change = function(evtObj:Object):Void{
var itm:Object = mytree.getSelectedItem();
if(itm.savedComment != undefined)
newcomment.text = itm.savedComment;
else
newcomment.text = "";
}
mytree.addEventListener("change",lo);//everytime the tree component generates a change event
//from the user selecting a different node the listener code runs.
//listener object for submit button
var lo2:Object = new Object();
lo2.click = function(evtObj:Object):Void{
var itm:Object = mytree.getSelectedItem();
itm.savedComment = newcomment.text;
}
addCommentbtn.addEventListener("click",lo2);
All i need now is that whenever the user clicks on a button ("viewComment") ALL the comments already submitted are presented in a dynamic text field.
ANy help is much appreciated. Thanks.
Posting User Input Text Field On My Page
Hi, I need help with how to allow users to post to my page with an input text field. Can anyone help me out or does anyone know a good tutorial that will help me?
Thanks! I'm using Flash CS3 Actionscript 3.0.
Check User Answer By Checking Input Text Box
how do i check the answer that enter by user....
the marks is given by checking whether they user key in the keywords or not...
i m thinking of using string method...but i not able to do it...
pls help....
Help Multi User Name & Pass For Input Text Field
Here is a copy of the code Im using but I cant seem to ad more usernames or passwords. Please help, many thanks.
on(release, keyPress "<Enter>" ){
if(userEnter.text == "member" && passwordEnter.text == "8871"){
_root.gotoAndPlay("success");
} else {
_root.errorMessage.gotoAndPlay("start");
}
}
[MX04] Enabling User To Choose Input Text Font
Greetings. I am in need of a way to enable a user to be able to choose and change the font within a predetermined text box. The finished flash projector will need to be able to go into the user's font folder figure out what font the user has avaiable to them and must display them within a list for the user to see (as would any word processing or design program). When the user chooses the desired font the input text box will start displaying anything typed in as the chosen font. I have no idea where to even begin
(I'm not very good at explaining this stuff so if clarification is needed just ask)
How To Make An Input Text Field Trigger An Action When User Clicks On It To Write?
aHello everyone!
I'm trying to achieve something that I'm sure it's not that complicated, but unfortunately I have not clue how to do it.
I have created some text fields. And what I want to do, it's that when the user clicks onthem, in order to start writing, I want a specific movieclip to dissapear.
This could be achievable if I knew how to make the textfield behave like a button; but I don't know what code I need for this, as onPress it's not working at all.
Any help would be appreciated.
Cheers!
Getting The Input From A User From A "input Text Box"
Title speaks for itself, for anyone who didnt read it
I need to get the value entered in a input text box...
textbox name is called
entertext
anyone know how I can do this?
I also need to know how to remove any entered text from that input box
Tracking User Input In Dynamic Input Boxes
I need to track if a user correctly typed what I have asked them to. If they do, they will go to the next step, if not , they will be prompted what to type. I set up an input text box with the instance name "name_txt" I have put this code in the first frame of the main timeline.
code:
var theName = "";
name_txt.onChanged = function(){
if (theName == "ron jones"){
trace ("correct");
gotoAndStop(2);
}else{
trace ("Please type ron jones");
};
trace ("My name = " + theName);
};
stop();
it tracks the users keystrokes, but when you type the final letter. the trace on the variable shows that it equals "ron jones" but the file does nothing, i put in a trace statement right after the "If" statement, apparently this never = true, because it is going right to the "else" statement. any ideas on how to accomplish this?
any help would be great
IMS
User Input Variables (Using Input Boxes)
Hey everyone! I need to call on your wisdom for something, probably won't take a minute!
I've had a good hard look in the forums, and all over the internet, couldn't find anything about this.
Basically, I need to be able to let a user put in a value into an Input box, and have flash turn it into a variable, and be able to use that as a property, for lets say, line thickness.
Example:
-User writes 3 into the text box. (input box's Instance name is line_thickness)
-The movie is one frame, so apon enter frame, flash sees it, and turns that "3" into a variable.
PHP Code:
var myline_thickness:String = String(line_thickness);
-Further down the code, that variable is used.
PHP Code:
line.graphics.lineStyle(myline_thickness, 0xFFFFFF);
I've tried using an ouput box to see what flash sees the variable as, and it only says: [object TextField]
I hope I've made it as clear as possible!
Thanks in advance to any replies!
Input By User
Hey,
I am making a program witch requiers the input of the user by keyboard. Dose anyone have a .fla or a good site that explais how to do this? The input will require the 4 deritional keys. Thanks!
Input By User
Hey, I said this in my other poast, but if you didn't get it here is my question. I need me flash movie to goto the next frame when the spacebar is pushed. I would greatly appretait it if you could help. Thanks a lot...
P.S. If you have a .fla that has the code on it, please poast that, thanks
User Input - Please Help
Hi,
i have created a flash movie that shows the layout of a computer room. I want the user to be able to draw lines between these computers, hence showing they are connected.
How can i allow the user to to draw various lines between the computers and choose the colour of the line they want.
Thanks
User Input - Please Help
Hi I have a flash website that i am designing for my school swim team. I need to set it up so that there is a form that they can fill out with current stats, pictures etc after each meet. Is there any way that I can have a page where the client types the meet name, stats, description and links to pictures. When he submits it, it automatically creates a page with the information he included in the form along with the pictures, similar to the way Ebay works. This is very urgent and i would greatly appriciate any help. Thanx!
austin
User Input
I'm hoping someone can help me. Here's what I'm trying to do...
I'm making an interactive chemistry education page, where the user drags different elements onto a scale.
The scale displays the weight of the element and then the user guesses what the element is, based on it's weight.
The user then enters the name of the element into a text field.
If the name is correct, a message saying "correct" is displayed.
If the name is wrong, a message saying "try again" is displayed.
I know how to make the elements draggable and how to have them perform a hitTest with the scale and display the weight...but how do I make Flash compare the user input in the text field with the element currently on the scale?
I appreciate any help I can get with this...
ps. I'm using Flash 8
How-to :Making Something Appear According To User Input...
Ok i wan to noe how to make something(lets say the number of textboxes)
appear according to a user input.
OK..LEts say the user enters 3 in provided textbox...how do i make another SAME
NUMBER OF TEXTBOXES TO APPEAR?
So amt of textboxes shown out depends on the user him/herself and would display the
number of textboxes that he wants only!
And also how to do this whole process with objects like a circle or squares?.....
PLS help mi....
what do i do?
how to do it?
I am quiet new to flash so i hope u dun mind and give me abit more detail.
Thx for reading...
User Input Info
On my website I would like to have an input box where the end user enters an email address and clicks send. It would then get sent to my email address. I am not too familiar with cgi scripts but I know my host supports it or if there is another way to process this I would be interested. Any help would be appreciated.
User Input : Tell Target
I have a text feild with variable name "userinput".When the user types in a keyword there,I want a movie clip to play.I got this right so far.
But i have 100 such movie clips,how can i make a different mc play when the user types in different names.
if else if action is not yielding the reqd result.
I hope to make this an alternative to regular search options found on websites where yo ureference an enternal cfm or jsp file.
Any ideas how this can be achieved...some sample code would really help.
Tks.
User Input/database
Hello,
I was just wondering how to implement user data entry form into flash and connect it to a database. What I am doing is a mailing list with name, e-mail, city, and state. Any help would be appreciated. Thanks.
Calendar For User Input
I'm looking for a tutorial or component, or something that will help me create a interactive calendar that users can input information (who's going to be where). Our team is spread across the nation and we are looking at options for a tracking/scheduling calendar that everyone can access and input their data.
Thanks in advance!
Helen
User Input To Web File
What I'd like to do is after the movie I made I'd like people to be able to type their name in and press a submit button (just their name nothing else). The name is then somehow displayed on another page via either php or ssi. What I'd like to know is what is the simplest way to do this?
Thanks.
Joe
User Variable Input
How do I make my variables user interacted? For instance:
I want to make a calculator. So that if the user clicks the 1 button it will add 1 to the equation. I can get that down somewhat but how would I tell it to add, subtract, multiply etc??
User Input To Set How Much To Countdown
Hi
I am trying to make a countdown that will countdown to a time during the day that is specified by the user. They would type in a time i.e. 19:00 into a input text box and then press start and it would update the actionscript for the countdown which is in scene two.
Not sure how to get the actionscript in scene 2 to update itself from what the user types in.
Here attached is the file i am working on.
Any help would be appreciated. Or does any body know of any tutorials that might help me.
User Input Art Interface?
Hi there,
I'm working on a big project and part of it will involved users being able to paint, ideally in a pixel grid.
Can anyone tell me how i'd go about doing this and what i'd need to do to maintain these drawings online, im assuming some kind of savable data using php or something? i really dont know, any help on this much much appreciated.
Many thanks for reading
WiL
|