Trasfering Text From One Dynamic Text Box To A Input Text Box On A Differnt Page?
Ok so I have a text box set up which receives the date on a callendar which you click on. On another page (a seperate html file) I have an input text box for receiveing this text. I've been trying to do this using various methods using getURL, but, I can't get it to work. This is becoming tedious especially as I'm not able to test it without having to reupload the files. If someone could please inform me on how I should do this I'd be vary greatful. If you need any further information I'll reply as soon as possible.
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 09-11-2007, 08:16 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[MX04] How Do I Make A Dynamic Text Always Have The Exact Same Text As An Input?
Well, I want the player of my game to be able to type in the name they want, but the script in the frame I have does not work.
I have two movie clips on the same frame. One is a character selection menu that allows you to put in your name using an input box called ", choose your face, etc., then you click the blue button to close that movie clip (Skips to empty frame 2 in the movie clip), showing the actual level, where your HUD that is supposed to show your name that you typed in the input text box is.
I put this non-working code in the frame:
_root.charactermenu.playername.text = _root.player_HUD.player_name.text;
Yes, I am aware that I put an underscore in one, and not in the other. It is to prevent confusion.
The first part is the input text and the second is the HUD part.
Can anyone help me get this working?
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!
HELP -> How Can I Auto-Update Dynamic Text W/ Input Text?
Here is my scene:
ROOT:
I have 3 MCs -- (all are the same right now)
DesktopsMC.
LaptopsMC.
ServersMC.
Each MC is on it's own keyframe (5-10-15) with a stop action.
Then I have the total amount of $$ remaining:
Drag.TotalMC
------------------------------
Inside the MCs are as follows:
DesktopMC --
A series of Checkbox MCs that affect the Dynamic Text box in a MC on the root stage, called "Drag.Total".
the function for the CheckBoxes goes somethin' like this:
Code:
//--------------------------------------------------------------------------------
function myHandler(component) {
switch (component) {
case Box1 :
checkValue = (parseInt(price1)*qty1);
break;
case Box2 :
checkValue = (parseInt(price2)*qty2);
break;
case Box3 :
checkValue = (parseInt(price3)*qty3);
break;
case Box4 :
checkValue = (parseInt(price4)*qty4);
break;
}
if (component.getValue()) {
deskTot += checkValue;
_root.totRemaining -= checkValue;
// total -= checkValue;
} else {
deskTot -= checkValue;
_root.totRemaining += checkValue;
// total += checkValue;
}
_root.Drag.total.test = (_root.totRemaining);
}
//--------------------------------------------------------------------------------
the above code works on the checkboxes.
BUT
I would like to make the Price1 dynamic text auto-update when you type in the QTY1 box.
This would continue for Price2 & QTY2, Price3&QTY3,.......
up to 50.
How Can I Auto-Update My DYNAMIC Text with INPUT Text?
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
Input Text And Dynamic Text (simple) Problem?
Need some help on this:
2 input text boxes, for entering numbers, var a & b.
1 dynamic tex box that shoud display the value of var c=a+b.
Somehow I can't figure it out.
For instance var a = 52 and var b = 12.
The outcome displayed in the dynamic text box is 5212, while it should be 64.
Any suggestions?
Captain Edit.
Input Text To Scrolling Dynamic Text Field - Help
Greetings all:
I am attempting (with little success) to come up with a way to do the following:
1. Have user type input into an input field and have it display in another dynamic text field - Got that done.
2. I would like the display text field to scroll automatically across the screen (to the left). I can get it to scroll once user hits enter key, but no luck with the continuous scroll and still have the ability to add words to the field.
My code is below which works in so far as it goes, it scrolls up one word at a time. I am using Flash Mx and any help would be greatly appreciated.
Thanks in advance...
button_two.onPress = function() {
word();
rootup();
}
//show.text=_root.input.text
function word() {
show.text=_root.input.text
input.text=""
thing.gotoandstop(2);
example2.push(show.text);
preview2 = example2.join("<br>");
}
function rootup() {
_root.up = true;
scroll_words();
}
function scroll_words() {
if (_root.up) {
_root.preview2.scroll += 1;
}
else if (_root.down) {
_root.preview2.scroll -= 1;
}
}
[F8] Input Text/dynamic Text General Question
I have both input and dynamic text fields. They have both an instance name box and var box. I never used to use the instance name box but have found recently that i have trouble if i don't. Usually i name it the same as the var. So my question with this is, has something changed? What is the instance name used for?
Second question is this...For the first time I've found that when i have an instance name, when the movie loads, that instance name is dispalyed in the text box. I know that i can just set the var = "", but that seems silly that i would have to do that. Why is it dispalying it's own name?
Thanks
[MX04] Dynamic Text Input -> Animated Text
Hi
Does anyone have any help regarding converting dynamically input text into animated text. Probably a bit like flashtyper but the site is down and I can't see it in action. I want to be able to change the font, colour and size of the input text and then allow simple animations to be performed on it as part of the movie ....
Any help gratefullt recieved ..
[F8] Summation Of Numbers From Input Text & Dynamic Text
i have 2 input texts and 1 dynamic
i want to sum all the three numbers
PHP Code:
on (release)
{ var write:Number = write_grade.text; //input text
var record:Number = record_grade.text; //input text
var Total:Number = write + record + wors_grade; //wors_grade is dynamic text
total_txt.text = Total;
}
this is the result for the input 4 & 5 in input texts & 2 in dynamic
45_level0.wors_grade
Comparing Dynamic Text And Input Text Fields
I am hoping this is simple but I need some help on checking to see if a users input text in to a Input Text matches the text in a Dynamic Text that has be input from a text file.
I have the attached the fla and a single .txt file for evaluation.
I believe it is on the submitt button code where the if statement occurs I am stuck in seeing the actual problem.
Any help is appreciated.
Thanks
Making Dynamic Text Stay Beyond Input Text
Ok im workin on a project where i have an input text box and a dynamic text box. Whatever you type in the input box is mirrored in the dynamic text box. I got that part working.
here is the code:
---------------------------------------
_root.onEnterFrame=function()
{
dynText.text=inoutText.text
if(Key.isDown(Key.ENTER)){
ch=dynText.text
dynText.text=""
chArray = ch.split(" ");
chArray.splice(chArray.length, 0,"|");
for (i = 0 ; i < chArray.length ; i++){
dynText.text += chArray[i];}
dynText.text+= chArray.splice(chArray.length,"|");
}
--------------------------------------
Ok now the goal of this is what ever you type in the input box will STAY in the dynamic text box and the input box will dissapear. I've tried masking away the input box, alpha tweening it, and simply moving it off the screen.
But whenever it hits the new key frame the dynamic text resets, and with the mask it all shows or none of it works.
So is their a code that will save what ever i put in input text and have it stay in the dynamix text field even when the input box isn't present?
Input Text Comments To Update Dynamic Text
Hi,
I am trying to create a wall of comments where users can type into my input text box and on submit, it will appear, along with all other previous comments in the dynamic text box. (Like a facebook wall/thread like this).
I am able to make this work as a one off using the code:
ok.onRelease = function () {
output = input;
}
where 'ok' is my submit button- but cant get the dynamic text box to retain information.
Please help!
Show A Name From A Input Text In A Dynamic Text Field
Hi,
I'm creating a interactive cd in flash for a college project.
I want to have a input text field at the begining of the cd, for the user to insert its name, so that it can be showen in some sections of the cd.
Can anyone help me?
Dynamic Text Input From Generated Text File
Hello all,
I’m currently doing work for a local cinema that wants session times to be displayed as .swf's on a few monitors in the foyer, but I’m having difficulties writing the script for it, here's the situation:
The session times are generated daily as a text file by the ticketing software, it looks like this:
12 1 0950 101 0 330 0 M MADE OF HONOUR
1 1 1000 95 0 400 0 M WHAT HAPPENS IN
6 1 1000 95 0 154 0 M SMART PEOPLE
9 1 1010 92 0 300 0 PG MISS PETTIGREW
5 1 1015 126 0 408 0 M IRON MAN
3 1 1020 92 0 347 0 M SMOTHER
14 1 1030 101 0 38 0 M MADE OF HONOUR
11 1 1035 111 0 186 0 MA15+ FORGETTING SARAH
8 1 1050 108 0 276 0 MA15+ STREET KINGS
10 1 1055 123 0 160 0 M PAINTED VEIL
4 1 1100 95 0 833 0 M WHAT HAPPENS IN
15 1 1100 126 0 42 0 M IRON MAN
7 1 1115 108 0 209 0 MA15+ DECEPTION
2 1 1145 126 0 441 0 M IRON MAN
12 2 1200 101 0 330 0 M MADE OF HONOUR
13 1 1200 95 0 56 0 M WHAT HAPPENS IN
6 2 1205 100 0 154 0 MA15+ UNTRACEABLE
1 2 1210 95 0 400 0 M WHAT HAPPENS IN
etc...
What I’m trying to generate in the .swf is something that looks like this
Made of Honour (M) 9:50 10:30 12:00
What Happens in (M) 10:00 11:00 12:00 12:10
etc...
Additional requirements are the times disappearing after the session has started as well as session times 13-16 being displayed as a separate .swf (first class seating)
So i guess my main question is "can i dynamically load text from a multi-line txt file without editing the txt file to include variable assignment? ('content=' etc)"
* the txt file generated is intended for an led display and is apparently a Texas Instruments standard
Dynamic Text Inside Text Input Boxes?
I have a website project I'm working on where content is entered into input boxes in Flash and then I use PHP and MySQL to store the text and display it on the main part of the Flash site. Site users will use the same input boxes for edit the text, so I would like, if there is currently text in db, for it to show up inside the input box as well when they go to change it. I am not much of an Actionscript coder, so I am using mostly scripts that I found on the internet. I have a script for pulling info from the db and displaying it inside a dynamic text box in Flash, and another script for taking the text from the input box and sending it to the database. Both of these snippets of code work fine when I use them in other places on the site. When I use them together, however, the text from the db displays inside the input box just fine, but when I change it and hit Submit to change the text, instead of entering the text I wrote it enters the word 'undefined' and this is what shows up in the text box from that point forth. Does anyone have any idea what I need to do to make the 'output' code work with the 'input' code? Here is the code as I'm using it:
Code:
//this section pulls the text from the db, it seems to work just fine
myData = new LoadVars()
myData.ref = this
myData.load("wp_getdata.php")
myData.onLoad = function(success){
if(success){
in_col1_title.text = this.col1_title
}
}
//this section sends the text from the input box to the database. It works fine when used by itself, but submits the word 'undefined' when used with the above code
var php_process:LoadVars = new LoadVars();
send_button.onRelease = function() {
_root.col1_title_popup._visible = false;
var post_variable:LoadVars = new LoadVars();
post_variable.string1t = in_col1_title.text;
post_variable.sendAndLoad("wp_connect_col1_title.php",php_process,"POST");
getURL("javascript:window.location.reload(true);");
};
Flash 5 > Input Text To Dynamic Text
I have 2 separate mcs, my problem is that I can't seem to get the values from the input text from one mc to display as dynamic text in the other mc. Please help!!!
Setting Input Text To Dynamic Text
ok here's my problem:
i have a few textfields that are at first dynamic.
when clicked a button they change to input text. that works
in my script i have this :
Code:
editFields = [Name, lastname, adress, phone, email];
later in the script when clicked the button
Code:
editFields[i].type = "input";
all ok up untill now...
i created another button and when clicked on that i want all textfields again set to Inputtext, al except the 'name'textfield
that one has to stay dynamic.
my problem is that i can't figure out how to keep one textfield
dynamic.
anyone know how i can achieve this ?!
thnx in advange
assenoost
Checking Input Text Against Dynamic Text
Hi!
Trying to build a conversion program for children to use in school.
I have created 3 dynamic text boxes and want the child to type in the correct conversion in input box (num4)
How can I press a button to check whether the input is the same as num3? (correct conversion amount).
I thought it might be
if num3 = = num4 i'd get away with it!
Apparantly not.
I have included my flash 5 file for people to have a look at!
Cheers
Chris
Input Text Updating Dynamic Text In MC's?
The Main Timeline has 4 input text areas and a MovieClip loaded into it.
The MovieClip has 4 dynamic text fields that should display the default text in the input fields AND update automatically as this text is changed.
How? Please help.
Thank you
John
Input Text And Dynamic Text In Two Different Frames
frame one:
Input text - the user enters his name.
Button - gets him to next frame to see the interface.
frame two:
Dynamic text (TextOut) - "Hello" + the name of the input text in frame one.
How do i do this?
I have tried lots of ways and the dynamic text just doesn't seem to be able to trace the content of the Input text field. I gues it's because they are in different frames cause if i place them in one frame it works...
One of the script i have tried (so that u get a picture of it) is:
//on the button
on (Realease) {
gotoAndStop(nextFrame());
TextOut.text = InputText.text;
}
of course the result i get is... unidentified
HEEEELP
Input Text Problem With Dynamic Text
Hi all,
I have an input text box with the same variable name as another dynamic text box (with a different text formatting). I start the value for both of them, this works fine. I also have 2 buttons which is 1 to add 100 and the other to subtract 100, this works fine for both objects as well. But then if I want to input a value through the input box, it will take the input boxes' text format and set it on the dynamic text box as well. I guess it is taking the variable as a whole string.
So after I input this value in the input text box if I click on of one of the 2 buttons it won't actually add or subtract the value, but rather just add it as a string to the end of the previous value.
Can anyone give me some hints on how to solve this please?
Input Text Box Effect With A Dynamic Text Box
Hey,
I was wondering if there is a way to simulate the "text cursor"(the blinking line that moves when you type) such as in an input text box, in a dynamic text box...
Youre probably saying why dont you just use and input text box....let me tell you, its way to complicated to explain haha
thanks in advance!
theo
Dynamic Text From An Input Text Field?
I have an input text field where the visitor types their first name,
I've named it: firstName, and called it a variable: _global.firstName
I have it set to get the info from inside the text field like so:
on(release) {
getURL("_global.firstName")
}
...and also to post it when it jumps to the next actionscript marker:
ThankU.text = "Thank you, " + _global.firstName + "!"
(I want it to say "Thank you, <firstName>!")
Nothing shows up when I preview. It's just a blank space.
Does anyone have any ideas as to why this isn't working out for me?
Thanks!
Input Text To Dynamic Text Field
I am trying to populate a dynamic text field from an input text field after a submit button is clicked. This is not submitting to a database or a website but to the actual document itself.
I am creating a madlib for some kids. So first they fill in the nouns, verbs etc then by clicking submit it populates the dynamic text field with the input text.
I just don't know how to begin this AS. I do know I have to name the fields and possibly thier instances but I am not familiar with how to proceed. All searches for this have turned up actual forms on the internet etc.
Many thanks for any help.
Josh
Dynamic Text From Text Input Component
Simple question, I have a text inout compnent and a dynamic text input field. how do i write the code to import the data from the component to the text field. It would mirror the compnents values. i have c1 as the compnent and t1 as the dynamic text field:
c1 = t1;
Input Text In _root To Dynamic Text In MC
The Main Timeline has 4 input text areas and a MovieClip loaded into it.
The MovieClip has 4 dynamic text fields that should display the default text in the input fields AND update automatically as this text is changed.
How? Please help.
Thank you
John
Show Input Text In Dynamic Text?
hi,
I'm trying to show a username that was inserted in a input text field in a dynamic text field. No problem here, the issue is when the dynamic text flied is inside a moveclip...the dynamic text field aprears empty :-(
Can anyone help me?
Input Text To Dynamic Text Box With Responses
I have to create a demo of a "Tech Support" app.
I have one input text box, one dynamic text box and a submit button.
when a user types into the input text box, then presses the submit button their "question" will appear into the dynamic text box.
All of this functions the way it should outside of one thing. I need to be able to have the user enter in multiple questions. Right now if they first type in "fried chicken" and press submit, then enters in "pizza" and presses submit again the text displayed in the dynamic text box should show two lines:
fried chicken
pizza
but instead every time a user presses submit the text is overwritten (i.e. "fried chicken" is overwritten by "pizza" on same line).
So here's the code so far:
//code block
questionTxt.text = "enter your tech support query here.";
questionTxt.onSetFocus = function()
{
this.text = "";
};
displayTxt.text = "Technical Support: Hello. How can I help you?";
displayTxt.onSetFocus = function() {
this.text = "";
};
var i=1
var responseTxt = "Thank you, one moment please.";
this.submitBtn.onRelease = function(){
output = "Dr. Smith: " + input + "
" + responseTxt + "
";
questionTxt.text = "";
}
// end code block
So the end result should be:
User enters in "I have a question" and presses submit
dynamic text box shows "Dr. Smith: I have a question" and below that "Thank you, one moment please"
-->this happens currently
User enters in ANOTHER question "I also need info on...." and presses submit
Dynamic text box shows:
Dr Smith: I have a question
Thank you, one moment please.
Dr Smith: I also need info on...
Thank you, one moment please.
--------------------------------------------------------------------
My guess is that I need to use the "input" variable from the input text box for each line but not too sure how to.
Any suggestions would be greatly appreciated. Thanks!
Several Dynamic Text Boxes From One Input Text?
Hi I hope you can help. I have seen tutorials for passwords which give different answers if you miss the password out or user name etc.
What I have is one input text ( var =answer1)
And five dynamic text feedback boxes.
What I want is if they answer e.g. five then the first dyamic text box says "well done"
But if they answer "two" then the 2nd dynamic text box says "wrong".
The reason I am not just doing it all in one dynamic text box is that I want the feedback to previous answers on the stage.
I find these if statements really hard. Can anyone help, please?
stockdill
Several Dynamic Text Boxes From One Input Text?
Hi I hope you can help. I have seen tutorials for passwords which give different answers if you miss the password out or user name etc.
What I have is one input text ( var =answer1)
And five dynamic text feedback boxes.
What I want is if they answer e.g. five then the first dyamic text box says "well done"
But if they answer "two" then the 2nd dynamic text box says "wrong".
The reason I am not just doing it all in one dynamic text box is that I want the feedback to previous answers on the stage.
I find these if statements really hard. Can anyone help, please?
stockdill
Dynamic Text And Input Text
Hello everyone,
im curious to know how I can set each of these (dynamic, input text) to wrap after a certain amount of characters have been entered.
Would love to know, thanks in advance.
-Adam
Input Text And Dynamic Text...
hi,
i have a question.
is it possible for someone to type something like their name into an input text box and then have whatever they typed appear in a dynamic text box?
so like if i typed "gotMilk into a input text box and pressed the submit button it would appear in a dynamic text box in a later frame.
if so how is it done.
Thanks,
Var.
Text Dynamic, Input Text HELP:)
I have got two tex boxes dynamic and inupt text. I would like to show everything what is written in input text in the dynamic text box. And one more thing is that when someone press "enter" in the input text i would like to change it to " | " i the dynamic text bos.
Can someone help me with it i am new to action script and i dont know how do do that.
I already did that
this.onEnterFrame = function (){
dynamicTextBoxVarName = inputTextBoxVarName;
}
But i dont know how to include
in this code situation whan there is "enter" in the input and ia wont this enter to be change to "|" in the dynamic but in the input it should stay as it was .
Input Text/Dynamic Text
I need the user to input a short line of text (0-16 characters about) and have it appear in a dynamic text box. How would I go about doing this?
[F8] Input Text To Dynamic Text
Hi Everyone,
I'm made a "Magic 8 Ball" type answer game where people can type in a question (in an input test box) then they have to click in the ball (which is a button) and an answer appears in another area (in a dynamic text box).
Is there any way to work it so that someone can type the question onto the "input" text box and click the "return/enter" key to get an answer in the "dynamic" text box, instead of having to click the button (ball)?
Here's a link to the game:
http://www.ufonies.com/begin.htm
Thanks,
Roz
[F8] Input Text To Dynamic Text
Hi all,
I have created a flash form with input text boxes, check boxes and radio buttons. I need all the information entered in this form _mc to be transferred to a confirmation_mc, placed on another frame. the confirmation_mc uses dynamic text to receive the form_mc info. Maybe something like name_txt to name2_txt...(???)
Now, my problem is that I cant figure out the proper script, , and I am hoping someone would be able to point me to a tutorial or give me the logic behind this action.
Thank you for your time
sand.
Input Text To Dynamic Text?
Hi guys
I'm pretty new to actionscripting, I've been searching around but I don't think I'm googling the right terms.
Simply put:
I'd like any text typed into an input field to be traced in a dynamic textfield at runtime?
Any help would be much appreciated.
Take care.
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
Input Text In A Quiz Page
I am creating flash files that are comprised of a single quiz question. I am just beginning and have already hit my first roadblock.
I am attempting to create an input text box in which the quiz-taker must enter the correct response. Upon hitting a "submit" button their response will be evaluated and compared to the actual response. If they have the correct response they will be taken to a 'CORRECT' slide and depending on their error they will be taken to one of the 'INCORRECT' pages.
I created an input text box assigned the variable 'symbol'. The correct answer is "O". Should I then create action script that reads something like:
submit.onRelease = function() {
if (Symbol = "O") {
gotoAndStop("correct");
}
};
I really am new at input text and have no idea how to program with it. My book does not deal with input text much and I'm still struggling to understand variables and how they are evaluated.
John
Retreiving Input Text In Another Page In Flash 5
I am having a form filled out with several products on a movie clip that I will call "umbrellas" ... then another movie clip will be another product... My question is this... I want to have the customer fill in the text boxes of the form of the quantity they want and this with the email goes to a final form that summarizes the products he is getting (no costs though)... how in flash do I carry over an input text field to another page?
I have tried everything... can you give me step by step..
example...
a. I created a text input field for email address called "email" as the variable name... in the movie clip called "umbrellas"
b. Then on the page it should show up automatically I want this field to show up so I can submit this and it will go to my email address.... Should I now set up a dynamic text field with the variable of email=umbrellas.email
How Do I Go About Sending Input Text To An Html Page
I have gotten my flash screen finished but now I can not send the collected data to my CGI script. I have a button on the flash page that calls the script but nothing is getting passed into the varibles I am using. How do I make the input text boxes save their contents to a varible I can pass??
Thanks, Jeff
POSTing Input Text To A Search PHP Page...
I originally posted this on Macromedia's official support forums, but I can't even reply to suggestions since the connection to that site keeps timing out...
Anyway, I am using the xoops CMS on my site. (www.paintballandstuff.net) Anyway, I converted the original HTML code on the page to something in the flash header.
The original HTML code was:
<form style="margin-top: 0px;" action="<{$xoops_url}>/search.php" method="post"><input type="text" name="query" size="14" style="background-color: rgb(255,255,255); color: rgb(0,0,0); border: 1px solid rgb(0,0,0)" />
<input type="hidden" name="action" value="results" />
<input type="submit" value="Go" style="background-color: rgb(255,255,255); font-family: Tahoma, Verdana, sans-serif; font-size: 12px; border: 1px groove rgb(0,0,0)" />
</form>
Anyway, I thought of using this actionscript in my flash header:
I have a movieclip that contains a button that also has an input text box. The name of this box is "query" and the flash actionscript is:
on (press, keyPress "<Enter>") {
getURL("../../search.php", "", "POST");
}
Anyway, the point of this post is: when I enter text and click on the go button, the search page loads up, but the variable information does not get passed along.
Anyone know why this may be the case?
Page 2 - Number Input To Text Output
with help, of course : )
here is the code that is working!
Code:
Original
- Code
var input1_num:Number = 0;
var output1_num:Number = 0;
input1.text = ""; // input textfield
input1.restrict = "0-9"; // limit input to numerals only
output1.text = ""; // dynamic textfield 1
output3.text = ""; // dynamic textfield 2
submit_btn.onPress = function() {
output1_num = 7 * input1.text;
output3.text = output1;
if (output1_num >= 14) {
output3.text = "you're at the computer a lot!";
} else if (output1_num < 3.5) {
output3.text = "you're computer use is minimal";
} else {
output3.text = "your computer use is moderate";
}
};
var input1_num:Number = 0;
var output1_num:Number = 0;
input1.text = ""; // input textfield
input1.restrict = "0-9"; // limit input to numerals only
output1.text = ""; // dynamic textfield 1
output3.text = ""; // dynamic textfield 2
submit_btn.onPress = function() {
output1_num = 7 * input1.text;
output3.text = output1;
if (output1_num >= 14) {
output3.text = "you're at the computer a lot!";
} else if (output1_num < 3.5) {
output3.text = "you're computer use is minimal";
} else {
output3.text = "your computer use is moderate";
}
};
Thanks everyone so much for taking the time
to help!
Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.
The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.
message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene
Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes
Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers
Sending Information From Input Text Area To ASP Page
Hi everyone, I am sending a page with a few input text boxes to a ASP page that has already been established. Is there some brilliant person out there who could post a sample script either using Get or Post? Thanks!
|