Textflow word right click

Hi,
I am using TLF in my application. the textflow contains text & inlinegraphics. I am trying to implement spell checker on my own. So I want to add the suggested words for the miss-spelt word. For that I want to know the word I have right cliked on. After that fetching it from library & getting the suggested words part is done.
So I need to add a right click event to the miss-spelt words and to know the word I have to look for(the word on which I have right clicked).
Thanks in advance.

Hi Robin thanks for the reply after a long time. I tried to do this in manner.
Here is the code, what i worked around.
public   var _textContainer:Sprite = null;
_textContainer =
new Sprite();
_textContainer.addEventListener(MouseEvent.CLICK, setCurrentCell);
_canvasTarget.rawChildren.addChild(_textContainer); // Added the container to the object of TLF.
SetCurrentCell Function :
public  
function setCurrentCell(e:MouseEvent):void{
var currentChar:String; 
var currentWord:String; 
var currentIndex:int; 
var tmpIndex:int; 
var tmpChar:String; 
var left:String=''; 
var right:String=''; 
Application.application.mainF.currentCell = _textFlow;
//Get the current word 
if(rightClickFlag){
rightClickFlag =
false; 
//setBlinking(e); 
//trace(_textFlow.interactionManager.activePosition)currentIndex = _textFlow.interactionManager.activePosition;
//trace(_textFlow.getCharAtPosition(_textFlow.interactionManager.activePosition))currentChar = _textFlow.getCharAtPosition(_textFlow.interactionManager.activePosition)
//Traverse backtmpIndex = currentIndex;
tmpChar = currentChar;
while(1){
//Also need to consider for images in between 
if(tmpChar == ' ' || tmpIndex<0 || tmpChar == ''){
startPos = ++tmpIndex;
break;}
tmpIndex--;
tmpChar = _textFlow.getCharAtPosition(tmpIndex);
if(tmpChar.charCodeAt() == 65007 || !(tmpChar.charCodeAt() is Number))//65007 char code of image as a block in plain text format{
startPos = ++tmpIndex;
break;}
left += _textFlow.getCharAtPosition(tmpIndex);
trace(tmpChar.charCodeAt());}
var tmpLeft:String = ''; 
for (var i:int = (left.length - 1); i >= 0; i--)tmpLeft+= left.charAt(i);
left = tmpLeft;
//Traverse aheadtmpIndex = currentIndex;
tmpChar = currentChar;
while(1){
//Also need to consider for images in between 
if(tmpChar == ' ' || tmpChar == ''){
endPos = tmpIndex;
break;}
tmpIndex++;
tmpChar = _textFlow.getCharAtPosition(tmpIndex);
if(tmpChar.charCodeAt() == 8233 || !(tmpChar.charCodeAt() is Number)){
endPos = tmpIndex;
break;}
right += _textFlow.getCharAtPosition(tmpIndex);
//trace(tmpChar.charCodeAt());}
currentWord = StringUtil.trim(left + currentChar + right);
//Alert.show(currentWord) 
//_textFlow.interactionManager.setFocus(); 
//_textFlow.interactionManager.setSelection(startPos, endPos);}
But still i am not able to blink the cursor on right click.
Can you help me furthere, that where i am going wrong.

Similar Messages

  • Microsoft Word, right click in document-how make text larger in menu?

    Microsoft Word, right click in document-how make text larger in menu?
    Microsoft Word 2010 , right click in document-how make text larger in menu?
    I have a hard time reading some of the smaller fonts in context menus but this is not really a context menu. If I open Word and then right click anywhere you see a menu. Is there any way to make the fonts IN THIS MENU larger?
    Not in the document but in the right click menu?
    Thanks so much
    Peter

    The font size of the context menu is controlled by Windows, not by Word.
    For Windows 7, see
    http://www.sevenforums.com/tutorials/1175-fonts-change.html
    For Windows 8, see
    http://www.eightforums.com/tutorials/6932-advanced-appearance-settings-change-text-size-items-windows-8-a.html
    The context menu font is the same as the menu font.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • When i highlight a word, right click and select "search google for "x"" how do i not get directly into the new tab? i want to stay in the old tab

    i want to stay in the current tab and go to the new ones by myself later.

    * '''Ctrl+C''' to copy selected text to clipboard.
    * '''Ctrl+T''' to open a new tab.
    * If focus is not automatically set on the address bar, press '''Alt+D to''' set focus on the address bar OR '''Ctrl+E''' to set focus to the search box.
    * '''Ctrl+V''' to paste text from the clipboard.
    * Smack '''ENTER''' to jump right into a google search if your browser is configured to search through google from those boxes (which it probably is by default).
    * '''Ctrl+Shift+Tab''' to jump backwards through tabs.
    Much, much, much quicker then going through the rigmarole point-click-point-click.

  • When I used to highlight words- Right click- "Search google for ...." it used to open the search in a new tab while keeping current page. Now, the search opens in the current tab as well as a new tab. Is there any way to revert this back?

    Searching google on highlighted words

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Using a right click, how can I load in the background a new Google search tab?

    I can click on a link and have it open in a new tab in the background but try as I might I cannot select a word, right click, choose "Search Google for..." and have the new tabe open in the background. It opens in a new tab but then the tab is immediately selected. Holding down the Shift, Option, Control, or Command key doesn't work. Firefox immediately shifts to the new tab with the Google Search. Ideas?

    If, at the top of your Firefox it does not show the Menu Bar - showing
    <u>F</u>ile <u>E</u>dit <u>V</u>iew Hi<u>s</u>tory <u>B</u>ookmarks <u>T</u>ools <u>H</u>elp, hit F10 to make it show up and then go to Tools > Options.
    Once that opens, click on where it says Tabs at the top. Then un tick the box where it says, "W<u>h</u>en I open a link in a new tab, switch to it immediately."

  • When trying to look at pix on a cd, it comes up as word document and have to right click on preview to see picture. Why

    On my desktop, when wanting to see pictures on a CD, if I click on the picture icon it open as a word document. I must right click on the icon then click on preview and can then see all pictures on the CD. This just started after the last Firebos update. What needs to be done to correct. I have no problem seeing the pictures on my laptop which doen not have Firefox.

    Firefox is a web browser, and your problem is associated with how Windows handles image files. Firefox doesn't even need to be running, so I don't see how it could be associated with your problem. If the problem started around the same time as a Firefox update, I'm willing to bet that it was just a coincidence.
    Try asking in a Windows forum. http://windows.microsoft.com/en-US/windows/help/community

  • Please create "on-the-fly change search engine" option ALSO for when we mark [word] in a text, then right-click, then choose "Search [engine x] for [word]"?

    In Firefox 34, you have changed the search bar.
    The new style is perfect for those who always starts by typing in, letter for letter, the search term.
    People such as myself, we almost never type in the search term,
    but instead we mark a [word] in a text, right-click this marked [word], then select "Search [engine x] for [word]".
    Speaking for myself, I have now a total of 36 search engine providers, but I usually only use 7 of those.
    I use "Wikipedia (English)" most of the time..
    - but then I will switch to e.g. "AniDB" and use that one for 1 hour..
    - or switch to "Google" and use that one for 30 minutes..
    - or switch to "Wikipedia (Norwegian)" and use that one for 2 hours..
    - or switch to "Wiktionary (English)" and use that one for 15 minutes..
    ..and then I will switch back to "Wikipedia (English)" again.
    The way the search bar was in Firefox 33 and earlier, I could very easily switch the default search engine.
    Just one click to open the drop-down menu, then choose one.
    In Firefox 34, I have to choose "Tools" -> "Options", the "Search" tab..
    - before I can THEN click to open the drop-down menu.
    4 clicks instead of 1, that's like 400% more work..!
    Also, the fact that I have to go into "Options".. make this..
    ..I don't know how to put it, it's a kind of psychological barrier that I have to overcome each time.
    I mean, before Firefox 34, I went to the "Options" window like maybe 4 times each YEAR,
    now, I have to go there 4 times each DAY..!
    I am not saying you should revert to the old style Search bar,
    as I feel that those you are typing search terms are indeed very happy for this new style..
    Instead, I think of 2 possible ways to create happiness also for us that do mark text and choose "Search.."
    1) An "on-the-fly change search engine" option ALSO for when we mark [word] in a text, then right-click, then choose "Search [engine x] for [word]".
    This could work as a cascading menu option, where it says..
    Search for [word] in -> [engine x]
    ..and where [engine x] was the current default engine, and all the other engines was listed underneath,
    just like the drop-down menu when you switch the default engine.
    Additionally, you could have an on / off checkbox in the "Options" "Search" tab, where you had this option:
    "Change default search engine when choosing another from the drop-down menu"
    THIS would actually be PERFECT.. It would be even much BETTER than in Firefox 33 and earlier..! :-)
    2) If there are things with the first option that don't work (something I've missed etc),
    then maybe you could have an on / off checkbox in the "Options" "Search" tab, where you had this option:
    "Use old-style search bar"
    This would be off by default, but when switched on, it would give us the old Firefox 33 style Search bar.

    Strongly recommend Context Search extension which will solve your problem
    - https://addons.mozilla.org/en-US/firefox/addon/context-search/?src=search

  • Why can I no longer copy a word or phrase from a New York Times article with a right-click? To copy I have to go to the toolbar Edit|Copy.

    mouse right-click no longer allows me to select Copy of a word or phrase in a New York Times article. To copy I have to use the Firefox tool bar Edit|Copy.
    == URL of affected sites ==
    http://www.nytimes.com

    One or more of your add-ons could be affecting the right-click function. You did not list your extensions. Type '''about:support''' in your URL/location bar to see a list of your Extensions, modified preferences and other Firefox information.
    <u>'''Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes <u>'''before'''</u> starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling <u>'''one at a time'''</u> until the problem reappears. <u>'''You MUST close and restart Firefox after EACH change'''</u> via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Install/Update Adobe Flash Player for Firefox'''</u>: your ver. 10.0 r32; current ver. 10.1 r53 ('''important security update 2010-06-10''')
    See: '''[http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash Updating Flash]'''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    -exit Firefox (File > Exit)
    -check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -double-click on the Adobe Flash installer you just downloaded to install/update Adobe Flash
    -when the Flash installation is complete, start Firefox, and test the Flash installation here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version of Flash. To install/update the IE ActiveX Adobe Flash Player, same instructions as above, except use IE to download the ActiveX Flash installer.
    *Also see: http://kb.mozillazine.org/Flash ~~red:'''''and'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • Out of the blue, unable to open Word attachment in Mail with double click. Have to Right click, open with, select Microsoft Word. Am running Snow Leopard and Microsoft Office for Mac 08. Cheers

    Out of the blue, am unable to open Word attachments in Mail with the usual double click. (Get a longwinded error message)
    Need to right click, select open with, and select Microsoft Word. Have been using Microsoft Office for Mac 08 for years.
    I have reinstalled the Office software. A couple of tech people have been unable to fix it. Any suggestion?? debsuemy

    Please re-post in the Office for Mac Product Forums .

  • Right click with mouse in Word 2013 does not give the list with translate and synonyms etc

    since i upgraded to windows 8.1 right click on words in word 2013 does not open the regular list where you can tap on synonyms and translate. 
    it does work if i touch the screen.
    i moved to mouse mode but it does not help 
    can anyone help...
    i am starting to hate windows 8.1 and word 2013 because of this feature not working

    Hi
    I have tested in my computer and it worked well.
    Normally when we type a wrong spelling, right clicking the word does not give a list with translate and synonyms.
    Check to make sure your spelling is right.
    if the issue persists, Start Word in safe mode to check the issue:Hold "Ctrl" key and click into the program.
    It is also recommended that you do a repair for your Office suites in
    Control panel>Program and features>Office>Change>Repair
    Thanks
    Tylor Wang
    TechNet Community Support

  • Spell Check is Broken - Right Clicking on Misspelled Word Does Nothing

    MIsspelled words are marked as incorrect in Safari, but when I right-click or control-click I never get a dialog to correct the misspelling. Spell-check works fine in all other apps, such as Mail. Any ideas? I have the problem on two machines. All have had upgrade installs from Tiger to Leopard.

    Hi
    When I right-click on a misspelled word (in this case "now") in a text box, this is what my contextual menu looks like.
    Do you see these choices?

  • How do I get Yahoo off the right click menu where I am searching a hi-lighted word?

    If I hi-lite a word then right click the drop down menu says search Yahoo for...
    I don't like Yahoo and don't want it on my browser.
    I would like to use a search engine of my own choosing.
    Thanks.

    That item in the right-click context menu uses the default search engine as set in the search bar on the Navigation Toolbar.
    *https://support.mozilla.org/kb/Search+bar

  • Autocorrect right-click options in Word 2013

    I don't know where else to provide this feedback.
    Office team - can you please add the Autocorrect options back into the context-sensitive right-click menu on a spelling mistake in Word.  I use these
    all the time every day and its a PIA to not have them there. 
    Thanks for your time to hear some feedback on how to make Word better (again).
    G.

    So here's a way to voice your displeasure to Microsoft on this change in Office 2013 (if you are comfortable making changes to your Registry):
      1. Start/Run --> Regedit
      2. Expand the following key:
    HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Feedback
                a. If there is a DWORD key for
    Enabled,
                         * Change the value to "1"
                         * Close regedit and re-launch Word.
                         * Jump to Step 3.
                b. If there is no DWORD key for
    Enabled
                         * Right-click in the right-window pane (under the Feedback folder)
                         * Select
    New --> DWORD (32-bit) Value
                         * Name the DWORD
    Enabled and press [Enter]
                         * Set the value to 1.
                         * Close regedit and re-launch Word.
      3. When Word opens, you’ll have a smiley emoticon in the top right hand corner of your screen, click it.
      4. You’ll be given the option to “Send a smile” or “Send a frown”…one guess which version this forum will send lol
      5. Click the option that pertains to your desired feedback (or submit feedback via both options so they get it either way…).
      6. Fill out the form at your discretion; word of thought: be critical but not mean and dismissive, there is a difference. (Exa: Please provide an update that brings back the right-click context menu for the Autocorrect side-scroll dropdown list. If
    not by default, at least allow it to be a selectable option within the File/Options menu.)
      7. I’ve attached a “screenshot” below (if it doesn't get screened out) that you can open in the background and have that be your “screenshot” view if you want to send that to Microsoft with your feedback (or create/edit your own as you see fit).
      8. Also, if you want to “fix it” yourself like you see in my attached screenshot, search this forum post for a reply by “Greg Maxey”. He created a workaround that when you copy it to the Word startup folder
    (C:\Users\%username%\AppData\Roaming\Microsoft\Word\STARTUP), it will re-enable the feature. His template addendum can be found here:
    http://gregmaxey.mvps.org/word_tip_resources/Add%20AutoCorrect%20to%20Word%202013%20Spelling%20Shortcut%20Menu.dotm
    It
    just needs to be copied to the folder mentioned above and when you restart Word 2013, the option is available again.

  • When I right click on a highlighted word I am prompted to search with AVG. I would prefer to search using an alternative search engine. How do I change this?

    When I right click on a highlighted word I am prompted to search with AVG. I would prefer to search using an alternative search engine. How do I change this?

    Reply: Cor-el > Excellent!! Thank You. In Tools, Add Ons, Extensions there was a Default Tab enntry which was the culprit. Am running W7 so the XP Tools, Options, Advanced , Use Hardware acceleration when available, wasn't of much help here, however I did fix a problem on another computer running XP with that same fix. Thank You very much! HD

  • Crash when right-clicking or control-clicking misspelled word

    When I run a variety of applications that involve word processing (Word, Pages, Keynote, PowerPoint) and I misspell a word, and the application indicates it with a red underline, and then I right-click or control-click on the word in at attempt to correct that word, the application hangs (beach ball) and must be forced to quit. This behavior is extremely reliable; all I need to is open the app, type one misspelled word, and I can reproduce it. I do NOT see the behavior in Mail, Safari, or TextEdit.
    Running OS 10.6.2, with all updates installed on a 2.66 GHz Intel Core 2 Duo iMac with 4 GB memory. Office is version 2008 with all updates installed. Using a Mighty (wireless) Mouse, but switching to a regular Mac mouse produced the same effect (hey, worth a try). Have fixed all disk permissions and rebooted.

    HI Stephen,
    First, go to ~/Library/Caches/com.apple.DictionaryServices and move the DictionaryCache.plist file to the Trash.
    Now go to ~/Library/Preferences and move these files to the Trash.
    com.apple.Dictionary.plist
    com.apple.DictionaryServices.plist
    Restart your Mac.
    Carolyn
    Message was edited by: Carolyn Samit

Maybe you are looking for

  • How to deploy a RAC with less than 5 disks in OVM 3.0.3

    Hello, Ive already successfully deployed two RACs based on the corresponding template. Now I want to deploy another RAC but only with 3 shared disks (instead of five). Of course Ive read the Appendix C of the template description but its not clear fo

  • JDBC  response  mapping

    Hello, I have  two sql statements (union ) selecting data from multiple tables and I have the sql XML as follows.   The response structure is also given bellow. Do I need a response  for STEMENT_TWO  also?  How do I map the result to single target ?

  • ALE/IDOCs query

    Hi friends, I have one more query on ALEs ...My scenario is like if we create a <b>PO</b> in one server it has to be convert as <b>SO</b> in another server.Now im getting the idoc status s <b>51</b> & the error message is <b>shipping condition 10 is

  • One Mac, one User, one library, two Store accounts possible

    Is it possible to buy with two different store accounts? It's one user on the computer, one Music library but I would like to shop for my daughter without adding another account. She's on an imac G3, so I can't fill her iPod nano there. Joachim

  • Good night. I want to buy a camera with its range of internet. You sell accident insurance.

     Good night. I want to buy a camera with its range of internet. You sell accident insurance. I do not want to buy the camera in your page without insurance protection. Thanks