ActionScript 2.0 :: Numbers And Textinput Component?
Jun 9, 2004
I am using actionscript 2.0, and I actually have a simple question: the TextInput.text property returns the text string in quotes. However, I am calculating something and don't want it in quotes. How do I get rid of the quotes so I can calculate stuff
View 2 Replies
Similar Posts:
Feb 13, 2010
I want that the users will be able to insert only numbers in a specific TextInput.
View 1 Replies
Jun 9, 2011
Is there some easy way to restrict TextInput to accept decimal numbers in range -99.999999 to +99.999999 ?
it is Spark TextInput.
View 1 Replies
Apr 13, 2010
I have a text field (for names) wich must allow all characters, except latin numbers, is this possible? I can't think of a regex for this
View 2 Replies
Jun 11, 2010
how can i restrict the values inputted into my TextInput control in my mxml page to only numbers.
View 1 Replies
Aug 31, 2010
If I drag a textInput from a component and drop it near the end of the another component, the textInput goes outside of the dropZone.
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="150" height="500" xmlns:components="components.*" >
[Code] .....
View 2 Replies
Dec 28, 2009
I have a TextInput component on my stage with instance name 'enteredNumber. And button with instance name 'guessBtn'. After enter some number to my TextInput i want get this number, but can not cause its a text maybe? How i can do it?
var numberToGuess:int=5;
guessBtn.addEventListener(MouseEvent.CLICK, checkAnswer);
function checkAnswer(event:MouseEvent):void {
[Code].....
View 12 Replies
Jan 2, 2010
Imagine I have two TextInput components. How do I know which one is active?
View 1 Replies
Feb 13, 2009
I'm "attempting" to create a tab-like login form that animates with the tweener when rolled over and rolled out. My problem is the textinput component fields can't be accessed inside the movie clip button?
AS2/////
import caurina.transitions.Tweener;
tab.onRollOver = function() {
[code]...
In my project...login is simply two text fields and tab is the animated background.`
View 3 Replies
Jan 10, 2007
I'm using the TextInput component, but it doesn't seem toallow for a word wrap - when you type your letters just keep goingoff to the right and what you typed on the left isn't visible. Ifigure there's gotta be a way, but I looked around in thefiles and couldn't find it? Does anyone know how to do this?
View 1 Replies
Jan 11, 2011
I have a textinput component that needs to have a transparent background. I've tried adjusting the alpha to 0% and 25%, the former doesn't display the contents (white font bold sans-serif) and the latter leaves a shaded background. I've also tried the following:
var tf:TextFormat = new TextFormat; tf.color=0xFFFFFF; tf.font="Sans-serif"; tf.size=12; tf.bold=true; txtlowtemp.setStyle("textFormat",tf); txtlowtemp.backgroundColor=undefined; txthitemp.setStyle("textFormat",tf);
[code].....
View 11 Replies
May 12, 2011
I have a textinput component that needs to have a transparent background. I've tried adjusting the alpha to 0% and 25%, the former doesn't display the contents (white font bold sans-serif) and the latter leaves a shaded background. I've also tried the following:
var tf:TextFormat = new TextFormat; tf.color=0xFFFFFF; tf.font="Sans-serif"; tf.size=12; tf.bold=true; txtlowtemp.setStyle("textFormat",tf); txtlowtemp.backgroundColor=undefined; txthitemp.setStyle("textFormat",tf); txthitemp.backgroundColor=undefined;
However, this gives error 1119 access to possibly undefined property backgroundColor.
How can I create a truly transparent background for these components?
View 3 Replies
Jan 31, 2010
I have a project where a big part of the UI a notebook, where the user enters text in a number of fields, for which it uses a series of TextInput components.Once the notebook is filled in the user switches to a screen where the inputs are disabled and they compare what they wrote to a 'model answer'.The problem is that the last TextInput to have focus at the time of disabling retains it - it appears disabled (greyed out etc) but if you type the letters appear in the field.I have tried variations on Selection.setFocus(null), and it seems that Selection.getFocus() returns null/undefined, but can still type into it. I can't select any of the other textfields, and clicking on other interactive elements - bottons etc doesn't seem to want to remove focus either.
UPDATE - Just to make sure there wasn't something crazy happening particular to this project, if I make a nude flash movie with a textInput and a button, then make the button set theTextInput.enabled = false, I can still type into the field. I can't see any way that's a feature.
View 2 Replies
Aug 10, 2010
I am working on a AS3 only project in Flex....I tried to listen ENTER event when use clicks enter/return in my textinput box....but it seems not working well...I did try using TextEvent.TEXT_INPUT and it worked fine but not Component.ENTER.
[Code]....
View 3 Replies
Sep 4, 2005
How i can detect if my textinput component change? I have some button, if i click in he insert the text in some textinput, and i need to detect this.
View 2 Replies
Oct 27, 2010
how to set a text in a TextInput which is placed inside Movieclip. when ever i set a text its not display on it.I have a MoveClip which contain a TextInput Component. this TextInput have name "letter". when the Application runs it dynamical add the MovieClip like
[AS2] Code
this.timeline.attachMovie("Key_MC2","key"+1,1);
after adding the movieClip i tried to set a Text
[code].....
View 2 Replies
Feb 17, 2012
Whats wrong with this Flex MXML code? I'm getting error messages (error lines marked with "X"). Code is very simple but I cannot find the error.Message both times: multiple initalisation values for standard property "text" of type "string" (translated from german)[code]
View 2 Replies
Mar 5, 2012
I'd like to create a mask for both component textinput and datefield.
I'd like to do something like that [url]...
View 1 Replies
Jun 22, 2009
I'd like to highlight / select text inside a textInput when the user sets the focus on it. My code (that doesn't work):
[Code]..
View 3 Replies
Oct 28, 2010
Dear Friends. Please tell me how to set a text in a TextInput which is placed inside Movieclip. when ever i set a text its not display on it. I have a MoveClip which contain a TextInput Component. this TextInput have name "letter". when the Application runs it dynamical add the MovieClip like [AS2] Code this.timeline.attachMovie("Key_MC2","key"+1,1); after adding the movieClip i tried to set a Text [AS2] Code this.timeline["key"+1].letter.text = "Some Text"; So nothing is displayed on TextInput.
View 1 Replies
Jun 27, 2009
What I am trying to do is rather simple, but I am having problems. All I want to do is pass the values entered into a TextInput component into a Dynamic Text Field I need this to be realtime, so when the user is entering the values it is updating in the text fields. I have 5 TextInput instances and 5 Dynamic Text Fields on the stage The TextInput values need to be passed to the Dynamic Text Boxes.
View 3 Replies
Oct 29, 2011
I have a custom TextInput that listens for the FocusEvent.FOCUS_IN and FocusEvent.FOCUS_OUT events:
textDisplay.addEventListener(FocusEvent.FOCUS_IN, onFocusInHandler);
textDisplay.addEventListener(FocusEvent.FOCUS_OUT, onFocusOutHandler);
My onFocusInHandler function basically removes a "promptview" that tells the user to type in a value, with the onFocusOutHandler doing the opposite.
For example, if the TextInput text was backspaced to a blank value and the user clicks out of the TextInput box, it would show a "Please enter a value" light-gray prompt in the TextInput.
This works fine until the user clicks our custom "Clear" button. The clear button sets the text to "", and I can tell the FocusEvent.FOCUS_OUT is received because the prompt text is set to visible (its not being set anywhere else). The problem is, the cursor remains in the box as if it still has focus, so if the user immediately starts typing, both the prompt text "Please enter a value" and the user-entered text appears over the gray text, which looks pretty ugly and unreadable.
Why does the TextInput receive the FocusEvent.FOCUS_OUT event if it's not actually losing focus?
View 1 Replies
Mar 28, 2012
I've got a custom component (quite complex so I can't post any code here, although that shouldn't matter), that I can add to a view. When the component is deleted from the view or the view is switched I call my own dispose method which removes remaining eventListeners and kills some references so that the component can eventually be nulled and collected by the GC.
All that works perfectly fine until I add a Spark TextInput to the MXML part of the component (it took me hours to find out what is preventing the component to be collected!), so I recon that the TextInput somehow automatically adds some eventListeners.
My question is what are these listeners, or is there anything else I haven't thought of?
View 1 Replies
Oct 22, 2010
I'm having trouble setting the color of the text of a TextInput component. I know there is a TextField within it, I'm trying several methods, but none works:
[Code]...
View 1 Replies
Jun 28, 2009
The update to the Dynamic Text Box is always one character behind what is entered into the TextInput component. For instance my name is Shawn, if I enter "Shawn" into the Text Input the Dynamic Text Boxes will display "Shaw". It will only enter the "n" if I type another character then backspace it, deleting the extra character.
View 7 Replies
Apr 22, 2011
I have an application which displays employee information. If the user opening the detailed employee information page is not authorized to make changes I set the TextInput to disabled. Some users are reporting rendering issues with this. The TextInput's text value does not appear inside the box but is misaligned and is outside of the component. You can see the screenshow below of the disabled ID column where the numbers which are supposed to be in the TextInput box are far off to the right.
[Code]...
View 1 Replies
Jun 9, 2005
This is for mx 2004. How to load variables from an external txt file at the beginning of flash movie...At various keyframes in the scene the movie shows different forms for user to fill in into the TextInput components. As soon as these forms are shown, the TextInput components are pre-filled with default text (the variable values that were loaded, for example "Enter your title here"). I know how to do this in earlier versions easily with the Var variable but now I'm stuck. I've been trying to do something but I keep getting "undefined" in the TextInput.
View 1 Replies
Jun 26, 2010
I am trying to do a simple CSS declaration. However, I got the warning above and not sure how to solve it. I thought s|(type) should declare the style for me
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";[code]....
View 1 Replies
Jun 9, 2004
I am using actionscript 2.0, and I actually have a simple question: the TextInput.text property returns the text string in quotes. However, I am calculating something and don't want it in quotes. How do I get rid of the quotes so I can calculate stuff?
View 2 Replies
Sep 8, 2011
I have an problem that i want to add textinput or Any Component to TextArea Component..
View 1 Replies