ActionScript 3.0 :: Change The Glow On A TextField?
Oct 12, 2010Is there a way to add a glow to text using actionscript, specify all the details including which color and how much spread, etc
View 3 RepliesIs there a way to add a glow to text using actionscript, specify all the details including which color and how much spread, etc
View 3 RepliesI made a gradient glow within the FLASH IDE on one of my textfields. I was wondering if there is a way to change the glow in as3? Apparently you can not change the glow in the flash IDE. It has to be white/black gradient.
View 2 RepliesI have a few movie clips that change color when they are rolled over and rolled out of which is great and works correctly but now I have add glows to those buttons to serve as borders or a stroke and when you roll over the buttons the color and the filter color changes.
View 3 RepliesI have MovieClip with TextField in, how can I dispatch when change text in TextField or remove TextField or add something else.
View 3 RepliesI've got a flash document using AS3. It dynamically reads data from an XML file, and creates a bunch of single line textFields. Could be like this:
<XMLdata>
<Line>this is line 1</Line>
<Line>this is line 2</Line>
<Line>this is line 3</Line>
</XMLdata>
So, for each node, it would create a new TextField, and change the textField.y value so that they are "stacked" on top of each other. All this if fine, except that if you hae so many "lines" (or textfields) that the "stack" is taller than the Flash Document size. What I would like to do is have a scroll bar or something so you can scroll the stack of TextFields. Doesnt' even need to be a scroll bar. Maybe an arrow button at the bottom, and when you click on it, it scrolls down. One for up too.
My scene has a TextField object. I set up my TextField as DynamicText because I need to change it programmatically.
How do I prevent mouse cursor change to I-Beam form when it's above TextField? Also, user of my flash application is able to select text of this TextField using mouse cursor. I would like to disable this behavoiur too.
How can I make a button that, when pressed, changes a textfield (with a scrollbar) to a different textfield (with a scrollbar) in the same place? Essentially (I think), using a button to swap an element and make it fade in or out.
View 3 RepliesFrom what I understand you can change the alpha value of a textfield to be fully transparent. I would like to have chat output that fades after a while. I was wondering if there was a way to change just a portion of the string inside of a text field to transparent. The textColor does not have an alpha value. I could just use multiple text fields but I would like to avoid doing that if possible for efficiency sake.
View 1 RepliesIf I create a TextField in ActionScript 3, I can change the width with a TextFormat, but how do I change the height?Example:
var label : TextField = new TextField();
label.text = "Hello World!";
label.background = true;
[code].....
How do I change the CSS rules for a TextField that already has style associated with it ?
This TextField is inside a RichTextEditor.
Here's the code I'm trying:
_rSts: StyleSheet = new StyleSheet();
_rSts.parseCSS('font {font-family:Verdana; font-size:12;}');
_rTextField.styleSheet = _rSts;
but when I assign the new StyleSheet to the TextField it throws an exception stating that I cannot assign a style to an element already containing a style.
I'm new to this and I'm following a tutorial on Kongregate.com that teaches you the basics of making a flash game. This is what the tutorial said to do:
ActionScript Code:
import flash.text.TextField;
import flash.text.TextFormat;
[Code]...
I have a textfield which loads dynamic text. After this text is loaded i want to be able to change the size/position of the field with the click of a button. (To a set value, not for the user to drag bigger etc).
View 1 RepliesWhen adding textFields dynamically, as well as the TextFormat, it seems that the textFormat needs to be applied every time the text is changed. So if I have:
TxtFld.text = 'This is some text';
txtFld.setTextFormat(txtFormat);
That works. But, if i add the line:
txtFld.text = 'This is the new Text'
Then the format is lost. How can I make it so that I can change the text of the textfield, and not lose the formatting I've already applied?
I have create a clock which displaying in TextField named clock_txt. I want flash to do some thing when one more minute is added. Can I monitor this change and how?
View 12 Replieschange the content of the textfield.
Documentclass dispatchEventExample.as
[Code].....
I have a textfield which loads dynamic text. After this text is loaded i want to be able to change the size/position of the field with the click of a button. (To a set value, not for the user to drag bigger etc).i have tried
_root.myTextbox._width = 400; but it doesnt work
I'm trying to make a static class that will change the text written in a TextField inside a SWF file.
In this case I have a MovieClip with a TextField inside with a message. I want to be able to make a class that giving this TextField and a message, that will change in the button.
Certainly that I'm forgetting something obvious, I get the correct trace messages, but the textfield disappears. The initial text is "Start" and I want to change that to "OK". For now I just want to change the text, but after I want to be able to change the text format.
So far I have this:
package
{
import flash.display.MovieClip;
public class ChangeTextField extends MovieClip
[Code]....
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 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 shows that the new value is set in the text field)
View 1 RepliesI'm making a form and I add a DateField, and I would like to change the background font of the textField where the date selected is written but I don't know what I should change, I try with backgroundColor, Color, ColorFont and I just get to change the color of the text.
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 have 3 text field and i want to change its background when it is focused and change it back to white when the focus is lost.
I tried keeping background = true and border = true, but still i can't change the background.
Also when i keep tf.backgroundColor = 0x00FF00 outside the onSetFocus method then the textfield contains that background.
I get a MovieClip from a swf that contains a TextField with the text "Test".I'm in the 1st frame and change the text to "Changed". Everything is fine.I go to the second frame of the mc but then the text is "Test" again! The changes are not made on the second frame. So I tried to change the text in the second frame too but the TextField in the mc is equal null!.
View 2 RepliesI thought this would be easy but I don't seem to be getting anywhere. I've got a button with a text field in it, simple old dynamic one, not an input. I need to be able to change the htmlText value of that text field and detect it so I can change the size of the button to fit. I thought using Event.CHANGE would do it but I'm not getting the callback:
Code:
private function setListeners():void{
this.btn_text.addEventListener(Event.CHANGE, textChange);
[code].....
I want to change the height of a textfield to 60 pixels, without changing the size of the text, and still keeping it centered. When I want to change the size of the texfield, I can change the length, but the height is unfortunately locked. Any ideas? (Unfortunately I can't provide a link or an image, since I haven't made 50 posts)
View 1 RepliesWhat is the most common way to change the font of a textField within a package. I read a little bit about styling the text in the textField with CSS, or possibly embedding the fonts, but I know little about accomplishing either.
View 3 Repliesi'm trying to make dynamic textfields during runtime when the user clicks a button titled "new field." this works but i would also need to know if theres a way to make it so that the user can re-position the new textfield just by dragging it to a new spot on the stage.
View 1 RepliesI have a normaly created dynamic textfield to which i put something like "_root.MC_container.anyVar" on the variable field.
This textfield is part of a button, so, what i need to do is to redraw the button when the contents of the textfield changes. I have the whole redraw function working ok. But what i cant seem to achieve is to detect the change on the variable i've assigned to the textfield. The content changes, but no redraw function gets called.
I've tried with TextField.onChanged and adding a listener object to the textfield, but none of them seemed to work.
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 Replies[code]on myMC movieclip contains a textfield output.is this the correct way to change the colour for the text?is there a way to change the background color of a textfield without borders?
View 7 Replies