ActionScript 2.0 :: Saving Info Into Input TextBoxes
Mar 18, 2004Is there anyway to make save information that people have put in input text boxes. For example they could put the info in and then save it so it will appear next time.
View 1 RepliesIs there anyway to make save information that people have put in input text boxes. For example they could put the info in and then save it so it will appear next time.
View 1 RepliesIs there anyway to make save information that people have put in input text boxes. For example they could put the info in and then save it so it will appear next time.
View 1 RepliesI have created some input text boxes using AS3. For starters, unless I set the text in the code to = " " you can't type in them. Secondly if I click on each box individually I can type in them. However if I tab through them I can't. Here is a link to the site I'm working on. I'm referring to the calendar / bookings form on the first page. To see the form just click on a date after today. [URL].
View 3 RepliesI am new to flash and trying to output numbers I have put into textboxes with a button.
My code so far:
var myArray: Array = new Array();
myArray.push(Number(textbox1.text))
myArray.push(Number(textbox2.text))
myArray.push(Number(textbox3.text))
button1.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
trace(myArray);
});
So I have made 3 textboxes and a button, I run this and when I input info into these textboxes and hit the button it displays 0,0,0 like it doesn't read the numbers I have inputted into the textbox.
I'm trying to set up a calculator for a couple of formulas I need to use for some schoolwork. I thought it would be a lot easier if I could just put the numbers in there and hit enter.I can't figure out how to transfer the numbers from the input box to the dynamic box though =/. I figured I'd try to get going really easy, just do a input box, when you click on a button, a dynamic box displays whatever is in the input box. I cant get it to work though . I tried various variations of codes, Heres some of them:
[AS]
this.btn.onRelease = function(){
this.outp.getProperty(this.inp)
[code]....
I have an input text box with the instance inputnameone. On another page I have a dynamic text box with the instance outputnameone. When I press button with the instance "submit", I want the information in inputnameone to go into output name one. From the basic as3 I've been able to learn I've written this actionscript:
submit.addEventListener(MouseEvent.MOUSE_DOWN, transfernameone);
function transfernameone(e:MouseEvent):void {
outputnameone.text = inputnameone.text;
[code]....
1.) How to use the info from a datagrid in an if statement:
for(var i = 0;i>win.length;i++){
if(win != "get info from datagrid to block"){
}}
2.) Get all entries that are in a datagrid and run this a function() on their label names. Not just the selected ones.
I could sift through all HTML pages and write code that extracts the information, or even start from scratch and do the same for AS files, but I'd rather not.
I would like to use the ASDoc information from one set of classes in another SWF. Is there any way to export all the ASDoc information to XML format, or something that is easy to parse?
Such as:
Code:
<class name="DebugText" description="A lightweight, visual debugging tool." author="IqAndreas">
<property name="text" namespace="public" returns="String" throws="Error bla bla"
[Code]....
How would I? I tried dataProvider saving to a var, but to no avail.
View 3 Repliesi have 2 input textboxes where i have added the text "< Write here >"PHP Code:instanceName_txt1.text = "< Write here >";instanceName_txt2.text = "< Write here >"; i want it to disappear when i click to write in the textboxas i remember in as2 it went like this
PHP Code:
instanceName_txt1.onSetFocus = instanceName_txt2.text = function(){if (this.text == '< Write here >') this.text = '';}
[code].....
I have an input textbox on the stage and I can't seem to set its text when I do
Code:
inputbox.text = "A";
inputbox.appendText ("A");
inputbox.htmlText = "A":
The idea is when I click on a movieclip I want the input textbox to show the value of one of that movieclip's properties. Then I can change the value using the textbox if I want to.
So I'm building a little contact form in flash and it works, but it is passing along all of the font styling information into the email sent to the client. Kind of annoying. I want it just to send the plain text.
Here's what I'm using:
This code is in the actionscript, picking up the input text fields and posting them to the PHP file. It also tells a status box to update with current info:
Code:
loadVariables("send_email.php?flashmo=" + random(1000), this, "POST");
message_status.text = "sending...";
var i = 0;
[Code]....
I'm currently creating an interactive game for teachers that works around the teachers inputting Q and A's into dynamic text boxes. I've been searching for so long and posting on so many sites to see what the code is to save the input text.In more depth, The finished .swf contains multiple dynamic text boxes for where the teachers input their desired text. I was wondering whether they can then save the inputted text to the .swf without having to own Flash CS4.
View 13 RepliesI have an input text field that the user is going to type their name into in a form and then press 'next'.
After they press 'next' I want their name to show up in the next form (which all will be contained in one movie clip on the same html page)
I'm sorry this is a question from a server ignoramus, I've previously captured user input using a combination of cfml and text files. That was way back in 2002 and using AS 1.0. I'm now working in an environment where the server guy won't put any scripts on, and I mean none, no PHP, no ASP, no CFML, nothing. Would anyone know if there is a way of capturing user input without using a script, please? This prolly shows a really basic lack of understanding of how servers work but I'm a bit desperate. I know the Flash Learning Interactions can work with SCORM and pop results into LMSs that use SCORM and our LMS does use SCORM, but it seems to only be within the learning interactions and I don't know where to start to tailor this for the input I need to capture.
View 2 Repliesi want a solution or sample file of exactly how to save a flash input data to xml file.. im really new to xml.. i dont know how to script it in flash. Ex: there will be a two fields of input... 1) text input... 2)checkbox input/ other... and a submit/ save button the above will be in flash interface.... so when i run the file and key in the data into the text input box or other.. the data what ever i key in has to reflect in XML that means it has to save the data in XML... so that i can open the xml and have look of the data wat ever i have keyed in..
im really badly in need.. what action to put where and how to create xml. what to put in that... i know some of you really would have done this.
I created a funky mail form and i can't seem to send the info from the input boxes in my flash file... to the PHP script, stuff it into an email, and then send back a success or error response. I am attaching the FLA and PHP files as well as the external .as files that are needed for the FLA's effects to work. [URL]
View 1 RepliesI have some scrolling content (info). I've also made my own scroll bar.I want the scrollBar dragger to be positioned in relation to the info._y as the user scrolls info.I have created two vars: one that worsk out where info._y is as a percentage and the other that works out where the scroll._y dragger should be as a percentage...
Actionscript Code:
var scrollBarPercent = Math.round(scrollBar.dragger._y / [code]........
also onMouseWheel working too.I need a small bit of code that takes the % of info._y and moves the scrollBar dragger to the same % but in relation to the Stage.height...so if projectGalleryPercent = 50%, make dragger._y 50% of Stage.height using scrollBarPercent.
i have a textbox (totaltxt) within a movieclip (link_mc) which is on frame1, and i am trying to access the contents of totaltxt and put it in another textbox called totalround1 in frame2...e.g. if totaltxt = 100 then totalround1 should equal 100 aswellthis is my failed attempt:PHP Code:totalround1.text = Number(link_mc.totaltxt.text);
View 1 RepliesI am trying to use arrays with textboxes. What I initially wanted to do was have 3 textboxes ( a, b and c) and when the user inputs information into the textboxes:
Textbox A: Tea
Textbox B: Coffee
Textbox c: Softdrink
It stores the information into an array that I can later view and call upon these strings inputted into the array.
I have been designing dynamic pages with Flash and I can't seem to apply effects such as simple motion tweens and alpha effects to it
View 3 RepliesDoes anybody know any reason why I can't use variables loaded from a text file using loadVariablesNum anywhere but in the Var field of a text box? If I try this:
The loadVariablesNum ("textfile.txt",0);it loads the textvariable1=3.14159&variable2=cowfrom the text file, and if I make 2 dynamic text boxes with the Var parameter as variable1 and variable2, they'd have "3.14159" and "cow" show up in them when I run the script. So I know that the textfile is being read and the variables are being loaded.But if I try newvar1=variable1;newvar2=variable2;in my code, and then put newvar1 and newvar2 in my textbbox Var, I get nothing in them. I should be able to assign the newvar variable the same value as variable1, but I can't. trace (variable1);should output the text "3.14159" when run, but it displays "undefined" every time.Every site I have been to says I should be able to access my loaded variable values simply by using variable1, or _root.variable1, or _level0.variable1, but none of these work any differently.
I can assign an instance name to the textbox and then assign a value to that instance name, and if I do that, assuming the instance name is "box")
[Code]...
I had an onEnterFrame script that would make a cypher of some letters for you. I thought it would be great if I could wrap the code in a function so I could apply it to multiple textboxes at once. Since doing it (wrong!) it only actually does what its supposed to on one of the textboxes. What am I doing wrong?
To make this work you'll need a two textboxes, one with an instance name of text_one and one called text_two
Actionscript Code:
// The String that will reveal itselfcypher_characters("text_one", 10, 5, 2, text_one);cypher_characters("text_two", 10, 5, 2, text_two);function cypher_characters(characters, time_until_start, time_between, frequency,
[Code].....
The following code are used to generate textboxes for my game, but I couldn't remove all of them by using removeChild. Is there a way to remove them?[code]...
View 2 Repliesi have a code which i manage to load the xml into an xmlList. What i want to do, and having problems with is sorting out the different nodes inside the xml, so that i can display them in their individual textBox. At this point i am displaying some information in one textbox, but i think i need to change that and go in a different direction. Could anyone have a look at my codeps: i removed the url from the URLRequest cause i wasnt allowed to post links.
Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);
[code]......
Any quick way to check a dynamic textbox to see if it has text is there a function to do it?
View 4 RepliesI have two input text boxes. I need to enter a number (1900) into the first box then hit the 'Enter' button, then enter a number (50) into the second box right below the first.
After the 'Enter' button is pressed it needs to lock-in the required value, by selectable = false.
My problem is...I can get the first number to work. I type in the number, press 'Enter', it changes the textbox value to selectable = false...everything is good for that part.
But the second number is where I am having trouble, it seems the function is called, but that's it...nothing else happens.
I am completely stuck on why I cannot change my text. I want to change the text of some textboxes via actionscript on the 1st frame of the main timeline.
I have 3 rows of text (Action, Condition, Standard) in 2 columns. I cannot change the text in the 2nd column at all. [URL]..
I'm trying to make a banner whic the user can edit his Preferences in a xml file. My xml file looks like below.
[Code]....
the goal is that i can parse the item associated with textboxes. as you can see i'l try my best but i kinda stuck on the second forloop.
Is if i have a textbox, name_txt, i can clear it with a function[code]....
which is great, but i don't just have one textbox. i have lastName_txt, age_txt, etc. how can i reuse my one function for multiple textboxes?