Printing With Button And Submitting Input Text In CS4?
May 15, 2009
I am trying to make a box where a student enters their name and then clicks a button so their name is rememered and shows up. I have created an input text instance called "nameText" and a button to submit it called "submitMe".
Second, in this game I would like to keep track of when a specific button is clicked. In this game I'm having incoming freshman into college decide if the statement applies to college or high school by clicking on a button (saying high school or college). I want to keep track of their choices and display them on a result page, then clear when I click the replay button on the results page. Each button has its own name for each of the 12 questions (hs1 for high school c1 for college, and so forth until hs12 and c12).
Third, I'm looking for any advice on how to print in flash. The person I am developing this program for wants students to print their results (with their name on it from the "nameText" input field) and be able to hand it in to her in class. I am not sure how to do this and I can't seem to find a clear way that works. I have made a button called "printMe"
Otherwise I've attached the swf file so you can see what I'm thinking.
View 3 Replies
Similar Posts:
Nov 28, 2009
I have an interactive map that I would like to script so that when a county is clicked, it sends through to a page called results.php this HTML table:
<form name="Merchant Details" action="results.php" method="post">
<input type="hidden" name= County>
<input type="hidden" name= MerchantType>
So County and MerchantType are fields in a SQL table. The script needs to tell the results.php page that County A and MerchantType B has been sent.
Where A is the name of the county and B is ALL (the default i've chosen for MerchantType)
View 1 Replies
Mar 23, 2007
I'm encountering a problem I did not think of. I have a single textfield, that oncesubmitted via "Get" method, sends the data to the site (Think of a google search field in a banner).In any case, I have some default text in the field. But when someone clicks on the submitbutton, the default text gets submitted as the search string. Is there a way to get the result from submitting the form without entering text into the textfield to be a default URL, and not the text string? See Below:
myfield.text = "Enter Your Text";
myfield.onSetFocus = function(oldFocus) {
myfield.text = "";
[code].....
View 1 Replies
Oct 15, 2009
I want is to take a the text from and input text box and when you press a submit button have it post to a php page. All was going well... but then I changed my code from value1 = "password" to value1 = password.text; and the php instead of coming back with the user's password, comes back undefined. WHY WHY WHy, does it except it when I say value1 = "password" and not with the value1 = password.text; (and 'password' is the instance name of the input text... (not using flash vars)
[Code]...
View 14 Replies
Dec 13, 2009
I have this frame where in the button links will change whenever the textbox changes. Here is an attached sample image so you could imagine what I am trying to say. For the
textboxes (instance anme: voca2_pg and voca3_pg)
it should be 10-20 then when next button is clicked, it will be
20-3030-4040-5050-6060-7070-8080-9090-100
For short, the next and back button will operate the textboxes.
but if I type for example 25 (on voa2_pg textbox), it will show 25-35 (basically getting 10 numbers in all)
ex. I typed 43it will look like: 43 - 53 or if I type 88it will look like: 88 - 98 And then the purple button below also will change every numbering..10 - 20 the AS is:
on (release) {
getURL("javascript:command_voca(1,1)","_self");
}
20-30on (release) {
[code]....
View 1 Replies
Sep 23, 2009
Using the text tool, I have made a Input Textbox with the instance name of voca2_pg and the other one is voca3_pg. It has a text inside: 1 and 11, respectively.Now I made a button that should send info to the input text that when I click the back button, text will change to a lower number, or when I click the next button it will change to a higher number. Example: (they are inside the textbox)
View 21 Replies
Apr 7, 2010
i am using one input text box and one button. In the beginning the button should be invisible. Once i started to type text in input text box, the button should be visible.I used following script. But it's not working.[code]
View 2 Replies
Jul 16, 2010
I would like to input a numerical value into a dynamic text field using a button. The numerical values is one, the button is called a1_btn The dynamic input text field is called results_txt
This is the code I am using. Even though it shows no script errors, clicking on the button doesn't input the number on the dynamic text field
//Mouse event code
a1_btn.addEventListener(MouseEvent.CLICK, onClick);
//this is the value of the number
var number1:Number = 1;
[Code].....
View 1 Replies
Apr 29, 2009
I'm a Flash newbie using the program to develop a multimedia lesson. I want to include some practice questions where students are asked to answer a quesion by typing numerical values in the box. Then when they hit "enter" I want it to take them to a new question if they get the right answer, or a screen that says "try again" if they get it wrong. Here's the script that I used. I attached it to the "enter" button. The variable name is "answer_box"
[Code]...
View 3 Replies
Dec 24, 2009
My project is to get a input text from user and user can check their answer by simply click on the button check, if their answer is true a message "good job" will be display. but,my code have an error.check this code 4 me? .
ans1_box.restrict = "0123456789";
var setUpProblem:Function = function():Void
{
[code]........
View 1 Replies
Feb 21, 2010
I have a input text box a and button on the stage. The Input text box contains the following:
my_txt.text = "This is a test";
When the user clicks the button it executes the following:
var my_fmt:TextFormat = new TextFormat();
my_fmt.bold = true;
my_txt.setNewTextFormat(my_fmt);
When I start typing in the (my_txt) inputbox the text is not bolded. Am I missing something?
View 2 Replies
Feb 3, 2011
I have an issue with font scaling of a dynamic text box.
Currently i have one input box named input_1 with a variable attached to it named "choc_1".
Also, i have a dynamic text box named dynamic_1 with variable "choc_1".
When the user types something on the input box then the dynamic box changes instantly and displays what the user has written.
auto scale-size the fonts to a smaller size if the user types many letters.
The input_1 box has a 13 character limit. My initial font size is 200, i want to scale down so when the user types 10 letters they fit the box and they don't go out of screen. I want to use one line, so wrap or multiline is not possible.
here's a code that i'm trying to fix but i can't get the dynamic box to change:
[Code].....
View 1 Replies
Feb 3, 2011
I have an issue with font scaling of a dynamic text box.
Currently i have one input box named input_1 with a variable attached to it named "choc_1".
Also, i have a dynamic text box named dynamic_1 with variable "choc_1".
When the user types something on the input box then the dynamic box changes instantly and displays what the user has written.
I've googled a lot, but i can't find a solution to auto scale-size the fonts to a smaller size if the user types many letters.
The input_1 box has a 13 character limit. My initial font size is 200, i want to scale down so when the user types 10 letters they fit the box and they don't go out of screen. I want to use one line, so wrap or multiline is not possible.
here's a code that i'm trying to fix but i can't get the dynamic box to change:
[Code]....
View 0 Replies
Dec 14, 2010
I am an educator and I am designing an interactive activity for my students. I created two buttons named button_B and button_G, and an input textfield named in_Text.when a student presses button_B, the letter "B" is entered into the input text field; if a student presses button_G, the letter "G" is entered into the input text field. More than one letter entry is acceptable as a student's answer: for exmple the entry BBB, BGB within the input field is okay.I have no trouble writing AS3 to accomplish this task, however:For a student's solution to the input text field to be correct, it has to contain the four values BBB, GGG, BGB, and GBG in any order. I created an array named solution_S with these values. I also have an enter the solution button named enter_btn. The student can check their solution by pressing the enter_btn button; if the input textfield is correct, the quiz moves on to the next frame in my timeline; if it is incorrect, it moves to a different frame in my timeline.
View 3 Replies
Jul 27, 2010
I have a problem with the input text. I have a empty input text box on the frame one. Its name is "w". Then i m waiting for user input to that box. When the user input a text, i want him to click the button (called "manage_s") which will take him to the frame 2 and show the result of his input. (basically its quering the server).
[Code]...
View 9 Replies
Jul 18, 2009
I have an input text field set to Password and set to a max of 8 characters. When the 8 characters have been typed in to the input field this needs to trigger (without any sort of button action involved) the playhead moving to frame 20 of the timeline.
I have labeled my input field as passwordTxt.
View 1 Replies
Jun 19, 2007
I have a sprite that has a scrollbar that uses the scrollrect feature. The sprite has several bitmaps and textfields. When I print the outer sprite (The one with the scrollrect) all of the textfields outside the scrollrect are cut after the first line. In case anyone else is having problems with printing sprites with scrollrects using the bitmap printing option fixes and prints most of the stuff in the sprite. Excluding all textfields outside of the scrollrect. This however can be fixed partially by embedding your fonts.
So now the only problem left is printing multiline textfields that are outside the scrollrect. P.S. Imho the scrollrect should have nothing to do with the printed area of the sprite because the printJob.addPage has a printarea parameter.
View 3 Replies
Mar 11, 2009
I have a simple page with a text box and a go button on it. I am trying to build a URL from text that's put in that box.For example, someone types "peanut" in the box, then hits the go button.When they do, it loads the page "http:[url].....It seems simple, but I am not getting the variable to store/pass properly.
View 5 Replies
Jun 24, 2009
I have a text input field called 'phone' and a button with the GetUrl function. Button script looks like this:
on (release){getURL("http://url/sendlink.page?country=160&phone=phone&keyword=33&msgtype=26", "", "POST");}
First of all when I press the button nothing happens. When I paste the link directly into my browser everythinbg works as it should. But not from flash file.
adding the 'phone' variable into the hyperlink. What do I write? Something like this: [URL]
View 13 Replies
Oct 2, 2009
I am willing to use Macromedia Flash this year to make my physics project. Well, its going to be force resultant calculator. for ones dont know how it gets counted.
Well, I'll make 4 input text boxes, and a button in the middle. 1 text boxin the north, (power effect the body from the north) one on the south, one on the east and one on the west.(I've done that part).
Then, ill need it to subtract the north - south and east - west on(release), and display that on a dynamic box called Fx (east - west) and another called FY (north - south) Finally, I'll need it fethagorth the Fx and FY to give me the final force resultant. I've done the 4 input boxes and a button, I'll still need someone gimme the action script for subtraction and fethagorth (or atleast teach me how to do it).
View 1 Replies
Aug 24, 2009
make a input text/search button on my site.
I have a bunch of pdf files in a specific location on my site (mysite.com/pdf).
I want to create a search field where the end user inputs text into a field and flash locates and opens the corresponding pdf file (mysite.com/pdf/myfile.pdf).
View 0 Replies
Nov 20, 2007
I know a few things...draging stuff...play buttons...the basics...But I need to know how to make a button be able to change the color and text style in an input textbox...I've tried various things, but I always got 2+ errors...it's annoying.
View 5 Replies
Mar 24, 2010
I'm trying to extend the text input that comes in flex to support an icon, just like mac os x search text input has a grey circle aligned to the right, the text input has a addChild method, but it didn't work for me.
View 2 Replies
Apr 28, 2011
the last of many problems, is that at the very end of the test, you're shown your score, and you have the option to type your name in a text box and click "save". Doing so will apply you score data (time elapsed, date, correct answers and percentage) along with the name you typed in, and output in a form, that you can save or print off, or whatever. The problem is, the input text box will not let you type in it. If you mouse over it, the mouse stays a pointer, you don't get the text tool. If you click on it, the cursor appears for a split second after you release the mouse button, but you cannot type anything in it.This is the actionscript for the output form:
Code:
//
function saveRecord(record:String, field:String, now:Object, score:Object):Void {
[code]......
View 3 Replies
May 12, 2009
If I have an input text field on frame 1 and I enter text in it then I have a button that say sends me to frame 2. On frame 2 I have a button which sends me back to frame 1. Why when I got back to frame 1 is my text not shown?Why does an input text field go blank when leaving the frame? How can I make it so when i enter text on frame 1 and then go to frame 2 and then back to frame 1 the text i entered is still there?
View 7 Replies
Jan 30, 2012
im just working on my new project. All what i need is, i want to check input text using button, if the value on the input text box is equals 1, trace("true"), else trace ("false").
here's the example link [URL]
the problem is, when im trying to input text to 1, it's always goes to else, which means false. also all number. sorry for my bad english. here's what i did
var check:Boolean = false;
var input1:String;
var answer:String = "1";
[Code]....
View 2 Replies
Sep 13, 2009
I have made an input text field which has in front of it a minus button. In another place I have a plus button. When I fill the text field my plus button becomes able and I can press it for another text field, an so on. My problem is when I press the minus button, because the fields have to rearrange and I don't know how to do that.
View 5 Replies
Jan 25, 2006
I am trying to validate for empty input text field on a button click.
mytext is a variable
inputvalue is variable name for the input text field
on (release) {
_root.mytext = _root.inputvalue;
[code].....
View 4 Replies
Jun 29, 2009
I'm trying to make a button to load an input text field for email addresses. I've been trying lots of different approaches but nothing seems to be working.Code:Quote:
on (release) {loadVariablesNum("subscription.php",0,"POST");
gotoAndStop("thanks");
}
I just need the button to communicate with the PHP code I have setup.
View 0 Replies
Jun 1, 2011
i have two text field, textfield1 and textfield2, and a button..
textfield 1 = inputtext
textfield2 = the output.
when i click the button it will save the text in textfield1 into the textfield2.
View 3 Replies