Flex :: RichText Vs Label Control

Apr 16, 2011

I have a flex project where I uses the spark RichText control quite extensively, there are places where it is possible for me to replace RichText with the Label control - (The rich text occurred due an import from Flash Catalyst). My question is, is there any space/performance advantage in using Label over RichText, since Label seems like a much lighter option, I am building a web app, size matters.

View 3 Replies


Similar Posts:


Flex :: Adobe - How To Get Text In Label Control Wrapped

Jul 16, 2009

How can the text in a Label control (or a similar control) be wrapped in Flex 4 beta? In Flex 3 I could use the Text control but this is no longer available in Flex 4.

View 1 Replies

Flex :: Autosize - RichText/RichEditableText Autosizing?

Mar 21, 2011

In the past, I used the flash.text.textField object something like this:

tf = textField();
tf.autoWrap = true
tf.autoSize = "left"
tf.width = 100;

[Code]...

I'm coding this, so if you have some suggestions, please post them in code, not MXML.

but UITextfield is not a TLF component and the example for RichText does not cause the RichText height to grow with the text. What I need is a component that I can set the width, add TLF formatted text and get the height of the component once it has rendered. Just like a TextField does when you add text.

View 3 Replies

Flex :: Spark TextArea Or RichText Autosize?

Apr 15, 2011

I have done lots of searching on this subject, but it seems what I am finding is either out of date or just does not seem to work.With TextFields in the past, you could set the TextField to a certain width, set wordWrap to true and you would end up with a textfield that changed height according to the text you added.Now I am trying to do this with either the Spark TextArea or RichText.I tried this HeightInLines = NAN, but that seems to be out of date.I also tried this routine:

var totalHeight:uint = 10;
this.validateNow();
var noOfLines:int = this.mx_internal::getTextField().numLines;[code]....

But the mx_internal is not in the Spark components.I am trying to do this with AS3, not MXML.

View 5 Replies

Flex :: Content Of Spark's TextArea / RichText?

Jun 24, 2011

Is it possible to get content of each line from spark's TextArea or RichText?

What I want to achieve it to split textarea's (or richtext) content into rows and modify some of them.

View 1 Replies

Flex :: RichText Doesn't Work With Bullets?

Jul 25, 2011

See the simple application created below. I have a RichTextEditor and a RichText component.The idea is to display whatever typed in the RichTextEditor in the RichText component. Everything else (I think) works except for Bullets! The conversion works as if bullets doesn't exists!

<?xml version="1.0" encoding="utf-8"?>
<s:Application width="100%"
height="100%"

[code]......

View 1 Replies

Flex :: Conditional Coloring On Spark RichText Component?

Jan 26, 2011

I have a spark RichText that I want to change his color according with the value on text property.

Negative values get red, positives blue...

When I declare the component, I call a method to set up the css style, but when the value changes, the color is not updated.

How can I put a conditional CSS Style? Is possible to create custom skins to RichText component?

View 3 Replies

Flex :: Display Part Of Text In RichText In Bold Font?

Nov 12, 2011

How do you make some parts of spark.components.RichText bold?[code]...

View 4 Replies

ActionScript 3.0 :: Label Or A Control To Simply Display Text

Oct 5, 2010

In AS3 do you have a label or a control to simply display text.Not a textbox type where you can enter text.

View 4 Replies

ActionScript 3.0 :: Get Item Data/label From List Control?

Oct 27, 2009

i'm in a situation where i need to iterate through each item in the list control and get the data from it.

how would i get a handle to an item at a specific index? I've tried getItemAt() but it throws error 1061.

View 2 Replies

Professional :: Make Flash.control.label Catch MouseEvent.CLICK?

Mar 27, 2010

Is it possible to catch flash label's mouse click event?

mylabel.addEventListener(MouseEvent.CLICK, OnButtonClick);
 
Does not work
 
Or can it be done via an extends like
public class MyLabel extends fl.controls.Label  {
// how to catch and dispatch mouse event?  }

View 3 Replies

Embed Multiple Fonts In Spark RichText With CSS?

Feb 1, 2012

I'm trying to embed multiple fonts in a spark RichText component but not sure how to go about it. I'm wanting to be able to display bold font using tags in HTML. With the font i'm using, the regular and bold character sets are in different .ttf files.

Can I set more than one font family in CSS for a component?[code]...

View 1 Replies

ActionScript 3.0 :: Using Richtext Editor - Extra Space Will Get Add

Sep 29, 2011

Using RichText editor, if i add bold for my text then i am getting extra space for both side of text. for example "this is test" if i add bold for "t<b>his</b> is test" means the out is like "t his is text"whenever i add bold or italic etc.. one extra space will get add.

View 0 Replies

Flex :: Manipulate Child Control Inside A Panel Control?

Oct 12, 2009

I am trying to manipulate (move up and down, enable/disable and launch a form) child controls inside a panel control. However I am unable to get the id of the child control on which the click event occurs. To illustrate, I am trying to create similar functionality as is available. I am trying to create the up-down buttons that you see in the image at http:[url].......

View 2 Replies

Flash :: Control Flex Application From Embedded Control?

Mar 21, 2010

I have a flex application and have embedded a flash (SWF) file into it using <mx:SWFLoader>. There is an "Exit" button on the Flash file. I want to be able to handle the button click event on the flex application.

So when that button in the flash file is clicked, I want to perform an action in the parent flex application.

View 2 Replies

Flex :: Make Flex Spark Label To Be Auto - Resized?

Mar 11, 2011

I'm creating the Label component like this

var label:Label = new Label();
label.text = "some text";
label.styleName = "someStyle";
addChild(label);

But it stay invisible until I explicit set the width and height.How can I make the label to be auto resized according to it's text?

View 3 Replies

Flex :: Actionscript 3 - Flex Label Baselineshift Supported On Mobiles?

Jun 13, 2011

I need to create subscript text for mobile. I read at [URL} that label's baselineShift property is not supported on the mobile theme. So I created a plain mobile project using the default mobile theme with a couple of test labels and in the FB 4.5 emulator the baselineshift worked fine.

View 1 Replies

Actionscript 3 :: Change A Frame Label Within A GotoAndStop('label') With The Parameters In A Function?

Feb 29, 2012

Is it possible to change a frame label within a gotoAndStop('label') with the parameters in a function?I'm playing around with updating code as I learn more and more techniques, and at the moment the code is a basic click-a-button to select the object shape, and on press the button disappears:

// Change the object into a circle.
circle_btn.addEventListener(MouseEvent.CLICK,function(){changeShape_fun(circle_btn,circle);});
// Change the object into a square.
square_btn.addEventListener(MouseEvent.CLICK,function(){changeShape_fun(square_btn,square);});

[code]....

However I can't/don't seem to know how to change a frame label through function parameters, or if what I'm trying to do is even possible.Also to note, while I'm all ears for any more efficient ways of doing what I'm trying to do, I would still like to know how/if you can change frame labels through function parmeters.

View 1 Replies

Flex :: Add Superscript In Label?

Oct 15, 2009

How do I use superscript text in Flex?

View 4 Replies

ActionScript 3.0 :: Target Path - Control A Movie Clip Called "nosotrosmc" With A Frame Label Inside Called "historia"?

Oct 5, 2009

i'm trying to control a movie clip called "nosotrosmc" with a frame label inside called "historia" but does not work this is the code:

[Code]...

View 2 Replies

Flex :: Change Label In Repeater?

Nov 21, 2009

In actionscript, when I click a button I would like the label to replace from "add to list" to "added" without override with super method.

Is this even possible to change label in repeater?

View 1 Replies

Image As Label With Checkbox In Flex?

Jan 15, 2010

I want to use an image in my checkbox as label, anybody know how ?

View 2 Replies

Flex :: Change A Textinput Into Label

Mar 21, 2010

i create a form for order a item in flex. i use <mx:TextInput /> for getting the information from client and use a <mx:Button /> for submit the information in database. But client requirements is when user click on button then first show a confirmation page with details information that client give. But can't use another page or <mx:TextInput /> in this confirmation page, it will be <mx:Label />. After show the confirmation page if clients click on Button then submit the info. How can i convert a <mx:TextInput /> into <mx:Label /> with all properties in flex? Is it possible?

View 2 Replies

Flex :: S:Label Does Not Load The Font

May 24, 2010

I have a mxml component with a "s:Label" and

fontFamily="notes"

as an attribute.

Source code:

<?xml version="1.0" encoding="utf-8"?>
<s:SkinnableContainer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com

[Code].....

So I thought, that would be okay and the text of my s:Label will be formatted with this special font. But the output is the normal font. By changing the "s:Label" to a "mx:Label", the font is "loaded". So, what can I do that the font will work with s:Label?

View 2 Replies

Flex :: Place A Label On Chart?

Jul 1, 2010

In flex, how to add a label on a chart? I need to display some thing on the chart.

View 1 Replies

Flex :: Spark Label Be Skinned?

Aug 22, 2010

I would like to add some fancy drawing beyond the CSS formatting. How can I put a skin on a spark Label ?

View 1 Replies

Flex :: Remove All Padding From Label?

Nov 18, 2010

I am trying to remove all the padding from a Label contained in an HBox. I set paddingTop and paddingBottom to 0 in both the Label and HBox but there is still quite a bit of padding. I also tried setting verticalGap to 0 on HBox. If I just have a checkbox in the HBox the padding is removed fine.

View 2 Replies

Flex :: Width Of Spark Label?

Aug 5, 2011

I need to set the text of a spark label and then position such label along the x axis depending on its width. Unfortunately, it seems that the width of the label does not update right away and thus the positioning will fail. I can listen to updateComplete events on the label and update its position then, but that means repositioning the label a lot more often than I would like (updateComplete fires off a lot more often than upon changing width). how to properly handle what would appear to be a trivial task?

Here's a code snippet that shows what I described above. If you press the button you will see 3 traces: the label width before changing its text, right after setting its text, and when the label is done updating itself. Would love to know if there's a way to get the correct width without having to listen to updateComplete events... The button and the VGroups are just there to run the example

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

View 5 Replies

Flex - Advantage Of Using Mx:Text Over Mx:Label?

Aug 18, 2011

What is the advantage of using mx:Text over mx:Label in Flex?

View 1 Replies

Flex :: Different Font Size In Label?

Feb 23, 2012

I would like to display a set of Text like this "DISCONTINUED (02-02-2012) Crocin" in label. But i need smaller font size for Date. How can I set the value to Label so that I can display smaller size font for Date.

I only need to assign a single string to label? like this "DISCONTINUED (02-02-2012) Crocin"

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved