ActionScript 3.0 :: RichTextEditor.TextArea BackgroundColor Broken In Flex 4?
Aug 3, 2011
I have a simple application which uses a RichTextEditor with a colored background, like so:
[code]...
This works fine when I compile against Flex 3.5.0, but in Flex 4.0 and 4.5, the background color remains white. I've tried setting it before the text, after the text, before and after it is added to the stage - even every single frame with an EnterFrame handler. Nothing - it just stays white.
Has anyone else encountered this and does anyone have a workaround? I don't really want to switch to a Spark component if I can help it, and I can't downgrade the whole application to 3.5.
Im trying to change the background color on my textarea from an external css.I can change the color of the buttons so the style sheet is working. But I cant seem to ad the class into the text area.[code]...
How to get HTML text from inputed and edited text into Adobe Flex Builder RichTextEditor control? I mean with valid HTML coming from the Flex RichTextEditor component Not Badly formated HTML, with no spaces, with tags not closed! So we have some text edited with RTE a-la
I have tried setting the background image this way, but it doesn't work. how to set the background image of a rich text control in flex as easy as possible?
How to add images into Adobe Flex RichTextEditor control? I mean using a button =)
So we have some text editor with RTE a-la
We want to get into its content images using some button. How to do such thing?
BTW: I found this [URL] but I really do not understand how to make it work so if any one can publish simple project with simple (DIRTY IS OK) source it would be grate!)))
How can I make it so that the RichTextEditor from Flex can add images? I'm not talking about the upload process, but rather then way I can insert images into the textarea.
I just want to lock or set a default font size for the rich text editor. I tried setting font-size = 16, which although it did set the default to 16, also made all the labels etc... in the editor to font size 16.
I'm having this problem of adding an image to the textArea in RichTextEditor (RTE) on the fly and this image seems to "reset" the html properties of the textArea. Better explained:
The user starts writing something in the TextArea (with Verdana in size:12 font settings). When he adds an image to the text area, the cursor right after the image gets very small and the font settings are reset to HUM777B in size:2.
How could I avoid this behavior?
It seems Flex adds additional HTML code before the image tag. If there was any way to avoid this I would be able to add my own settings to the tags.
As the topic states, using a Rich Text Editor with a PopUpManager makes typing slow. If you try it in Firefox/Mac, it is painful. Chrome/Mac is a little slower as well. Are there any known issues with the PopUpManager and performance that can be addressed easily?
I have a Flex 4.5 mobile app, I'm trying to set the backgroundColor to black, aka 0x000000 at runtime.It won't go black, in fact, it will go any other color but black.[code]Just as some extra info, I have my original Application backgroundColor #333333 set in a .css file and in the MXML Application node.
I store the htmlText property of a RichTextEditor in the database.I retrieve it in another instance and I want to show the user the first line of it as plain textSo I let Flex handle the conversion by using a function like this
var editor:TextField = new TextField(); editor.htmlText = htmlTextFromDb; var converted:String = editor.text;
I have a LineChart with a DateTimeAxis as horizontalAxis and a maximum set. If a point is beyond the maximum date, the whole segment will not appear. Yet, is there a way to make it appear until it reachs the border of the chart?The code here :
<?xml version="1.0"?> <!-- Simple example to demonstrate the DateTimeAxis class. --> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
After completing building a flex project in Flash Builder 4.5, the project was exported using the File -> Export Flash Builder Project. After which some of the images stopped working (get the broken image icon).
I'm using flex 4.1 to write an application and I was wondering how can I configure that whenever I try to load an image and the link is broken it will show a different image that i have embedded into my application.
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).
I'm looking at this example: and for the life of me I don't see how to utilize this in Flash. I don't want to build a Flex app... I want to implement this object in my Flash code. But I'm not having any luck importing mx.controls or getting an instance of this component. It's not in my component's library, either.Is there some lib I'm missing? Or am I just attempting the impossible here?
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]...
how to set the scrollpane's background color in AS3 with CS4?You can't seem to use _Globals, setStyle,and opaqueBackground doesn't seem to work effectively.
I am using Flex 4.5, and i am trying to change the back ground color of richtexteditor but i am not able to do so in flex 4.5 but its working fine in flex 3.
I've already tried a lot, but there was no way I could change the color of my textInput. Adobe Livedocs couldn't help me and there was no working piece of code I could find in other messageboards.
That's really all I want to do. Why is something like this so complicated? When you go into Component edit mode, you can easily change the highlight colors. Then why make it impossible to change the actual ground color? Why should I have to scour the internet to find complex code just to change the color? Sorry, it's just frustrating.Anyway, if setStyle("backgroundColor", 0xCCCCCC); ... was all I needed to do that would be fine, but that doesn't work.Even if it's not possible, I would accept text rollOverColor, or hover... nothing.I think there should be a drop down color box in the component editing window at the very lest.
I searched and didn't find quite the right solution. Please bare with me as I am a complete infant with this.Using a component listbox in CS4. I have figured out how to call in formatting to the text by using this:Code: Select allimport fl.managers.StyleManager; var tf:TextFormat = new TextFormat(); at the head, and referring to it below, with:
I'd to insert date on a richtexteditor when the user click on a button.This part is easy, more difficult, how to insert this on cursor position. Cursor position may be on the beginning, middle or end of the text.
It is possible to remove some RichTextEditor control bar with showControlBar property. But how to remove title bar too? The following code displays control with empty title bar: <mx:RichTextEditor id="mLog" left="10" right="10" top="10" bottom="41" dropShadowVisible="false" showControlBar="false">