IDE :: Textfield Backround Color/highlight?
Jun 19, 2009ive been stuck for an hour on trying to apply a backround color to my dynamic textfield (highlight). is this possible?
View 5 Repliesive been stuck for an hour on trying to apply a backround color to my dynamic textfield (highlight). is this possible?
View 5 RepliesI want to set the background color or highlight color of selected text in text area in Flex as we can set highlight color of text in MS Word. And after setting this highlight color user can also edit this text without disappearing this highlight color.
View 1 RepliesHas anyone successfully change the tab highlight color? It's default is green.
View 1 RepliesI did a search, but couldn't find my issue, which was rather surprising. I have an actionscript 3.0 component (flvplayback) and I want to simply change the highlight color from the default green color. You used to be able to do this by a style manger "halo" color or something I don't remember exactly (AS 2.0), but this doesn't work w/ 3.0 components. I thought I could double click on the component in the library, but I can't seem to change the style that way either. I have also tried to place individual items on the stage, like the play button and change the styles there, but it doesn't inherit the changes to the flvplayback component.
View 2 Replieshow to change the color from the default blue that the list component uses for the currently selected item.myList.highlightColor = something; ??
View 2 RepliesChanging the highlight/selection colour for selected text in a text field? At the moment with white text on a black background it seems impossible to discern what text is selected.
View 2 Replieswhy to make text in a text field highlighted(beckground color)?
I know there isn't any property like that for textfield or text foramt but there is an action named highlight in flash and I dont know what it's for.
How can i change the color, when the user mouse over an item on datagrid or tilelist. Basically once the user mouse overs and once the user selects a file. How to change the default color to something else. The default is blue and i dont like it :)
View 3 RepliesHow can I turn every specific character in a word in a textbox to specific color? this works like highlighting. If I have the word Jeeves in TextField object, I would like each occurrence of Jeeves in this TextFIeld to become red or any other color. In AS2 I had to search the text for keywords and use the TextFormat class. and then handle keypresses for the textbox for highlighting as the user is typing. How can a highlight a text in dynamic text field?
My pseudo code is given below:
/***Handles Keyback, it should delete the pevious char entered in the text box*/
private function handleDelCharEvent() {
aArray[nCurCharInd] = "";
Text_mc["TextEntry_txt"].text = "";
stmpTxt = "";
if (nCurCharInd > 0) {
[Code] .....
my selectable dynamic text that is generated in xml, I need to change the color of the highlight. When I highlight the text the highlight is gray close to my text color, the result is my text could not be read. I want to change the color of my text and the highlight color when I highlight my text.
View 0 RepliesI'm currently working on a project that involves adding text fields dynamically, and I realized I need to change the color of the highlight when the text is selected
View 2 RepliesI have a Flex3 TextInput control, with white text on a black background. I would like to change the style of highlighted text within the control to use black text on a white background (or something similar). I would love to do this using Flex styles, however I'm comming up empty handed
View 2 RepliesIn my original Flash/AS3 application I had a Sprite acting as a background. I put it underneath all other DisplayObjects and fill it with a linear gradient of random color. It looked good and seemed to work well with Flash Components (Buttons, Checkboxes, TexFields), because they are transparent.
So in my new Flex program (with BasicLayout), I've tried creating a Rect too:
<s:Rect left="0" top="0" right="0" bottom="0">
<s:stroke>
<s:LinearGradientStroke id="_bgcolor" rotation="90" weight="1">
[Code]....
But this doesn't work well, the Rect is obscured by the other Flex components:
Is there a quick way of adding a backround gradient to a Flex application (something as simple as backgroundColor="#CCCCCC") or do I have to study "skinning docs" (and will skinning of an Application help here, since the problem seems to be that the Flex components are opaque?)
I have a dynamic textfield that displays different text. What I want is the ability to control both the text color and the background color of the textfield.
View 1 RepliesI am looking to change the background color of a input textField when the user selects that testfield to start populating it. I have done a bunch of searching and I keep coming up with this type of answer...
Code:
myTextField.onSetFocus = Set(evt:Event){
// Change color
}
Problems...
1) Is onSetFocus/onKillFocus still available? From what I can tell it is not.
2) I have my text objects encapsulasted in a class so I do not believe I am able to do it like I have been suggested.
I want textfield text color in gradient at runtime.
Has anybody work with this???
How can I change the select ("highlight") color of an TextField in actionscript 3? I've got an input textfield with white text on a black backdrop and as a result, selections are invisible, which is horrible for usability.
View 2 RepliesI 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;
[code].....
Is it possible to change the focusRect color for TextFields that are tab enabled? The project I'm working on doesn't use any flash components and I'd like to be able to modify this color to work within the color pallete provided by the client. I've looked into the InteractiveObject, DisplayObject, and StyleManager classes but nothing jumps out a me as far as being able to modify the base Yellow color.
I would think something like this would work but...
var myTextField:TextField = new TextField();
myTextField.tabEnabled = true;
myTextField.focusRect = true;
myTextField.focusRect.color = 0xFFFF00;
i am getting green color focusRect on input text field. why i am not getting yellow color.
View 0 RepliesI've checked textField's class properties, but couldn't find a property to change COLOR OF SELECTED TeXT, so that when i select txt inside textField which has for ex. black background, and white text color, color of the text selected will be for ex. GREY default is i think BLACK selection color.
View 2 Replieshave got this script in flash8. but not able to change the font type and color
_root.mm.createTextField("input_txt", 1, 34, 105, 530, 156);
_root.mm.input_text.font= "times new roman"
a=a+1;
[code].....
I'm creating a text editor and I want users to be able to select only part of a textfield and change the color.The problem I'm running into is the ColorPicker gains focus (I'm guessing) and the textfield loses it's "selection."All examples of text editing show the entire textfield changing color.
View 1 RepliesI am looking for a way to change the background color in a text field, except not change the background color of the whole textfield, just the color behind the characters.
View 9 RepliesI am creating a button when rollovered produces a textfield. Now, I am producing text lines in this textfield and I want the produced lines to be in different color depending on the value of x. [code]...
View 4 RepliesI am trying to style text in a dynamic text field with a background color (not the whole textfield background, but just of the text - like the effect when you select it). My textfield is on top of a photo, which might explain why I'm trying to do this.
View 1 RepliesSay I have a class that extends TextField and I want to have it set a default text color to black (0x000000) when initiated. Easy enough. But then say, when the XML finishes loading and the user has decided to change the color of that textfield to red (0xFF0000), what would be the easiest way to change the text color of that field? The only way I can think to do it is to change the textformat color via public method? Would this be correct or is there an easier way?
[Code]...
Is it possible to make a dynamic textfield's background color alpha set to .5 and not affect the alpha of the text?
View 3 RepliesI am building a project where I got XML text displayed on a textfield. How can I change a specific word's color through actionscript 3 instead of doing it on XML? I though of creating a String variable for my word and then using that variable in my textfield.text, it works but is it possible to set a color for that variable?
View 3 Repliesi have a button, with instance name lightblue_color. I am assigning a color to its color field like this: lightblue_color.transform.colorTransform.color = 0x65ffff; then i am adding an eventlistener to the button like this: lightblue_color.addEventListener(MouseEvent.CLICK, ChangeColor); Then, in the function: public function ChangeColor(evnt:MouseEvent):void {trace(evnt.target.transform.colorTransform.color);} It prints 0. Why is that? Shouldn't it print 0x65ffff or do i need to do some type conversions?
View 2 Replies