If Input Text Field Is Changed...
Hi,
I've been struggling with this for a few days. I'm checking an input text field to see if anything has been instered like this:
on (release){ if (woord == null && kleur == "kleur"){ status = "<font color='#CC0000'>u heeft geen zoekterm of kleur ingevuld!</font>"; } else { loadVariables("zoeken.php", "", "POST"); gotoAndPlay("resultaat"); } }
This works fine exept when I've entered something into the text field and then delete it. If I press the search button after that - the text field is empty - flash moves on to the else statement and retrieves all the data from the database. I want flash to display the status message instead.
Can someone please help or point in the right direction?
Thanks in advance, Danielle.
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-04-2002, 02:53 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Dynamic Text Field Changed By Buttons
Hi,
I’m a beginner in Flash so if my thread is not in a correct place, sorry
My question:
I’ve got a lot of button and one! dynamic text filed in my movie. If I press a button, it loads a text from a file: test.txt, or other button test1.txt etc. (the file encoding is UTF-8, because it is hungarian; á é ő etc. And html)
Here is the as. on my button!!(is it correct to put it on the button?? Or elsewhere??) Of course every button has it own test*.txt
Button1:
On (press)
{
data = '''';
//reading the txt
_root.loadVariables(''test.txt'');
// visualize the content of the text file
_root.onData = function() {
dfield.htmlText = data;
//dfield is the dynamic text field instance name
};
}
Is this code correct?
This works under IE, but showing nothing int he DTF under Firefox. Whats the problem? I use Firefox…
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?
Format Of A Dynamic Text Field Lost When The Value Is Changed
I have a text filed created using createTextField() and ist properties set
this way:
.type = "dynamic";
.html = true;
.text = some_variable;
var TextFormat = new TextFormat();
set some formats
.setTextFormat(TextFormat)
It works fine - it shows the initial value of some_variable (which is a
number) formated as I wanted it.
However as soon as some_variable is incremented (++) by some other function
(which has no operatoprs affecting formastting), the format of this field is
lost.
Where shall I look for an error to?
Calculating Input Text Field To Dynamic Field (easy Action Script)
hi. i'm trying to learn action script and i need help with this bit. i'm trying to use action script to calculate my brothers ages based on my own.
using flash MX. i have an input field called "my_age" and two dynamic fields called "eli_age" and "jacob_age". eli is 4 years younger and jacob is 6 years younger. i want to be able to enter my age in the "my_age" input field and then click a button that will calculate their respective ages.
here's the fla if i haven't been clear.
thanks for any/all help,
josh
What Are The Best Ways To Capture Input From An Input Text Field?
Hi,
I don't know ASP, CGI, PHP etc. I do, however, have a flash form with two input text fields named “E-mail” and “Name”, and a submit button.
How can I set this up so a user can input the info in these two fields and click the submit button to some how send me the data - Via Email? txt on the server? Anything...
Also, if this is not possible, what is the simplest way to learn PHP or whatever is most appropriate to get these goals accomplished.
Thanks,
Stephen
Input Text Field To Dynamic Text Field
Ok, I have an input text field with a variable name of "enter", and a dynamic text field with a variable name of "display". I also have a button on the stage. I want it so that when you press the button, it checks what the user has put into the input text field, and if it is valid it will display a certain message in the dynamic text field.
For example:
If the user types in "hydrogen" and then clicks the button, I want the dynamic text field to display the letter H. Likewise, if the user types in "oxygen" and then clicks the button, I want the dynamic text field to display the letter O. And finally, if the user types in something that is not specified in the code, it will just display "Not Valid".
I tried doing this with an on(release) action and then some if statements, but nomatter what I typed in it would always display H. I'm probably overlooking something simple, but nonetheless, I need help. Thanks
Input Text Field Into Dynamic Text Field
Hey guys,
I'm really new to AS 3.0. I would like to transmit information from an input text field into a dynamic text field once a submit button is clicked.
Any help would be greatly appreciated.
I'm using CS3 AS 3.0. Thanks!
Input Text Field Won't Allow Input
We are having a really strange and stupid sounding problem with a text input box. It appears but won't allow any input. Before you shout 'stupid newbie' yes the properties are correctly defined as input text etc.
The input field is in a movie clip i.e. _root.myClip but we have never had this problem before. It is probably something obvious to to prevent us pulling out all of our hair has anyone got any idea why this is happening. We have tried forcing the text box focus etc but to no avail.
Help us!!!!!!!
Long Text Doesn't Fit Inside Single-line Input Text Field
Hi, I've been browsing these forums for a long time but this is my first post.
I'm creating an interface by which a user can design and order their own customized decal. Please see my example (I've added my script at the bottom of this post):
http://www3.sympatico.ca/sin.young/decaldesigner.html
My issues are:
1. I've set the character limit to 21, but if you were to type in 21 "W"s into the input field for whatever reason, or choose a wider font, the text shifts to the left and some of the characters become hidden as they don't all fit. I'd like to make the width of the text to always fit inside of the width of the white area. I can't figure out how to make this work.
Here's an example that does pretty much what I'm trying to describe: www.stickerjunkie.com.
2. I have the Standard Colors combo box working perfectly but can't seem to get the Fonts combo box working.
Any hints or links to actionscript tutorials/help that might be useful to my predicament is extremely appreciated.
// display colors and formatting
decalColor = new Color(decal);
color1 = new Color(decalColor);
//
function changeColor(comp) {
decalColor.setRGB(comp.getSelectedItem().data);
}
//Standard Colors array
standardcolors = [{label:'STANDARD COLORS'},
{label:'White', data:0xffffff},
{label:'Black', data:0x000000},
{label:'Silver', data:0x9c9c9c},
{label:'Gray', data:0x636b73}];
collistStandard.setDataProvider(standardcolors);
collistStandard.setSelectedIndex(0);
collistStandard.setChangeHandler('changeColor');
//
//Fonts array
myfonts = [{label:'FONTS'},
{label:'Arial', data:'Arial'},
{label:'Serpentine', data:'Serpentine'},
{label:'Enviro', data:'Enviro'},
{label:'Forte', data:'Forte'}];
fontlist.setDataProvider(myfonts);
fontlist.setSelectedIndex(0);
fontlist.setChangeHandler('');
Input Text Field?
Hi,
Just wondering how to save varibles from an input text field in your movie and then recall it later in your movie for in another text field (or if this is even possible). I just need it to happen localy, so hopefully it doesn't require any of the php stuff?!? Anyway;
Thanks a bunch for any help;
Help With Input Text Field
I am using an input box (and a button with the script)to drive the frame selection in my movie. i.e. User types "home," it returns them to the home page. The problem I'm having is that I'm using the same Input Text field in every frame and the previous contents are still in the field when it jumps to the appropriate frame. How can I get the field to clear automatically when it jumps frames?
Input Text Field Help Please
Is there a way to tell what line you are on in an Input Text Field? I want to limit not only the characters that are allowed to be input, but also how many lines down they can go. Thank you.
Input Text Field Help Please
Hello,
Is there a way to tell what line you are on in an Input Text Field? I want to limit not only the characters that are allowed to be input, but also how many lines down they can go. Thank you.
Input Text Field
How would I check the text of an input text field and place that text somewhere else in a movie.
For example:
A game where the players type their names in when it starts. I want to check the text of the field where the winning player typed his name, and have it say "____ is the winner."
Using Input Text Field?
I'm trying to create a simple text input field where the user puts a first and last name. After they submit their name it creates a variable that can be used to identify the person later in the flash file. Is this posible? I tried searching for a tut but no luck. Thanks
Input Text Field
do input text areas not work when they are behinf a mask?
If that is so how do I get around that?
About Input Text Field
I have an input text field to let the user input, i would like to make the box can response immediately, once the user type in one character. How can I do that?
Thank you very much~
Input Text Field
help, pls!
how i can create input textField with using action script 2?
Input Text Field.....
Hello. I know this is probably a ridiculous
question... Is there any way to make an input
text box transparent? Everytime I publish
my movie the box is white.
Thanks.
JR
Input Text Field
Hi,
How can I prevent that certain characters are typed in an "input text field". I only want it to be Numerals and a Minus (-).
Thx,
Death
Input Text Field
hey guys, i got a problem.
I have an input text field ("search") and I'm trying it make the text null when you do a Set Focus.
----
search.onSetFocus = function() {
search.text = ""
}
----
this works, but "_level0.search" appears in the input text box. so when i try and assign it text within the input box (search.text = "class search")
----
search.text = "class search"
search.onSetFocus = function() {
search.text = ""
}
----
my "onsetFocus" doesn't work, i have to manually delete the text "class search". but I want to have the text "class search" to appear in the text field, and then it disappears after you click in the text field. does anybody know what i'm doing wrong?
thanks for the help.
Input Text Field
Is there a way to change the background color of the input text field using actionscript. I want the field to turn Blue when it is given Focus. right now I have a movieclip underneath that has a white frame and a blue frame. when focus is given I have the movie play the blue frame.
is there a better way, I would really like to control this with code
thanks
IMS
Input Text Field Help
I have created a feedback/information request form within my site using Flash MX. I created the input text fields and assigned them all a instance name. For some reason, when I assigned the instance names and tested/published the scene all the input fields are being filled with field properties. I'm at my wits end trying to figure this one out.
Please help!!!
You can see what I mean HERE .
Thank you in advance.
[F8] Text Input Field Help
Okay, I'm trying to make a simple little thing where you input a few numbers, click a button, and it spits out something calculated from those values.
Only problem is, it's not recognizing the input from the text fields as a number. Debug tells me that the variable is something like this "Variable _level0.rawscore = "<TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="Times New Roman" SIZE="16" COLOR="#000000" LETTERSPACING="0" KERNING="0">1000</FONT></P></TEXTFORMAT>""
So then, of course, I get NaN as the solution.
How can I get flash to recognize the input as a number and not a string?
[F8] Input Text Field
hello,
basicaly... i have an input text field (for name input),
and underneath that is a continue button...
how do i go about making the continue button inactive untill a name has been typed into the input text field?
thanx!
Input Text Field
This is easy, but I must be missing something. I have 2 frames. One that has an input text field for the answer having the var as answer. I have another input text field that the user inputs their answer into called password_txt. I want the password_txt to be the same as the answer text field. Below is my code. It's on the answer or submit button. What's up with it?
on (press, keyPress "<Enter>") {
checkl = answer.text;
if (password_txt.text == checkl) {
gotoAndStop(3);
} else {
show_txt.text = "Sorry, that is incorrect. ";
}
}
Input Text Field
Is it possible to have an input text field with a string inside it (ex. name) and when a user click in that text filed the string will be gone.
I tried this , but Flash does not recognize an empty field
Code:
if (name == " ")
{
name = "Enter your name here" ;
}
Is there a betterway of doing this, if it is possible in the first place ?
Help With Input Text Field
I have different scenes and in one I have an input text field called input_txt, and it another scene I want to check to see what text if any, the user put in the field. The way I have it now, it is not working, I have: var input:String = _root.input_txt.txt and then trace that out and it is coming out undefined. What is wrong with the syntax, or is it something to do with the way I'm doing it?
Input Text Field
I have a question about creating a text input field that will print out the contents to the flash movie. I wanted to create an e-card. There would be an input text field so people could write a message. After writing a message they would click a view button and see their message within the context of the e-card (maybe in some fancy font). Is this possible in Flash CS3 or does it need to be done in Flex? Any help would be appreciated. Thanks.
Input Text Field
Hi , im getting a flash form together for an estate agent and i've hit yet another problem. Kglad was kind enough to help me out last time with some A.S. for randomly selected checkboxes to appear in order. Now I've slightly modified the script to work with the form and it does but i've tried to add an input text field into to mix and the results are weird - i've managed to get the field to react to a checkbox so the 'random script' works but the dynamic txt field isnt displaying the txt that is entered into to the input field - it's displaying the original text before any is input eg: 'please input manual text here'
Confused yet! Me too
The modified code that Kglad supplied is at the bottom of this message:
The text field var is 'manualtext1' and its set to the 27th checkbox.
If any ones interested it can be viewed here: flash form
Thanx in advance for any input.
Cheers
Attach Code
tl=this;
var lo:Object = new Object();
lo.click = function(eventObject:Object) {
tl["tf"+tfIndex].text = textA[eventObject.target.ivar];
tfIndex++;
};
tfIndex = 0;
textA = ["Hall", "Lounge", "Bathroom", "Grnd Floor Cloaks", "Reception Room", "Dining Area", "Dining Room", "Fitted Kitchen", "White Goods", "En-Suite Bathroom", "Shower", "En-Suite", "Utility Room", "Double Glazing", "G.C.H.", "Conservatory", "Garage", "Double Garage", "Gardens", "Front Garden", "Rear Garden", "F,S & Rear Gardens", "Out-buildings", "Alarmed", "Priced to sell", "Viewing recommended", manualtext1];
for (var i = 0; i<27; i++) {
tl["cb"+i].ivar = i;
tl["cb"+i].addEventListener("click", lo);
}
Input Text Field
Hey Hey, now then, input text fields, I want the script to recognize the text a person has put in, it's kind of a quiz in a little game I've made, there's a question asking what's the 3 squared? and I need the script to recognize that 9 is correct if it is entered, otherwise it is incorrect, I also have another 2 questions, when the three are answered correctly I want a movie Clip to become visible, its already been made invisible using _visible = false.
Super-Man! Super-Man, Please Save Meee! =]
Input Text Field
Hello!
I'm doing a email form in flash, and here is what I want to do:
Input text fields with "message", "your name", "your e-mail" and "your phone"... when you click the text field I want the "message" text to dissaper and come back you dont write something...
like on this site:
http://www.whitney.org/biennial/
> Community > refer a friend
HELP!
Rob*
Input Text Field, Gone?
Well, if you take a look at the .fla, you can see that my input textfield, which is in "contact_slider", shows fine in the workplace, but aint showing up when published. I have no idea why it does this, and im begging for help
Sorry for the large file: 1.1 mb - http://voursez.net/menu2.fla
Input Text Field
hey all just a quick question...can a input field work if it has a masked layer above it? and if not does neone know how to fix it??
cheers peeps
Input Text Field Help
hey everyone,
i'm having a problem with my input text field when i type into it and click send php doesn't pick up the variables and i have tested the php its not that...
so i did this actions:
username = "user";
password = "pass";
and it worked when i click send yet if i delete that and type exactly the same thing it doesn't work.
any ideas why???????
cheers all
Input Text Field Help
i published my flash file in flash player version 6 and my text fields all work perfectly now...yet when i publish it in flash player 8 which is what i need otherwise major parts of my site won't work...the text fields don't work?
any one know any work arounds??
Input Text Field
Hi,
Is it possible to limit or fix the no. of lines in a input text box, so that if we change the font size to any extent, no. of lines remains the same
after reaching the limit, we cant write anything in the input box.
Input Text Field
Hello!
I'm doing a email form in flash, and here is what I want to do:
Input text fields with "message", "your name", "your e-mail" and "your phone"... when you click the text field I want the "message" text to dissaper and come back you dont write something...
like on this site:
http://www.whitney.org/biennial/
> Community > refer a friend
HELP!
Rob*
Input Text Field, Gone?
Well, if you take a look at the .fla, you can see that my input textfield, which is in "contact_slider", shows fine in the workplace, but aint showing up when published. I have no idea why it does this, and im begging for help
Sorry for the large file: 1.1 mb - http://voursez.net/menu2.fla
Input Text Field
I´ve got a problem with flash input text fields when showed in Netscape 4.5
they simply dont appear.
In netscape 4.7 and IE 5 there is no problem.
Do you know why?
the link to the example is:
www.gdsseguros.com/autos
I must do it work properly in netscape 4.5.
Thanks in advance
Senén
Problems With Formating Text Cursor In Input Text Field II
You have a cursor which you move with your mouse, and when you type text in form field you have another cursor which is in this FlashKit form colored black.
I want it to be white.
There isn't a tut. to do that.
__________________
Buby
Making A Input Text Field Remove Text When Clicked
Hi,
I would like to know how would you remove text within a Input textfield when clicked. For example Barney's New York website has this field with text displaying Enter Email to subscribe, so when u click on the field it will remove the text when clicked.
"Click on the fallowing below, so you would know what exactly what I'm talking about."
http://www.barneys.com
Thanks!
Abel Gudino(Creativemindz.biz)
Actionscript: Email Text From An Input Text Field Problem.
I am having difficulty with my email example.
I am using Flash mx2004 pro 7.2
(This example needs to be viewed in a explorer browser)
My first problem is that when you type in the & Character into the input text field.
The text following the & Character cuts out when sending info to the outlook program..
The code on my send button looks like this:
on (release) {
getURL("mailto:Youraddress@domain.com?subject=Stan dard title"+"&body="+body);
}
I would also like to find out if it’s possible to retain text format from a copy/paste job into a input text field that translates all the way to outlook.
Thanks for any suggestions you may provide.
~Josh
Can't Access Dynamic Text>properties>var (text Input Field) In AS3
Hello,
I got VB to put text in a dynamic text field I created in actionscript 2 but can't get it to work with as3. The difference being that in as2 I can draw a dynamic text field on the stage name the instance 'testField' in properties and then there is a var: text box also in properties where I can add a variable name 'testVar.' As3 won't let me access that var:text box in properties. Why is this? For some reason VB needs both the instance name 'testField' and also the variable name 'testVar.' How do I set the variable name in as3 for a dynamic text field? Is the var:text box in properties to give the dynamic text field a variable name in as2?
Thank you if you can help me clear this up! If something in my questions does not make sense please ask me!
Button WITH Text & Input Text Field Color Difference
Hi all,
In Flash MX 2004 Pro, I am trying to create a rectangular button that has the word "Enter" on it. For some reason, the text is gone and I don't know what happened to it. Can someone take a look and tell me what I'm doing wrong, please?
Oh, also... There is an input text field I created, but it's white (and so is the rest of the movie). How can I change it so that the background of the entire scene is different from the input text field (so it is seen)?
Thanks!
Chris
PS. I'm a Flash NEWBIE so please use small words!
Problem With Dynamic Text And Input Text Field
hi,
in flash movie how to Preserve the font.in my system swf shows the specified font in the dynamic and input field.but in other systems it does not shows the specified font what is the problem help me.
thanx
shan
Unicode Text In Input Text Field Flash MX
Hi
Do you know how to type in the input text field (Flash MX) in Unicode as we're Vietnamese but Flash MX input text field cannot afford this typing. But when I copy text (Unicode Vietnamese language) from Word then paste into that field, it appears correctly. I don't know why. Pls help me
|