ActionScript 2.0 :: Three Color FocusRect Coming On TextField
Mar 11, 2010i am getting green color focusRect on input text field. why i am not getting yellow color.
View 0 Repliesi am getting green color focusRect on input text field. why i am not getting yellow color.
View 0 RepliesIs 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 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.
How can I rotate or hide focus rectangle. I am getting a rotated focus rectangle after changing the focus from a rotated text area. See the attached file.
View 1 RepliesDoes anyonen know how to globally disable/hide the yellow focusrect without affecting key listeners?
View 3 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 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].....
I'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 RepliesI have a button in a movie, and an object moves in front of it at one point, but the clickability of it shows through. How can this be prevented?
View 1 RepliesIs there possible that through actionscript I click in a buttom and make an object (in this case my picture) leave the stage.... I�ve already did but using a mivieclip and the eventos "on release bla bla bla"....
View 4 RepliesIs there possible that through actionscript I click in a buttom and make an object (in this case my picture) leave the stage.... I�ve already did but using a mivieclip and the eventos .
View 4 RepliesHow would I have to change the script so I can load more then 1 img within the same row. I also tried like that...but only first image is coming in both column of same row. I used like that:
myDataGrid.addItem({Feature:FeatureList[i],data:"tick",data:"wrong"});
But in both column of that row same "tick" picture is coming,"wrong" pic is not coming...
I am somewhat stuck on building a specific layout in AS3 with data coming from an XML file. And I really didn't expect any problems with layout in Flash.A while ago I built a Flex banner, but due to performance and size issues I want to rebuild it in Flash/AS3.[URL]..My flash file is already parsing the XML and I have all the data I need available. But right now I only show it as text in a htmltext field.After a long time of googeling around, it seems there is no way to achieve the layout with a "classic text" field. Can I do it with a TLF field? It does not look like it.
Can I do it with some displayContainer tricks maybe? I am pretty new to Actionscript, so I can only hope some of you experienced devs can help me with a few hints on this.How would you build it? For every entry I basically need a two column header (left side a image, right side text. all fixed height) below that goes a textfield of "variable" height. And then below that the next entry block, and so on. Just like in the Flex banner.
I found some frameworks, but they all want height values for all of the layout parts. Since I have a variable text height for each entry, I cannot use these frameworks. And because of size constraints I don't really want to use any framework if I can avoid it.
i create a broadcaster in as3.
Broadcast video is OK. NetConnection.Connect.Success is OK NetStream.Publish.Start is OK.
But video coming first frame only in Player, not playing total video in player
var server = rtmp://xxxxxx.rtmphost.com/foldername;
var streamName:String = testname;
var nc:NetConnection;
[Code]....
'm building a very dynamic app in flash that gets all UI values from XML. Everything's been working fine and then I start having trouble accessing an XML object that only contains attributes. For some reason I can only get it to work if the XML object has content within the opening and closing object tags.Here's the basic AS3 code:
ActionScript Code:
this._uiXML = new XML(this._xml.elements('tag'));
I've also tried...
[code].....
First I'm trying to get this XML file to load, but it's coming up undefined. Here's the actionscript:
var MyX:XML=new XML();
MyX.ignoreWhite=true;
var urls:Array=new Array();
var captions:Array=new Array();
MyX.onLoad=function(){
[Code] .....
I have a movieclip and text field on the stage with the instance names "holder" and "caption" respectively. I'm using Flash 8, ActionScript 2.0
I am trying to parse an some xml that is coming from a php file. I used the DOMDocument to write the xml and then echoed it back out. It's perfectly formatted I'm sure. When I load the php file from flash I don't get any errors but it won't trace the xml. I even have the header ("content-type: text/xml"); in the php file. Can flash pick up xml data from a php file assuming everything is done correctly?
View 14 RepliesThis is probably a completely n00b thing, but I'm trying to get a preloader to work on a gallery I made. I'd already made the gallery, and now as an after though have attempted to add the preloader. As a whole it seems to be working, except the preloader keeps coming back on itself, so I can't actually every get round to seeing to gallery I've made. I think maybe there just needs to be some kind of "stop" action put into the ActionScript within the preloader scene, but to be fair, I really don't know what I'm doing. I've followed a tutorial to the every detail, but still it doens't work. The orginal Flash file can be grabbed here: [URL]
View 3 Replies