Flex :: GetCharIndexAtPoint() Equivalent In Spark RichEditableText?

Mar 25, 2010

I want to find a way to get the character index in a Spark based RichEditableText based on mouse x, y position.The mx.controls.TextArea has a protected getCharIndexAtPoint() method but I can't find an equivalent of this in the Spark RichEditableText which is disappointing.

View 3 Replies


Similar Posts:


Flash :: Insert Text At Cursor In A TLF-based Flex Spark RichEditableText?

Oct 8, 2010

I want to programmatically insert formatted text at the current cursor position in a Flex 4 (Spark) RichEditableText control. I could just modify the .text property But that doesn't allow me to insert formatted text. So I believe I need to interact with either .textFlow or .textFlow.interactionManager somehow? However, TLF is quite complex and I can't find a simple way to do what I want.

View 1 Replies

Flex :: Spark RichEditableText Word Wrap With Percent Width And Fixed Height?

May 11, 2011

I know this question has been asked before but the other solutions didn't work for me quite well. here's my sample application.

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

[code].....

View 1 Replies

Flex :: Spark's DataGrid CalculateDropIndex Equivalent?

Mar 10, 2011

Is there any function (or any easy way to implement it) equivalent to calculateDropIndex for spark's DataGrid?

(using Flex Hero 4.5.0.19786)

View 1 Replies

Flex :: Spark RichEditableText Weirdness When HeightInLines="1"

Nov 7, 2011

Try this:

[Code]...

See the problem when you fill up the RichEditableText with characters? Keep typing the word hello until you cross outside of the first visible area of the RichEditableText. things get weird. Try it out. how to prevent the weirdness? (the text starts jumping up and down)

View 1 Replies

Flex :: MX List ItemRollOver Event Equivalent On A Spark List Control?

May 26, 2011

Flex 3 List control had a itemRollOver event. Flex 4 List doesn't have it. Is there an equivalent or a workaround for this issue?

View 2 Replies

Flash :: Can't Retrieve An Equivalent To Selected Button On Spark

Feb 27, 2012

I can't retrieve an equivalent to selected button on spark .

A bit of code:

_selectedBtn.selected=false;

View 2 Replies

Flex :: Selecting Id Of TextArea (despite RichEditableText)

Jun 17, 2010

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?

View 2 Replies

Flex 4 RichEditableText With Right Click Menu?

Sep 13, 2011

I need selectable text that can be copied. Some users are used to copy with Ctrl+C (Cmd+C on Mac), and some are used to right click and select "Copy".

Using s:RichEditableText, there is no "Copy" in right click menu: http://d.pr/xWXW. Using mx:Text, there is "Copy" in right click menu, but it doesn't copy anything: http://d.pr/vtiw

Ctrl+C works for both s:RichEditableText and mx:Text.

Is there a property or something to enable "Copy" in right click menu for s:RichEditableText?

View 1 Replies

Flex :: Detect Right Clicks On A RichEditableText?

Oct 21, 2011

I am currently implementing squiggly in a flex application to enable spell checking. Due to certain requirements, I can not use SquigglyUI to hook onto my spark RichEditableText.I have successfully used com.adobe.linguistics.utils.TextTokenizer to tokenize and highlight mispelt words.I would like to be able to let the user rightclick on a mispelled word and show a I have tried to attach a listener to my RichEditableText:

richtexteditor.addEventListener("rightClick", showSuggestions);
And this is my event handler:
private function showSuggestions(event:MouseEvent):void{

[code].....

View 2 Replies

Actionscript 3 :: Flex 4: Detect Click Outside Of RichEditableText

Sep 10, 2010

Is there any easy way to detect click outside of RichTextEditable? just like FlexMouseEvent.MOUSE_DOWN_OUTSIDE is used in popups.

View 3 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

Actionscript 3 :: Spark Images In Spark List With TileLayout Disappear On Scroll And Drag In Flex App

Jul 1, 2011

I have a renderer that looks like this:

[Code]...

Loading thumbnails using this method works perfectly. The issue happens when you scroll the List.

View 1 Replies

Flex :: 4 - Add Component To Title Bar Of Spark Panel Or Spark TitleWindow

Feb 7, 2011

I'm looking to add a couple of buttons to the title bar of a Spark Panel or Spark TitleWindow. Is this possible to do without making the panel from scratch?

View 1 Replies

Flex :: Set Caret Cursor Position In RichEditableText Control?

Dec 1, 2010

Is there a method to set the caret position within a RichEditableText control? The control's contents can contain errors that the user must fix which are navigated though via Next/Previous buttons, and during the navigation I would like to set the caret cursor to the end of each error within the text.

View 1 Replies

Flex :: RichEditableText Component Not Completely Resetting Its View

Mar 1, 2011

I'm experiencing some strange text rendering behavior in the Spark RichEditableText component.

<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
[Code] .....

The above application simply navigates through the five sentences in the DATA array (every time the Next button is pressed). For whatever reason, RichEditableText component doesn't completely reset its view (by clearing the previous text) before setting new content. From what I can gather, this faulty rendering is somehow based on the combination of line count and relative width. I also discovered that if I set the width property of the RichEditableText component to an absolute value (say, 100) as opposed to relative (percentage, 100%) the text is rendered correctly. As far as I can see, this behavior is unintended and is, in fact, a bug.

View 1 Replies

Flex - Possible To Select Text Between Multiple RichEditableText Objects?

Aug 15, 2011

For example, say I have 3 RichEditableText objects and I want to be able to highlight them all together:

<s:RichEditableText id="obj_one" width="100%" text="Click and start dragging the highlight here..." selectable="true" editable="false" fontSize="9" />
<s:RichEditableText id="obj_two" width="100%" text="Continue dragging the highlight through this one" selectable="true" editable="false" fontSize="9" />
<s:RichEditableText id="obj_three" width="100%" text="and keep going and finish highlighting them all right here" selectable="true" editable="false" fontSize="9" />

Is it even possible to make it so all three could be highlighted that way someone could Copy all three at once then past all the text somewhere? I should clarify, The reason they would be like this is because there they are in an itemRenderer so they would each be their own object in each line on the list. It would be nice though if the text could be highlighted and copied like it was all together though. Just imagine the way an end user would expect to be able to drag an highlight any other text in a standard html document to paste elsewhere.

View 2 Replies

Flex :: Tooltip On Image Element Inside RichEditableText

Aug 20, 2011

I have the following:[code]I want to display a tooltip on the img element - haven't figured this one out - ideas anyone?

View 1 Replies

Flex :: RichEditableText SelectionColor - IDE Gives An Error Like This Property Do Not Exist?

Sep 19, 2011

I'm new to flex, actually I'm reading a simple tutorial about Flex 4 (I'm using flash builder 4.5) this is the tutorial.I added a RichEditableText and then I should specify the property selectionColor, but when I add it to the source code, the IDE give me an error like this property do not exist.

<s:RichEditableText x="179" y="95" text="hello" fontSize="24" fontWeight="bold" color="#E52222" selectionColor="#000000" />

View 1 Replies

Flex Equivalent Of GWT - RPC?

May 23, 2009

Right now a lot of my applications use GWT-RPC for retrieving POJO's from a GWT RemoteService which in turn calls a Web Service (SOAP) to get the data. I am evaluating Flex and didn't really see anything truly analogous to this simple architecture.

View 4 Replies

Actionscript 3 :: Flex 3 Equivalent Of '<fx:Declarations>'?

May 26, 2011

I'm trying to migrate a Flex 4 project backwards to Flex 3, and I need to move stuff mapped in a <fx:Declarations> block in MXML. Does Flex 3 have something similar to this? It's been a while since I've done Flex 3.

View 4 Replies

Flex :: Filepath - Is There An Equivalent Of C#'s Path.GetExtension

Apr 21, 2010

I want to get the extension of a file path in Flex. In C# I would just use Path.GetExtension() to do this.

Is there an equivalent in Flex, or do I have to write my own?

View 1 Replies

Flex :: Windows.sendkeys Equivalent In Adobe Air?

Feb 13, 2011

Is it possible to capture user typed inputs from keyboard and overwrite user entered text with pre-defined words in Flex/Adobe Air? I'm looking for a functionality in Adobe Air something like "typinator" does.

View 1 Replies

Actionscript 3 :: DraggableColumns DataGrid - Equivalent In Flex 4.5?

Dec 22, 2011

I am migrating my Flex 3.2 to FLex 4.5. the property draggableColumns of <mx:DataGrid> is obsolete in the <s:DataGrid>. Have you an idea to have its equivalent in Flex 4.5?

View 1 Replies

Flash :: Flex - Standard Equivalent To HTTPService Class CS4?

Jul 17, 2009

Is there a standard equivalent to the Flex HTTPService class in Flash CS4?

View 2 Replies

Flex :: Equivalent Of Osflex:TreeGridCellRenderer For The Flexlib Package?

Aug 10, 2009

the equivalent of osflex:TreeGridCellRenderer for the flexlib package?

View 1 Replies

Flex :: Mx:Canvas 's Show Event Equivalent In S:Group

Feb 5, 2011

As of Flex 4, I'm using s:Group instead of mx:Canvas.

With s:Group , show event is not fired when the container is visible like with mx:Canvas. creationComplete event fire only once. How can I detect show event or something alike in Flex 4 or should I just use the mx:Canvas instead ?

View 1 Replies

Flex :: Programmatic Equivalent Of Tag-based Event Handlers?

Feb 10, 2011

When I create something like the following:

<mx:DataGrid id"myDataGrid"
itemEditBegin="myDataGrid_itemEditBeginHandler(event)" />

When does the event listener for "itemEditBegin" get added and removed? Is this essentially the same as:

<mx:DataGrid id="myDataGrid"
creationComplete="myDataGrid_creationCompleteHandler(event)" />
protected function myDataGrid_creationCompleteHandler(event:FlexEvent):void
{

[Code]...

Basically, I'm wondering where I should add "myDataGrid.addEventListener" if I want to do it programmatically? Should it be in the creationComplete listener function of the object itself, or perhaps in the creationComplete listener function for whatever parent object it resides in?

View 1 Replies

Flex :: Equivalent Datatypes For Various Wsdl Data Types?

Apr 21, 2011

WSDL defines a number of datatypes supported by web service . Is there a documentation stating the various equivalents of those datatypes on flex side. In general for any language that we use to consume web service, how do we get to know the equivalent datatypes of the wsdl types.

One of the web service that I am consuming is returning base64Binary (an image binary data) , What is the equivalent datatype of this on flex ?

View 2 Replies

Flash :: Flex3 - Flex / Professional Components - What's The Equivalent Of Companies Like Telerik

Apr 16, 2010

In the .NET world order, companies like Telerik provide awesome sets of components for web/windows/silverlight. Who are the equivalents in the Flex/Flash universe? I see lots of sites filled with little 10/20 dollar menu components or uploaders, but I'm really looking to find something a step above that.

View 1 Replies







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