ActionScript 2.0 :: Only Allow Letters To Be Inputted Which Have Not Been Inputted Before And The Empty Box To Be Inputted
Aug 15, 2011
i am having a problem restricting an input text im not sure if this has to be done in two ways or can be solved in one. what i want to do is only allow letters to be inputed which have not been inputted before and the empty box to be imputted i have tried
imput_txt.restrict = "a-z^Letters_str";
but this seems to only let me enter the letters except for LETRST ive tried putting the string outside the qutation marks and other variations i have also tried it with /'s around and before the string.
I have an input field that asks for a .swf name - you enter the name, hit SUBMIT, and Flash loads that .swf onto the screen.I've coded for an error to appear if the user doesn't input anything, but how to I test to see if the swf exists, and if not, return an error?I have a function called onSwfLoad that runs when the swf loader finishes, triggered by anEvent.COMPLETE in the swf loader event listener - is there something I can put in an if statement there to test if the swf loader found a file?
and a submit buttonI would like to be able to add up all the numbers inputted into the first three dynamic fields by the end user and the result displayed on the 'answer" field.
I have been instructed to develop a banner that has a text field for a user to input a zip code and when they click locate, a URL is opened with a static url.com address + the zip code they entered.
For example [URL]
When user inputs the zip code 92912, a getURL is opened with the website located [URL]
what actionscript I have to use to add the input text to the end of the URL, or how this can be done?
I have been instructed to develop a banner that has a text field for a user to input a zip code and when they click locate, a URL is opened with a static url.com address + the zip code they entered.
For example [URL]
When user inputs the zip code 92912, a getURL is opened with the website located www.testsites.com/92912 .
what actionscript I have to use to add the input text to the end of the URL, or how this can be done?
I have created a form which sends the inputted values as an email. The file takes a name, delivery address etc and also should allow a quantity to be input. There is also an option where a different delivery address can be specified like so:The code looks okay, with no compiling errors, but the 'user input quantity' does not work and when changing different address,
I am trying to compare a user inputted string to a variable already created. When I do this with int it works fine but when I try changing it to strings I can't get it to work.
I have a stage listener for keyboard events, that triggers one of two error checking functions for text field inputs depending on which movieclip the fields are in. Text fields in certain movieclips trigger a function that checks if the entry is between a certain numerical range, whereas the textfields in the other movieclips test to make sure the text fields aren't left empty.
It works fine apart from me not accounting for keyboard events other than letters, numbers and punctuation, or, among others, the Shift key.
So what's happening now is that keyboard events outside of numbers, letters and punctuation are triggering an output error.
I'm creating a learning activity for one of our biology classes. The basis of the activity is to test students ability to transcribe and translate DNA into other sequences.I have a dynamic text field where the student would type in a 36 character sequence.
I already know that I can use an if statement to see if all 36 characters are correct. I was wondering if there was a way to individually check each letter the student typed in is the correct one for that line. So if UUAACCGG is the correct answer, I want flash to check and see if the third character is indeed A or not.I know I can do this with 36 individual text boxes, but I was kind of hoping to get away with just one big text box.
I'm trying to do a check to see if the user inputed a number into an input text field. I'm also running a check to see if the user has left the input blank (which works just fine), but I can seem to get the NaN function working.
(using actionscript 2.0 w/ flash CS3)
Quote:
this.btn_step1next.onRelease = function() { if ( zipcode.text == "" || zipcode.text == isNaN() ) { message.text = "Please enter your ZIP code to continue."; } else {
I'm creating a learning activity for one of our biology classes. The basis of the activity is to test students ability to transcribe and translate DNA into other sequences.I have a dynamic text field where the student would type in a 36 character squence.
I already know that I can use an if statement to see if all 36 characters are correct. I was wondering if there was a way to individually check each letter the student typed in is the correct one for that line. So if UUAACCGG is the correct answer, I want flash to check and see if the third character is indeed A or not.
I'm creating a learning activity for one of our biology classes. The basis of the activity is to test students ability to transcribe and translate DNA into other sequences.
I have a dynamic text field where the student would type in a 36 character sequence.
I already know that I can use an if statement to see if all 36 characters are correct. I was wondering if there was a way to individually check each letter the student typed in is the correct one for that line. So if UUAACCGG is the correct answer, I want flash to check and see if the third character is indeed A or not.
I know I can do this with 36 individual text boxes, but I was kind of hoping to get away with just one big text box.
I'm wondering if purepdf has the ability to save formatted text from a user-inputted text field. If so, how is this achieved? From what I understand, purepdf is basically iText, and I believe iText has the ability to parse HTML and save formatted text into a PDF. Does purepdf have that same functionality that I can tap into and plug in 'textfield.htmlText' somewhere?
I have a list of 99 item (something like a phone book) and I will like to sort them in different method. Part of the 99 item might be empty, so the requirement is to move the empty field behind the sorted data in every sorting behavior, here the code we have so far:
I'm trying to find a way to add to the front and back of a word in a string based on the letters it starts with.
For example if I had a string "I think http://www.facebook.com/ is better than http://twitter.com" it would look for the instance of "http://" and give me "I think <b>http://www.facebook.com/</b> is better than <b>http://twitter.com</b>"
I am having problem with the text tool on flash version 8 the problem is that I am seen some blur letters when I preview my swf on explorer using dreamweaver version 8. I trying to find out what could cause the blurring the properties of the text is arial size 10 and verdana size 10. For example the period on the small i in some words look different.
Good technigue for finding out if a string has any letters?I'm not looking for a specific letter, I just want to search a string and find out if it has any letters.
I'm starting using the CS4 version of flash, and in my codes, every word is "missing" the last letter. It's not really missing, we just can't see it, or see only half of it. Did it ever happen to you? If so, how can I fix this?
I know how to catch usual lowercase letters. I'm using KeyboardEvent.KEY_DOWN and compare the code to the ASCII table to find out which key was pressed. Now, I also want to be able to find out if there is, for example SHIFT+A pressed, and I have no idea how to implement this. I mean, in my program SHIFT and A are absolutely different keys which have nothing to do with each other, and they both will call KeyboardEvents when pressed. In Georgian alphabet some letters are typed by combination of SHIFT and English letters, for example W on Georgian keyboard means წ, when SIFT+W means áƒ. Absolutely different letters, as you can see. And I want to be able to catch both, coz I'm currently developing Georgian-language game.
I need to append 4 letters to my variable name when referencing it to get either spanish or english XML data. I am trying to reuse my functions without writing an if statement.
like so:
//two options for var spa_my_videos:XMLList; var eng_my_videos:XMLList;
I want to convert text to audio and I was told that there is a way to assign a sound to every letter and then I would just have to concatenate the sounds to form words
For a rather complex search function I need to get the first letter of each word entered into an input field. At first glance this may not seem like a big problem if every word is neatly seperated by a space.
Although people can enter whatever they want into the field I only want to work with the words that start with a-z or A-Z.
I'm having a bit of trouble figuring out how I can determine if a character in the string falls into this selection. One of the possibilities is to use charCodeAt(), but that's rather rough. I can walk through the string using indexOf() but I may have trouble finding the next word if characters other than a space come into play.
There have been many posts about how to draw letters dynamically. This is an example of drawing the font outlines dynamically. Not the same as "writing" them, but an interesting technique [URL].