textfield

Problem trying to dynamically create a tabbed navigation with dynamic text

Hi everyone, I'm creating a tabbed navigation from an XML file. However for some reason my loop only creates textfields for the active tab and the last tab (in this case the 4th tab). > You can preview my Flash here. < (I turned textfield borders on) My Issues: 1. The Active Tab (light colored tab) does not size correctly based on ...

How do you scale a dynamic textfield in flash from the center point using as3?

I'm trying to make a text effect where on every frame the textfield increases in size and decreases in opacity. I'm using the scaleX and scaleY properties of my dynamic textfield to enlarge, but it's doing so keeping the left registration point fixed. I want to make it scale up radially outward, or with the center point fixed. Can any...

Accessing children elements in a SWC

Does anyone know if its possible to access children elements in a SWC? I have created some MC's and inside of some of these MC's I have some dynamic textFields. I export the content to a SWC and load it into my Flex project. No problem loading it or accessing the parent elements, they display fine. But I want to access the textfields...

How to filter keys in MIDP TextField?

I have a TextField.PhoneNumber but I would like to filter out "+" character. Another words, I need a new constraint for TextField. Is there a way to define a new constraint with TextField? How about preventing keys from cycling on a mobilephone within a midp? Thanks in advance. ...

AS3 TextField.textWidth ignore whitespace at end.

Hi I'm trying to calculate the textWidth, but it seems to ignore the white spaces at the end. The text "Hello" "Hello " returns the same text width. A string with " " returns 0. How do I calculate the width with the space? ...

Call a class in Managed Type Form

Hi, Have a problem that has been bugging me for a couple of weeks now. I want to do two things... Change a textfield text or picturebox image from a native function.....It happens in the managed type(eg Form 1)....How can I change this image or text externally from the managed type... I'm getting the obvious code. C2065 - undeclar...

How Do I handle IOErrors From HTML Enabled Text Fieds in AS3

If I'm loading images via the <img> tag in a dynamic text field and an IOError is thrown, what would I attach the event listener too? the text field? I tried this... var textField:TextField = new TextField(); textField.htmlText = "here is some text <img src='image.jpg'> and then some more"; textField.addEventListener(IOErrorEvent.IOErr...

iphone sdk - TableView Cell with custom TextView - Get New Data

Hi guys I have a tableview cell with a custom textview in it, I am now left wondering how do I possibly access the text in the textbox after text has been edited/added. I would normally know how this is done when I draw the textfield through IB, but my textviewcell is dynamically drawn. (i.e. I would like to capture the data that is u...

Xcode - How do I specify what can and can't be inputted into a text field?

Hey guys, I basically have a working hours calculator in the works and I was wondering how I can disable certain numbers from being put into a field. For example, for the minutes field, I would like to prevent 61-99 being inputted. What sort of code would I need to make that work? ...

Broken htmlText in Actionscript 3.0 - funky display from incremented display using string.substring

This is an issue with textField.htmlText in actionScript 3.0 and the class I'm making for it. In an attempt not to post my whole class, I've managed to boil down the problem to what seems like a silly and almost impossible-to-overcome issue. It seems that TextFields (specifically, ones created with ActionScript) have an unbearably hard ...

Is it possible to control the size of a TAB character in a Flash/Flex TextField?

I figured out how to get a TextField to maintain focus when the tab key is pressed (using an event listener on FocusEvent.KEY_FOCUS_CHANGE), but what I'd like to do is control the size of the tab character in the TextField so that it is equal to five spaces. (I would just insert five spaces when the tab key is pressed, however due to req...

Automatic Set Japanese on Textfield focus

Hi . I have a web application. It is running on struts framework but i dnt think it's relevant to my question. :) I want that when I click or put my cursor on my textbox I can directly type japanese katakana, hiragana and kanji characters. Windows has this IME which enables you to type these characters by enabling japanese or any lang...

How to make browser do a set of predefined inputs?

Hi, There's a website I frequent that gives codes such as GD??Q-TPY32-TPTT3-9CM9P-F2QMQ and hints that the ?? is a number and a letter. If you're the first to unlock the code you can redeem the modest prize. So the obvious way to solve this problem is to brute-force the code. But obviously I don't want to sit in front of the computer ...

Java - pattern for textfield

Hello, I want user to type some text in JTextField and it must match some "pattern". Pattern is - int x, String("hours"), so f.e. 5 hours ; 12 hours etc. I googled something with patterns, matchers, regex or whatever, and I am pretty confused. If someone ever experienced similar problem, or knows how to handle mine, please post. Or at...

How do I disable a textfield?

Hey! I have a textfield which displays a result but I don't want it to be accessible by the user as in I don't want the keyboard to come up. How would I go about that in text? ...

Text field methods such as getLineLength returning 0 chars in actionscript

I am creating a TextBox class that extends textArea in actionscript in adobe flex. Let's say I create an instance of this TextBox class called textBox1 and set the text equal to a textArea called textArea1 that contains a sentence: textArea1.text = "Jack and Jill went up the hill"; textBox1 = new TextBox; canvas1.addChild(textBox1); ...

AS3 TextField is blank, doesn't accept any of my settings??

Having a strange issue with assigning a TextField to a movie clip. nameFormat = new TextFormat(); nameFormat.size = 14; nameFormat.color = "0x000000"; nameFormat.border = true; nameFormat.font = "Arial"; charName = new TextField(); charName.defaultTextFo...

How do I make my browser brute force an input field?

Hi, There's a website I frequent that gives codes such as GD??Q-TPY32-TPTT3-9CM9P-F2QMQ and hints that the ?? is a number and a letter. If you're the first to unlock the code you can redeem the modest prize. So the obvious way to solve this problem is to brute-force the code. But obviously I don't want to sit in front of the computer f...

Need help! how can i resize a JTextField?

help me please.. ...

Change value from flex in a TextField exported from Flash through a SWC

I created a MovieClip symbol in flash containing a dynamic TextField and a background. I exported it in a SWC(using this method) and I'm trying to use it from flex. When I try to change the default value of the text field the new value is not displayed(indeed the default value I put in flash is cleared on screen, but in the debugger it s...