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


Similar Posts:


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

Actionscript 3 :: Detect Clicks Outside Of A Window For A Multi-window AIR App In Flex?

Mar 13, 2011

So I have this AIR app coded in flex where I have several floating native windows and what I want is to detect when a user clicks outside of a window so that I can close it. (I don't want to use the PopupManager Class and would want to use the native windows).

My question is, is there a way to detect a click outside of a spark window, or alternativley is there some root container/object which is a parent to all the native windows so that a click inside any native window would bubble up to it? (Apparently the stage object of the root windowed application is not that object since each window is not a child of the stage for the root application).

View 1 Replies

ActionScript 2.0 :: Detect Clicks Twice / More Times

Mar 7, 2006

How will I detect if the user clicks a movieclip twice or more times. Say I have answer1_mc, then i'll drag it to put in box1_mc, the user will earn 1 pt. But if the user clicks answer1_mc AGAIN, and put it in box1_mc AGAIN, he will not earn another points again.

View 1 Replies

ActionScript 3.0 :: Detect Middle Mouse Clicks Without The Use Of ASnative?

Aug 19, 2010

Is there a way to detect middle mouse clicks without the use of ASnative (or Key.isDOwn) through AS2?

It seems that ASnative is blocked while editing TextField, so i try to find different solution

View 2 Replies

ActionScript 3.0 :: How To Detect If User Clicks Text Input Box

Nov 17, 2009

I have a text input box inside a movieclip. I want to detect when the user clicks inside and open up a modal window with the full form. I use the following line of code:

Code:
this.addEventListener(FocusEvent.FOCUS_IN, _onFocus);

And it works fine, but just the first time. When I close my modal window without entering any information and click on the input form again, nothing happens. The listener is there, but nothing happens. My guess is because the focus is already there. Should I be using another listener? MouseEvent.CLICK is not what I'm looking for because I only want the window to fire when inside the textbox is clicked, not the whole thing...

I also tried
Code:
stage.focus = null;
and it also doesn't work.

View 4 Replies

Actionscript 3 :: Detect Mouse Back/forward Button Clicks?

Apr 12, 2012

In ActionScript 3, can I detect when the user has clicked their back or forward hardware buttons on their mouse?

View 2 Replies

ActionScript 2.0 :: Detect When The User Right-clicks To Display The Context Menu?

Jan 23, 2008

Is there a way to detect when the user right-clicks to display the context menu?

View 6 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 :: 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

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 :: 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

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

ActionScript 3.0 :: Disable Mouse Clicks To The Walls And Character While Allowing Clicks To The Floor?

Sep 23, 2010

I'm building a project that has a character navigate through a room by clicking on the floor. Right now, the walls, character, and floor are all children of the same display object for sorting purposes. My question: is there a way to disable mouse clicks to the walls and character while allowing clicks to the floor? Using mouseChildren appears to be an all or nothing deal and I can't seem to isolate individual floor/wall/character objects for use with mouseEnabled.

View 4 Replies

Actionscript 3 :: Add RichEditableText Of TextArea?

Sep 11, 2011

I'm developing a Flex/AIR application built entirely in ActionScript -- there's no MXML beyond what was originally auto-created.

I need to dynamically generate some kind of editable text-field with high control over formatting. The TLF text fields all seem great, except that I can't get any of them to render on the screen. Due to the nature of the application, they have to be inside a MovieClip, but since I've read that everything must be a descendant of UIComponent, I use UIMovieClip, which is AddChild'ed to the stage.

I'm about to go crazy here, the whole application is in jeopardy over this. I CAN NOT use MXML, and all the 10,000 examples on the internet are MXML. I need to generate these dynamically. I need to generate upwards of 50 fields under one movieclip based on database data. There's no way to hardcode that with MXML. The GUI is very specific about this, and it's the right GUI.

In two days of searching, I can't find a single example in ActionScript, only MXML. I've tried everything that smelled like an example.

Is there some obvious general pointer I'm missing? I'll be happy to post code, but it doesn't make sense because I've been through so many examples.

Does anyone have the simplest possible code for creating any kind of TLF text editing field in ActionScript only (zero MXML), which is then added to a MovieClip or UIMovieClip, which is added to the stage of a desktop AIR application?

View 1 Replies

Set Link Colors In A RichEditableText Component?

Oct 5, 2010

I've got some text that includes links that I display in a RichEditableText component. How do I change the color of the links from the default blue? I tried the example posted by Peter deHaan but it doesn't work with SDK 4.1. I found a way to do this in MXML, but the text needs to be localizable which means I load it at runtime based on the locale, so I can't just include it inline with the MXML.

To recap: How do I set the link colors for a RichEditableText component that displays HTML that gets loaded at runtime?

View 1 Replies

ActionScript 3.0 :: Copy Contents Of RichEditableText?

Oct 21, 2011

So my program contains two spark.components.RichEditableText elements. I want to be able to copy the exact contents of one to the other. This includes text and graphics.

View 1 Replies

Flex :: Best Way To Handle Clicks On Menu Items?

Mar 11, 2010

I do not know why but I see that itemclick event on a menubar do not fired unless you click a sub item. What is the clean way to handle clicks on menuitems which are on the top level and do not have sub menu items. For example I want to fire an event whenever MenuItem B is clicked.

<?xml version="1.0"?>
<!-- menus/MenuBarControl.mxml -->
<mx:Application xmlns:mx="[URL]" >
<mx:MenuBar id="myMenuBar" labelField="@label" itemClick="{itemClick(event)}" >
<mx:XMLList>
[Code] .....

View 3 Replies

Flash :: External Linking Of Flex 3 App - Can Log Where A User That Clicks On It Comes From

Nov 5, 2009

I've made a flex 3 app that is sitting on my web server. People will be able to link to this flex app on my web server on their own sites/blogs/forums and so on. Is there any way I can log where a user that clicks on it comes from? Example: the URL to the flex app is [URL] User A links the flex app at his blog at [URL] Then User B comes in to User A's blog and clicks the flex app and finally ends up at my site. Any way I can log User B's click through the flex app?

View 2 Replies

Flex :: Flexlib ScheduleViewer How To Handle Clicks On Items

Apr 14, 2011

I'm trying to use a flexlib schedule viewer in my application. I want to have it so that when I click on a scheduled event, it calls a function in my main app (that will allow me to edit the event). But there doesn't seem to be any specific function for anything like this built into the class ie no event dispatched when I click on an event.

I can use the 'click' function to detect that the item has been clicked on.. and have tried something like this:

[Code]...

This method isn't very reliable because if it only works the first time.. once an item is selected, it stays selected so all following clicks on the item fulfills the condition.

Is there any way to determine whether an event was being clicked on? Or do I have to extend the component and add some sort of clickEvent when an event is clicked on.

View 3 Replies

Android :: Flex 4.5 Mobile Login Form Needs 2 Clicks?

Apr 25, 2011

I have been working on developing an application for the android market thta firstly requires the users to login to a account. I have put the code together below, along with a data link to a database in order to check the credentials. However the application does not switch to the second view on the first click of the "Login" button however it seems to take 2 or more clicks sometimes. I presume as it is fetching data from a database that it takes time to be verifies, could someeone tell me how to solve this and maybe implement a BusyIndicator along with it?

[Code]...

View 1 Replies

Flex :: Manage Mouse Clicks On Irregular Button Shapes?

Mar 1, 2010

In Flex, I am trying to design 3 buttons similar to the image uploaded at [URL]

The mouse over/click on image should work only on red colored area of the button.
How can I manage the Mouse clicks or Irregular Button shapes in Flex?

View 3 Replies

Actionscript 3 :: Using Log4Fx To Log Button Clicks In States In Flex Application?

Nov 18, 2010

I want to use Log4Fx to log button clicks from a state as i have a state based application with transitions.So on each button click I want to log which state was the user in while he clicked the button because the state change happens on a button click. Can someone suggest a code snippet?

View 1 Replies







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