Flex :: TextArea Leading Invalid?
Mar 30, 2010When I set leading to 0 with Verdana (and others to) for a Flex TextArea I get strange results:
fontsize -> space between baselines
8 -> 10 (125%)
10 -> 12 (120%)
[code].....
When I set leading to 0 with Verdana (and others to) for a Flex TextArea I get strange results:
fontsize -> space between baselines
8 -> 10 (125%)
10 -> 12 (120%)
[code].....
I am trying to run the following function where car is a movieclip:
[Code]....
Is there a way to make NumericStepper shows leading 0 to numbers which is below 10 ?
(like 01, 02, 03 ... 09, 10, 11)
I started converting this flex application to run on android using the new flex hero sdk.i already replaced all mobile-incompatible components and got it running a few times succesfully.
When I use the same libraries running the original webapplication it works perfectly.The big problem however are these random Invalid BitMapdata errors while starting the mobile application. Here's the whole output.
[Code]...
Now it seems to me that, wile running the mobile application, it is unable to find the image, as when I run the webapplication, using the same library where the above line of code is, it is able to find the image.
This problem has been haunting me for days now and I'm really starting to think this is a bug, especially because it sometimes DOES run. Or is there something I'm missing here.
I have a form with a TextInput that has a custom Validator. I call the Validator logic and handle the result programmatically. This all works fine, except for one problem. The TextInput gets highlighted when it is invalid, but the toolTip that contains the errorMsg does not display until I roll the mouse cursor over the TextInput. Is there anyway to get the toolTip to show programmatically?
View 2 RepliesA little much put in the title, but my question is just that. I have the following AS3 code for my textarea...
addChild(Texta1);
Texta1.alpha = 0;
Texta1.blendMode = BlendMode.LAYER;
[Code].....
Unfortunately, when I start placing text in this text area. Either through code or user input, the text will be placed on a new line after about 80-100 pixels. Yet I want it to start a new line after 320 pixels (it's length).
This is my EnglishFonts.swf application that contains embedded fonts:
package
{
import flash.display.Sprite;[code]...........
Font.registerFont() throws this error:
ArgumentError: Error #1508: The value specified for argument font is invalid. at flash.text::Font$/registerFont()
We have a flex application which compiles fine on windows box using mxmlc ant task but when we try to run the same build scripts on linux, it throws the 'Invalid Embed directive in stylesheet' error indicating it is not able to resolve the path to the image files.
Can someone pls. educate me on if there is a difference in the way the image files are looked up, in a CSS file, on windows vs linux.
Flex sdk version is 3.3. The same sdk is used on both windows and linux. Not sure if this has been fixed by any future 3.x sdks.
If you have two text areas with different styles (fontFamily, weight, color etc) and you copy text from one to the other it also copies the style from the originating text area. Is there any slick way to prevent that?
Here is a sample of code that will illustrate the problem. Type some text in the top box and some text in the bottom, then copy some characters from the top box to the bottom. I'm not using htmltext.[code]...
Just wondering if it's possible to apply a *.css to a spark TextArea? If so, how?
View 1 RepliesTextArea in flex doesn't render <TABLE></TABLE>.
I want to display text in textarea in two columns. [code]...
Depending on text width in Column1 text in Column2 will be shifted. So all rows in Column2 are going to be aligned. How can I do this without html <table>?
I'm trying to select the id of a textArea when it's focused in
[Code]...
Problem is TextArea is made up of RichEditableText so target doesn't actually refer to TextArea. I've tried event.target.parent.id but still not getting there. Anyone knows how to get to the bottom of this?
I have an mx:TextArea and I want its height to be the same as its content height. There is nothing fancy - just a text area and text that is not editable. I need a simple and reliable way to make the control fit and show all the text without vertical scroll - something like auto resizing. Also my control's text will be set only once and will not change as it will not be editable.
<mx:TextArea id="myTextArea"
editable="false"
width="100%"
verticalScrollPolicy="off" >
<mx:text>
[Code] .....
There is one more post here on the same topic but it is not relevant to me because the setup there is a lot more complicated as it includes styling and binding.
Is there any advance TextArea that can attached image(image is alligned with the text) and the image can be movable inside the text area.I know that text area can support html text and can insert image tag but it is very limited, I can't move the picture inside textArea by dragging it or even add events on it.
View 3 RepliesI want to integrate itemrenderers in a TextArea. The purpose is to visualize keywords with their own easy interface while the user still can treat the whole thing as normal text to select the font, fontsize, etc.
[Code]...
As per my observation this does not work in flex4:
<mx:TextArea id="taMytext" text="
hi
san"/> //use of
does not work here
<s:Button label="Click it" click="Myfun()" />
Using script it's possible:
public function Myfun():void
{
taMytext.text="hi
";
taMytext.text+="san";
}
I have a TextArea that allows user input. I also have TextInput that the user can type a string into and I want to be able to search through the TextArea for the string in the TextInput. I've never done anything like this before, searching for strings, so I don't know which functions to use or how to go about it.EDIT:
protected function searchBtn_clickHandler(event:MouseEvent):void
{
text = mainTextField.text;
[code].....
This is the question: How can i Skin the VScrollBar from a TextArea!? I did skin a VScrollBar from a Spark List and works fine but not this one!
View 1 RepliesConsider the following scaled down example of a much larger application:I have text areas with id attributes and click events:
<mx:TextArea click="launchMyPopUp(event);" id="box1" text="blahblahblah"/>
<mx:TextArea click="launchMyPopUp(event);" id="box2" text="blahblahblah"/>
<mx:TextArea click="launchMyPopUp(event);" id="box3" text="blahblahblah"/>
[code].....
problem stated in my title. Attach is my code.
Code:
this.createTextField("myText",this.getNextHighestDepth(),23,72,300,400);
//bgPic._alpha = 25;
var titleS:TextFormat = new TextFormat();
titleS.font = "TradeGothic";
[Code]...
How do you set the leading of a block of static text in flash?? As I couldn't find a "leading" control in the panel... (only kerning)
Is there such way to do so without using actionscript such as myText in html format...?
With the Flex 3 SDK you simply needed to set the borderThickness style to 0, or set borderStyle to none. With the Flex 4 SDK ad the Spark theme, this has no effect.
View 5 RepliesIn my Flex 3 application the user enters IP addresses into a textInput object. As the user enters the numbers comprising the ip address I would like to add the '.' on the fly rather than waiting until latter, so that if the user types 127000000001 I would like the textInput control to display 127.000.000.001. I've been trying to make a class that extends textInput and adds the '.'s to the object's text property in the Event.CHANGE or Event.TextInput handler. Sadly, my extra '.' never gets displayed, the numbers appear without dots just as the user typed them.
View 2 RepliesIm wondering how to implement undo redo functionality with a TextArea. I already have an undoredo framework functionality working, now I have two questions.When do I start/stop a new undo/redo command, eg when a user hits undo, how far back do I go. How do I implement this(1.) in a normal TextAreay thinking:I thinking that I should create a new undo command, when anything but a alphanumber+space is hit. To do this I would use the keyDown event and test if the key is alpha num if it is not I will reset the command.
View 3 RepliesThis bug is hard to describe, but easily reproduced with the bottom code. Just copy, paste, and compile+run in Flex 3 and you'll see the problem.
Edit: Here is a link to a running demo: [URL] In the demo, the default color of TextArea is set to red.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" applicationComplete="applicationComplete(event);">
[Code].....
I am developing a Flex based window application. In that I have used a textArea, Now when I type some characters like ctrl+b, ctrl+e or ctrl+q, it shows some square characters in text area, I think these are some unicode characters but why these are being entered.
Unlike in simple textArea control on adobe example when I presses these key combination, there is nothing being entered, so why this only with me.
This is my window setup code
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
[Code].....
in flex,I have a textarea control i like to select some text in textarea. when mouse releases then selected text will be hilighted to GREEN RECTANGLE as sprite.
View 1 RepliesI have the following code to create and apply a few styles for a custom TextArea in ActionScript 3.
public class MyCustomTextArea extends TextArea
{
override protected function createChildren():void
{
[code]....
I have two problems with this code.this.styleSheet is always null when I create an instance of the class. If this.styleSheet is initialized to new StyleSheet() to avoid this issue, then the TextArea instance does not seem to recognize any of the HTML tags that can be used with the htmlText property.
Consider the following mx:TextArea <mx:TextArea id="textArea"/>
periodically being updated with new lines of text using ..
textArea.text += newLineBeingAdded + "
";
how do I make sure the textarea is scrolled down to the bottom so that the last line added is visible to the user?
I am treating a spark TextArea as text input(by setting heightInLines="1"). The TextArea is part of an mxml component and I want to resize the component when the text is changed.
I haven't been able to use textArea.measureaText(textArea.text) to get line metrics and use it. I get this error "Parameter antiAliasType must be non-null."
Is there any way to get the width of a TextArea which it is going to consume at runtime for a particular string or a particular TextFlow?