say I've got an input field and I want the entries to be UPPERCASE, how can I set this up in flash so that these characters appear capitalized even if the user doesn't have CAPSLOCK on? I've tried myTextField.toUpperCase(); but this doesn't work.
I've got an input field and I want the entries to be UPPERCASE, how can I set this up in flash so that these characters appear capitalized even if the user doesn't have CAPSLOCK on?I've tried myTextField.toUpperCase(); but this doesn't work.
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 have to create something that loads text dynamically and then you can input words and it determines if that word is in that dynamically loaded text. I have to output a statement for three different reasons.
1. If the word is not found 2. If the word is found 3. If the word is found, but it's not the same (Ex. You enter hello but the word in the text is Hello)
I have it all working for the moment using functions etc....but the one thing I am unsure about is how to determine whether the character is uppercase or lowercase or maybe there is another possible way so that I can print out the 3rd reason from about.(telling the difference from hello and Hello.)
The whole thing is based off a tutorial I found here: [URL]
just got rid of the find next button and added an output msg box.
I would like to check if there is a way to configure Flash Media Server(FMS4) to support media content suffixes used to stream MP3 content, e.g MP3 suffix in uppercase and not just the defualt mp3(lowercase).
user will give answer in input text field, so i wrote like this,
[Code]...
but problem is if user type Gyan or GYAN, it will say wrong so how can i fix this problem, can we write in UPPERCASE while caps Lock is off, or can we restrict UPPERCASE in input text Field?
On the button class below the text is set to toUpperCase();. When the XML is fed into the text fields of my buttons it is making every character uppercase. Does anyone know how can I get mixed casing where only the first letter of each word is capitalized?
I got this text that I want to convert to uppercase...the problem is that my server is linux, and files are case sensitive..So I need to convert the text to UpperCase, except what's inside the html tags.This prototype removes the HTML tags... convert this to, instead removing the HTML, ingore the text to become upperCase?
Code: String.prototype.removeHTML = function(){ var temp, i; var xStr = this; var total = xStr.length;
What would be the best way to simply take a string like
var myString:String = "Thi$ i$ a T#%%Ible Exam73@"; and make myString = "thiiatibleeam"; or another example var myString:String = "Totally Awesome String"; and make myString = "totallyawesomestring";
I am doing a mailing list sign up and my input text doesn't seem to have the letterSpacing settings working.
My input text's instance is set to Semail.
I don't have any var set to it. I am using loadVariables to interact with the PHP.
I am using the codes below to set its letterSpacing but it's not working.var email_fmt:TextFormat = new TextFormat(); email_fmt.letterSpacing = 1; Semail.setTextFormat(email_fmt); My other dynamic text are working fine for the letterSpacing part. I am using CS 3 and Flash Player 10.
What could be the reason? Is input text different from dynamic text?
Just wondering where I find a list of what can be error checked in input text fields?I'm looking for things like...- checking that letters and not numbers are entered- checking that an entered number is in a certain range
When I put focus on input text, I get Error #1023. mc.tabChildren = true; mc.tabEnabled = true; mc.getInputTxt().tabIndex = 0 mc.addEventListener(FocusEvent.FOCUS_IN,updateFocus); private function updateFocus(e:FocusEvent):void{ stage.focus = e.currentTarget.getInputTxt() }
I am a newbie still practising "Form-2-Email" kind of code with flash 8 AS2 . But in my case,(using the submit-form method) i am designing a scenerio where the user can request/submit for a change of password.In my code,i have the following textfields as input text boxes -> oldpass, newpass,rtnewpass,emailadd...n finally a dynamic textfield named status.text.my work isn't ready to run on a (php)server yet.But i have wrtten the codes to make sure the flash form is ready to send variables to Php.My problem is when i test the flash form,my dynamic text message "static.text" does not pop out the required "error messages" when users make a wrong entry. i dont know if i have been able to make my question clear enough but here is my code;
//This is te Function on my AS layer......... serverFile = "mail.php"; function formValidationChecks() {
I have text input boxes. There is validation for each of the boxes using numberValidator. Now, the thing is that am using alert box to show if any error occurs.
Flowchart ::
1> Insert value in textBox.
2> NumberValidator validates the input on "trigger=change".
3> If error, alert message is displayed. The user clicks OK to go back to form.
4> Focus set back to the TextBox.
5> But, alert box makes the text input value blank / null. i.e. Both the previous error value entered by user and the default correct value will not be displayed now.
Display the most recent correct value that was entered in the text box. Not the default of any other, but the most recent correct value entered by the user.
I have a form with a horizontal layout and with this TextInput: <s:TextInput id="platformNameTI" showErrorSkin="true" showErrorTip="true"/> I have a simple validator that just checks if there is something entered (required field). My problem is as the layout is horizontal, when an error occurred (required file missing), all form items are shifted because of the error icon. Is there a way to delete that annoying icon or force the component to not display it?
I'm developing a series of learning aids and the final screen requires the user to input some text.I have it working correctly but now need to make it a little more user friendly.At the moment the only way for the user to input the text is to click in each box. There are a total of 6 input text boxes.I would like to direct the user to a particular input text and then have them be able to use the tab key or the enter key or mouse clicks to proceed.As the first step I added the stage.focus = inputStarName1. See code below. As soon as I added the stage.focus = inputStarName1 line I get the dredded error 1009 when the code invokes TypeNames.What do I need to do to get rid of this error?
hey im trying to make a mp3 player and when u click on a play btn it plays that song. but i keep getting this output error "Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error. at slide_fla::MainTimeline/frame1()" this is my code
ActionScript Code: import fl.transitions.Tween; import fl.transitions.easing.*; var slidebind:Rectangle = new Rectangle(3, 3, 159, 0); var loadsnd:URLRequest = new URLRequest ("s1.mp3"); var thissnd:Sound = new Sound();
If i have two or more input boxes to create a crossword puzzle, how can i make the cursor automatically jump to the second input box after the first input box is filled with a character?
i created an input text box that puts the users input into a global variable, but when i test it it gives me not only what i have typed in but all the html formatting for the font that my input text box has on it.I only want the text that i have typed in to go into the variable but the wackload of html is going in there too. ive tried a few different things, rewriting my code, recreating the text box, changing settings, dont know what im missing.
I'm trying to build a fahrenheit to celsius convertor in AS3. How can I test to see whether what is input into a text input box (flash component) is not a number? This isn't correct but you can get an idea of what i'm trying to do:
if (celsius_txt.text == NaN || fahrenheit_txt.text == NaN) { //do something; }