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


Similar Posts:


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

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 :: 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 :: Detect Mouse Click On Spark.components.List Items But Ignore Arrow Keys

Sep 8, 2011

I have a custom component, containing a List displaying items from an XMLListCollection:

[Code]....

Also if I click twice, only 1 mouse click will cause my custom event to be dispatched (because obviously there is no change between the items). how to make my List only react to mouse clicks? UPDATE: Yes, I've tried using "change" event for the List before, but then I have the problem that it is fired, even if the List scrollbar is clicked.

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 :: Won't Detect Mouse Click

Aug 3, 2011

I just wrote an "Hello World" in Flash CS5, and now I wont to detect the mouse click.[code]This is the Main class of the SWF.I dont understand why cases 1 and 2 dont work, and 3 does ?

View 9 Replies

ActionScript 2.0 :: How To Detect Mouse Right Click

Oct 4, 2005

Iam using flashMx 2004, is there any method to detect mouse right click ?

If user Mouse right clicks i want to execute some actions.How to do this?

View 5 Replies

ActionScript 2.0 :: Detect A Click On The Input Text Box?

Jul 29, 2006

I have many input text boxes, I want to do something when a user clicks on an input text box but I don't know how to detect which input text box got clicked?

View 2 Replies

ActionScript 3.0 :: Detect And Disable A Double-click

Apr 11, 2009

I have a Flash application were I must ensure the user does not double-click on a hotspot or that double clicking is not enabled.

I am sure or I hope at least this is simple, but I am really struggling to manage to make it work.

View 4 Replies

Actionscript 3 :: Detect A Click On A Drag And Drop Object?

Nov 5, 2010

I'm building a flash app that has some draggable buttons on it and I want them to behave like this:

You click on it, ClickEvent1 happens, You click and hold on the button, you can move it. If you release from the hold, it does NOT trigger the ClickEvent

I'm running into the logic problem of not knowing whether a user is just clicking or starting a drag event. Does anyone know any logic to get around this issue? I have thought of alternatives such as placing regions of the button that are only draggable or only clickable, but I've seen this type of functionality in other flash apps and I'm wondering how it is accomplished.

View 2 Replies

Actionscript :: Detect A Click And Drop On A Line In Flash

Apr 27, 2011

I have converted line to movieclip. Now I want to detect click and drag on line not on whole movieclip how to add listener just to the line ?

View 1 Replies

Javascript :: Jquery - Detect Flash Object Click?

Jun 8, 2011

Is there a way I can have JavaScript/jQuery know when a Flash object has been clicked (and still have Flash process the click)?

I tried putting a table on top of the object with position: fixed and a z-index and the object set to param name='wmode' value='transparent' so I could have my JavaScript detect which column was clicked using jQuery's click(), but the clicks were never intercepted by JavaScript (Chromium Linux).

View 2 Replies

Flash :: Detect A Click On The Border Of A Canvas, Not Its Contents?

Aug 29, 2011

How I can detect a click on the border of a canvas, not its contents?.I am aware that I can validate ranges event.mouseX (Y),but my canvas has rounded corners and in some cases appears to be a circle,is there any way of knowing if the border of the canvas is under the pointer?I have:

Canvas.setStyle ("borderColor", 0xFF0000);
Canvas.setStyle ("borderStyle", "solid");
Canvas.setStyle ("BorderThickness", 10);

View 3 Replies

ActionScript 3.0 :: Detect In The External Swf That The User Click Another Menu Voice?

Apr 16, 2010

I'm going to create a new website where i've a main swf that loads all the other that are called by the menu. I'm going to use swfaddress for deeplinkng, but my question is: when the user click on one menu voice the main swf load an external swf. now, when i click on another swf i must make a out-transition of the current loaded how can i detect in the external swf that the user click another menu voice? Or i must do the out-transition in the main swf?

View 1 Replies

ActionScript 3.0 :: Sliding Puzzle - Each Panel Detect If There's A Free Space Near It When Click Them?

Sep 29, 2010

I'm trying to create a simple 2D sliding puzzle in AS 3.0, but I haven't gotten further than splitting up the image and placing it into a grid. My main issue is to figure out how each panel will detect if there's a free space near it when you click them.

View 1 Replies

IDE :: Attach Movieclip To Datagrid Cell (and Detect Mouse Click On CellRenderer)?

Aug 28, 2008

Not to certain how many people may need this script, but lo and behold I had need of it for my project. So, here's my script on how to add a movie clip to a Datagrid Cell via CellRenderer1) Create an Actionscript file (*.as) and call it IconCellRenderer2) Put the following code inside that file:

Code:
package
{

[code].......

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

Actionscript 3 :: Give Click And Double Click Together In Advanced Datagrid Flex?

Mar 29, 2012

I want to listen both click and double click events for advanced data grid in flex. I have given double click enabled true and written the function in itemdoubleclick but only click is working but not itemdoubleclick

View 1 Replies







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