textfield

Effects on htmlText in a TextField

In Flash when you set text in a TextField object with the htmlText property, changing the alpha value no longer works. Is there a way around that? ...

jQuery Set Cursor Position in Text Area

How do you set the cursor position in a text field using jQuery? I've got a text field with content, and I want the users cursor to be positioned at a certain offset when they focus on the field. The code should look kind of like this: $('#input').focus(function() { $(this).setCursorPosition(4); }); What would the implementation o...

How do you programmatically move the caret of a Flex TextArea to the end?

I'm trying to move the caret in a Flex TextArea to the end after appending some text from my code. I've looked through the reference documentation for TextArea and its underlying TextField but it appears there is no method provided to handle this. One approach I've tried is to set focus to the text area and dispatch a KeyUp KeyboardEven...

How to switch views by buttons on iPhone?

I want to switch 3 views and let them switch from 1-2-3. The first view is to let users input name and password, the second view will show his information to let him confirm and the third view will show him a list of options so he can choose what to do next. The problem is how to switch these views? If I use a navigation controll to swi...

Avoiding cursor change over dynamic text fields in Flash CS3

I have a dynamic text field inside a MovieClip symbol. Whenever the mouse pointer is hovered over the symbol, the cursor changes to the I-shaped text editing cursor. This may be a very stupid question, but is there any way to avoid this? Not even using mouse.hide() keeps the "I" cursor from appearing. ...

Change color of a dynamic textfield problem

I have this code that should change the color of a dynamic textfield when I rollover the link movieclip, and then back when I rollout. I get no compiler error, it just doesn't work. function textColor(mc_function:MovieClip, tf_text:TextField) { mc_function.onRollOver = function() { tf_text.textColor = 0x7cb0b7; }; mc_function.onRollOu...

Auto-complete text field

How do I make an autocomplete text field like the one here at Stack Overflow for the Tags fields? I want to use it for my Rails app. ...

TextField Example in Cocos2d

Can anyone please suggest me some links for using textField in cocos2d. I want to press on label, then textfield should get selected and i need to edit on that textfield. Please help me on this ...

Updating text from textfield from one scene to other

Hi All, I am having a problem in placing data(textField text) from one scene to another scene. I'm attaching my source code with this mail. Please help me if anything wrong in my code. // // PlayerSettingsAppDelegate.m // PlayerSettings // // // #import "PlayerSettingsAppDelegate.h" #import "TestScene.h" NSString *result; ...

AS3 access dynamic textfield on stage from a class

I have this dynamic textfield on stage, and I want to access it from my xmlloader class, so it can display text from my xml file. I just can't figure out a way to do it. ...

Flash: Antialiasing characters on dynamic textfields without embedding fonts, in japanese

Hi, I'm trying to achieve antialiasing on dynamic textfields in flash on a Japanese site. The content of these textfields is not fixed data. I don't have the option to embed the fonts, since embeddeding all characters will result in a very heavy swf file(3000kb+ just for the fonts). This is due to the fact that there's a large number o...

Flash AS3 - how to set Imported textfield movieclip as unselectable

Hey there, I created a graphic in Flash CS4 that contains text. I embedded the appropriate characters then saved it as a MovieClip into my library. I then exported it to an SWC file. In my AS3 code (using Flex SDK/notepad), I then import the movieclip and assign it some mouse events so I can use it as a button. Unfortunately, all the ...

AS3: Setting default font, color, etc. of a TextField using the StyleManager class

I'm trying to get StyleManager to have some effect, to no avail. package { import flash.text.*; import flash.display.Sprite; import fl.managers.StyleManager; public class StyleManagerExample extends Sprite { public function StyleManagerExample():void { StyleManager.setComponentStyle(TextField, "selectable", false); ...

How do I reference group data in a textbox on Reporting Services?

I'm creating a report with a table that is grouped by a department code. There's a page break at the end, so each page only has data for that department code. Outside of the table, I want to have a textbox that contains the department code for that page/group. I've tried using a hidden column with the data, but the textbox only ends up ...

Rails auto_complete plugin

I'm using the auto_complete plugin and have a simple autocomplete textfield by writing this in my controller: class PrivateMessagesController < ApplicationController auto_complete_for :role, :name and this in my view: <label for="recipient">To:</label> <%= text_field_with_auto_complete :role, :name %> I want to improve the au...

Know when a hyperlink within a Text Field is clicked?

In Flash, is there any event when the user clicks a hyperlink in a TextField? ...

MS-access wrong date format when converting field from text to date/time

Hi, I have an access database given to me where all the dates are stored in a text field in the format mm/dd (eg: 3/13/2009 12:20:36 AM) I want to convert the field to a date/time but access formats it as dd/mm which makes it so that if the day is bigger then 12 or not the converted date might be wrong. Example with the current forma...

How do you prevent arrow up/down default behaviour in a TextField?

I am making a input field for keywords, and while the users writing I'm displaying suggestions for keyword on a list underneath the caret position. The input field is single line, so I am using the arrow up/down key to select a suggestion and Enter to insert it. And it's mostly working, with the big exception that the up/down key also ch...

How can I stop Flash from changing indent when user Clicks on hyperlink in TextField?

I have a TextField which I initialize by setting htmlText. The text has anchor tags (hyperlinks). When a user clicks on the hyperlink, the indentation of the second and subsequent lines in the paragraph changes. Why? How do I stop it? My html has an image at the beginning of the line, followed by the tag, followed by more text. To sty...

Set default value for Search field - Please Help!

Hi, I'm trying to set a default value for a search field. The idea is that the Search-Field has the value "Search" until the user clicks into it, then it should be empty. Also as long as it is "blank" (with "Search" as the value) it should have the class ".blank". I tried this <input autocomplete="off" class="" id="searchq" name="sea...