RichEditableText fontFamilyArray?

Can anyone tell me how to embed multiple font families into a RichEditableText component?
I have embedded three fonts and they will all be used within a single component - I may want a different font family completel;y or Bold, Italic, Bold-italic, etc.
I am currently using:
instance.setStyle("fontFamily", "Verdana");
but I would like something like:
instance.setStyle("fontFamilyArray", ["Verdana", "Arial", "Times"]);
But the component doesn't appear to accept fontFamilyArray at all.
Thanks for any help.

hmmmm.... interesting... that's close to where I'd got to when I posted originally.  The difference is that I'm setting the textFlow in actionscript, from a actionscript class:
private function setText(instance)
instance.setStyle("fontFamily", "Verdana");
var instanceValue:String = '<P><FONT FACE="Verdana" SIZE="14" COLOR="#000000">This is a nice piece of text in verdana. </FONT></P><P><FONT FACE="Comic Sans MS" SIZE="12" COLOR="#000000">This is a nice piece of text in Comic Sans. </FONT></P>';
instance.textFlow = TextConverter.importToFlow(instanceValue, TextConverter.TEXT_FIELD_HTML_FORMAT);
I didn't have the setStyle("fontFamily", "Verdana") in my function - I had put it in the MXML with the component definition, which didn't work... moving it into the AS function made the difference - it's working perfectly now.  I'm very grateful - thanks!! 
Now I can go ahead and build my screen layouts... woooo!  *relieved*
Thanks again.
Simon.

Similar Messages

  • RichEditableText: Control+z for undo works in firefox but does not work in internet explorer (ie)

    Hi,
    I was doing some testing with RichEditableText and realized that the undo and redo when called by keyboard (Control + Z) in Internet Explorer does not work.
    Thanks,

    Hi, Gordon Smith, thanks for answer.
    I tried to pass a javascript event to the flash but still the IE does not fire, but by the way there is no way around this situation.
    With javascript I tried
    document.attachEvent("onkeydown") but doesnt work, this not fires with flash over.

  • Scrollbar doesn't show all text in RichEditableText component ...

    The program is loading text from an external XML-file into a RichEditableText component.
    However, scrolling an scrollbar does not show all the available text.
    To me, it looks like the scrollbar is not updated to adopt itself to the new text.
    Does someone has any pointers, how to fix this, because I have no clue where to look?
    Thanks in advance,
    Peter
    Code snippets:
    The bindable 'data' is filled with an html-formatted text, when the XML-file is loaded.
    TextFlow is used to display the html-formatted text.
    MyTextScrollPanel component contains VScrollBar and component MyTextScrollPanelScrollingContentSkin:
    <s:VScrollBar id="vscrollbar" left="185" right="0" top="0" bottom="0" fixedThumbSize="true"
    viewport="{contentGroup}" />
    <components:MyTextScrollPanelScrollingContentSkin id="contentGroup" clipAndEnableScrolling="true"
    left="0" right="20" top="0" bottom="0"/>
    MyTextScrollPanelScrollingContentSkin component:
    <fx:Script>
              <![CDATA[
              [Bindable] public var data:String;
              ]]>
    </fx:Script>
    <s:RichEditableText id="textContent" d:userLabel="Text" x="0" y="0" width="185" height="682"
                                  editable="false" selectable="false" color="#ffffff"
                                  fontFamily="Myriad Pro" fontSize="12" tabStops="S0 S50 S100 S150 S200"
                                  textFlow="{TextConverter.importToFlow(data, TextConverter.TEXT_FIELD_HTML_FORMAT)}"
                                  whiteSpaceCollapse="preserve" >
    </s:RichEditableText>

    One (practical) solution I came up myself, is adopting the height of the RichEditableText to the length of the data:
    <s:RichEditableText id="textContent   ...  height="{data.length}"      .... />
    A practical height value turns out to be {data.length/2}, indicating that 50% of the text is html-tags and whitespaces (??)
    Does someone knows or could point to a more elegant solution?
    Note: the division "/2" worrows me, since the customer is proving the text.
    Thanks,
    Peter

  • Multiple ContainerControllers  with RichEditableText

    Hi, I wonder if someone could help with regard to the following issue.
    Starting with a heavily modified version of the initial tlf actionscript Pagination example. I import a text flow of varying length, create seperate containercontrollers and containers ,compose and  place the resulting pages in an array for display, using a page fwd /backwards principle.
    When I use a RichText container paging fwd or back works fine, and I get all the text displayed, but if I use a RichEditableText (required in the app for  insertion of links) the paging works fine but all I get displayed is  the first line of each page. I have tried to set various properties like, selectable and editable to false but to no avail.
    What am i missing.
    Regards
    John
    Ok i am still having major problems with getting my head around this, and whist trying to find a solution,I have found two or three posts suggesting that RichEditableText containers do not support linking. Can someone say definively whether or not this is the case. If it is the case can someone suggest a way of doing the following. Here is my scenario
    Various different text flows will be created and formatted from imported xml dynamically, the resulting textflow will be of varying length, and in some instances so long that just using one container would mean scrolling forever. Hence i need someway of "paging" , which I have succesfully achieved using a RichText Container, ie compose to several different containers, and add and remove them from the display list.
    The above would be fine apart from the fact that I need to be able insert hyperlinks into the textflow, and the only container able to support this is the ret. Any detailed sugestions would be much appreicated, as I am still a relative newbie with flex and as3 .

    Neither RichText nor RichEditableText support multiple ContainerControllers so what you are doing is neither supported nor tested.  The fact that it works in RichText is coincidental.  IMHO you'd be better off creating your own paginating widget.
    Richard

  • RichEditableText with embedded images does not handle mouse events reliably

    I'm using Flash Builder "Burrito".  downloaded a couple of weeks ago.  Flash Player 10.1.85.3 debug version.
    I have the following MXML object:
    <s:Scroller
    width="100%" height="100%"
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    skinClass="components.skins.SxScrollerSkin"
    >
    <s:Group id="myGroup" width="100%" height="100%">
    <s:RichEditableText id="myRichText" >
    </s:RichEditableText>
    <!--- Do not set the height of the RichEditableText - since it seems to prevent the appearance of the vertical scroll bars -->
    </s:Group>
    </s:Scroller>
    With the following Actionscript to initialize, etc.
                textContainer = new SxBorderContainer(name);
                textContainer.dx = dxAvailable;
                textContainer.dy = dyAvailable;
    scroller = new SxScroller();
    scroller.move(dxPadding,dyPadding);
    scroller.dx = dxAvailable
    scroller.dy = dyAvailable;
    textContainer.addElement(scroller);
    var richText:RichEditableText;
    richText = scroller.richText;
    richText.toolTip = toolTip;
    richText.enabled = true; // required for mouse click capture
    richText.selectable = true; // required for mouse click capture
    richText.width = dxAvailable
         var textFlow:TextFlow = TextFlowUtil.importFromString(textFlowString, WhiteSpaceCollapse.PRESERVE);
          richText.textFlow = textFlow;
    And the following code to catch events:
                    richText.addEventListener(FlowElementMouseEvent.MOUSE_DOWN,userMouseEvent);
                    richText.addEventListener(FlowElementMouseEvent.MOUSE_UP,userMouseEvent);
                    richText.addEventListener(FlowElementMouseEvent.CLICK,userMouseEvent);
    Here's the problem.   If I have embedded images in the TextFlow that is imported into the richText, I only catch "some" mouse clicks.  It's hard to know, but it seems that only mouse clicks into white space (between paragraphs) are caught.  Mouse up and down are caught, but not "click".  Very puzzling.
    TextFlow like this:
        <TextFlow>
          <div color="#442222" fontFamily="Times New Roman" fontSize="20" paragraphSpaceAfter="15" textIndent="15">
            <p>
              <span>
                Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do:  once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, `and what is the use of a book,' thought Alice `without pictures or conversation?'
              </span>
            </p>
            <p>
                  <span>So she was considering in her own mind</span>
                  <img source="assets/library/alice/images/White Rabbit.png" height="auto" width="auto" float="left" />
                   <span> (as well as she could, for the hot day made her feel very sleepy and stupid), whether the pleasure of making a daisy-chain would be worth the trouble of getting up and picking the daisies, when suddenly a White Rabbit with pink eyes ran close by her.</span>
            </p>
    If there are no embedded imags, I get all clicks exactly.
    Is it a bug?  Am I missing something? 
    Thanks,
    Oz

    Thanks for the answer. First I need clicks anywhere in the RichEditableText (no links or images). I use the selection manager to find the exact word that was clicked.
    The next step would be to capture clicks on links and images.
    I have tried using MouseEvent and had the same result (or worse) as FlowElementMouseEvent.  I will go back and retest with your suggestion.
    Oz
    Result of retest:
    I catch clicks only over images embedded in the TextFlow.  I catch only mouse up/down over text - both MouseEvent and FlowElementMouseEvent.
    Puzzling.  Where are the clicks going?

  • RichEditableText textFlow problem with \n

    I cant say more right now, but I have found some strange problem. We have skin with RichEditableText and we bind text property with some data from server. If there is string with \n inside whole app froze, or CPU is very high. In profiler I have found infinite calls fro textFlow recreating. I need to find out more, but maybe someone has some idea, what's wrong.
    When I create some small test app with just 2 RichEditableText and just copy string with enters, it works, but debugger doest show \n, but just multilined string. So maybe it's something with encoding or something similar.
    Im suing flex sdk 14403...
    any idea? Can I use any characters inside, or is there any limitations?
    Thanks

    dear alzaeem i ran java in before this time when i installed it in memory card
    i dont know whay u say it doesnt run in memory card
    before this i installed every application of java and symbian in memory card with out any problem and after installation icon of them were in application list
    when i install java in memry card i dont have problem with installation and its complete installation and there is the name of that software java in installation list but my problem is that there is any icon of software in application list or every where to start or run it.

  • Binding with a RichEditableText control

    Hi All,
    I've got a RichEditableText control that I want to bind to an HTML string (or, I can reformat the string to use other markup if necessary).  That string is stored in a database on the server.  It's delivered to the Flex app via JSON.
    So, once I've got that string I can bind it to the RichEditableText.text control, and if the source string is changed (e.g., I reload it from the server, and it has a new value), it will be updated.
    The problem is, if I bind to RichEditableText.text, it just displays HTML tags, rather than rendering them as a browser would--e.g., <b>bold</b> instead of bold.
    Is there a way I can setup binding so that my HTML will get rendered the way a browser would?  It's only a few simple tags--paragraph tags, bold tags, etc.
    I can rewrite the HTML to be in another format if RichEditableText wants another format.  This string is only used by the Flex app.
      -Josh

    _spoboyle wrote:
    use RichEditableText.htmlText
    spark.components.RichEditableText has no htmlText property.  What you linked to is the mx.controls.RichTextEditor component.
    Can I not use RichEditableText to display dynamically loaded rich text?  I can use RichTextEditor if that's what I have to do.

  • RichEditableText  that contains readonly parts of text in Flex 4.1

    Hi!
    Is there a way to make parts of text readonly in a RichEditableText ?
    What I actualy want is to be able to append words that would act as a char, meaning the user won't be able to modify the word and if he tries to delete it , the whole word will be deleted.
    I've tried to search for the 'editable' properties on the elements from a TextFlow or  on a TextLayoutFormat but there's no such thing ....
    The other solution I thought would be to save the position for the readonly words, and on each text change update positions and check if the editing affects any readonly word. The problem is that I fear this solution  would add a semnificant delay on editing .
    Can you please point me to a solution?
    Thanks!

    Just in case someone else is interested in this behanior,  I've choose to implement this useing InlineGraphicElements. I've added the readonly text inside a Sprite useing  a TextField and then added the Sprite as source for a new InlineGraphicElement.  This asured the wanted  functionality but I had problems with makeing the graphic text look like the one in the RichEditableText because I was useing embeded fonts as CFF that did not work for the Textfield.
    I hope this helps !

  • Flex 4 - insert combobox or other interactive component within RichEditableText

    As part of my massive quest to convert a large application from AS2 to Flex AS3, I am going to need to insert a UI component within a RichEditableText component.
    Is that actually possible?
    In AS2, I had created each word of a paragraph as a separate textField and then positioned them all together, inserting input fields and combobox components as required.... however... project requirements means I have to try and insert components within full paragraphs, if possible... Dynamically and in actionscript.  I'm not sure where to start attempting this... if anyone has any ideas which might help, I'd be truly grateful !!!
    This is a question paragraph.  The first answer to this paragraph question is [combobox] and the second might be [combobox] so select your answers and press the check button.
    Thanks.

    Have you discovered TinyTLF yet? I believe it will enable you to create the sort of controls you're looking for. http://guyinthechair.com/

  • Minimum font size RichEditableText

    I'm using RichEditableText (with a TextConverter textFlow) to display emails that have been received which works great for bot clear text as well as HTML emails, however sometimes the HTML is really tiny.
    Now I've looked at this for a while and it always appears to be caused by a fault in the HTML markup in the received email.
    Some had a tag like ...<FONT SIZE="1"><SPAN STYLE='font-size:9.0px'>... in it and others had other similar reasons for it to appear very small.
    I obviously can't control what tags different mail clients put in their HTML mails, but does anyone know if there's a way of setting like a minimum font size for this RichEditableText so even though the HTML says it should be font size 1, it's actually displayed at the minimum size?
    I'm currently using this:
         <s:RichEditableText id="noteText"     selectable="true" editable="false" textFlow="{TextConverter.importToFlow(theEmail, TextConverter.HTML_FORMAT)}" />
    Thanks
    Skip

    Hmm, unfortunately this means i'll have to scan and reformat HTML as it comes in and replace <font size=xx> so the minimum size is i,e, 10px.
    All doable, but just a bit frustrating that there still is no simple way to display some basic HTML (and I don't want to go down the iFrame route).
    Oh, I also noticed the rendering of textFlow HTML in a richtexteditor is extremely slow and it stops rendering when it comes across:
    I'll file seperate bug reports for those as well.
    Luckily the Halo Text still does the trick even with it's known HTML limitations.
    Ah well. Thanks anyway.
    Skip

  • How to calculate the real height of the text in RichEditableText control?

    Hello,
    I created a new component by extending the RichEditableText control.
    When I try to get the value of contentHeight propery of this class even after compositionComplete event has fired, I get incorrect content height (so called "estimated" height). I was able to obtain the correct value only ater I set verticalScrollPosition to a value beyond this estimated content height thus causing the class to calculate real text height. Here is a code snippet.
    public class ViewerController extends RichEditableText
    public function loadText(){
       var tf:TextFlow = TextConverter.importToFlow(LONG_XML_FILE_WITHOUT_PICTURES_GOES_HERE as XML, TextConverter.TEXT_LAYOUT_FORMAT);
       //Events  
       tf.addEventListener(CompositionCompleteEvent.COMPOSITION_COMPLETE, compositionComplete);
       tf.addEventListener(StatusChangeEvent.INLINE_GRAPHIC_STATUS_CHANGE, pictureLoaded);
       this.textFlow = tf;  
       this.verticalScrollPosition = 0;  
       this.textFlow.flowComposer.composeToPosition(); // I assume this makes the control calculate the real size of the text
    private function pictureLoaded(event:StatusChangeEvent):void {
    private function compositionComplete(event:CompositionCompleteEvent):void {     
    But what if I want to know the real height BEFORE I scroll to the very bottom of the text (or before even displaying this component)?

    SDN is not your code factory, please research yourself before posting, maybe ask whoever handed you this requirement?
    Thread locked.
    Thomas

  • TextFlow into multiple RichEditableText containers keeping container styles

    I'm stumped.
    Can  anyone help me to flow text into multiple RichEditableText contianers  with different styles applied to each container?  When I use the  following code, it works for flowing text between the containers but it  does not adopt the styles of the RichEditableText objects that I attach.
    var textFlow:TextFlow;
    textFlow  = TextConverter.importToFlow("one two three four five six seven eight  nine ten eleven twelve thirteen", TextConverter.PLAIN_TEXT_FORMAT);
    textFlow.flowComposer.addController(new ContainerController(richTextEditor1, richTextEditor1.width, richTextEditor1.height));
    textFlow.flowComposer.addController(new ContainerController(richTextEditor2, richTextEditor2.width, richTextEditor2.height));
    textFlow.flowComposer.updateAllControllers();
    I  have tried to apply styles directly to the ContainerControllers with no  success.  I can apply a style to the TextFlow but it uses that style  for the all containers where the text is flowing into.
    If I  attach the textFlow object directly to the textFlow property in the  RichEditableText object, it will keep the formatting of the  RichEditableText.  But then I can't figure out how to make it flow to  the next text box.
    I even tried adding the additional  controller (attached to the second RichEditableText) to the TextFlow  after attaching it to the first RichEditableText object.  No luck.
    I hope this is a stupid qustion and there is a simple answer.  Any help is appreciated.
    Thank you!
    Mike

    Unfortunately it is a good question and there isn't a simple answer.
    The RichEditableText component was not built with multiple containers in mind, so you'll run into problems trying to use it in a multiple container context.
    It sounds like you've figured out how to run the text through multiple containers directly from ActionScript, which does work well. You can then attach an EditManager to make the text editable. And as the documentation states, you can use the format object on the ContainerController to change container-level formatting (like columns). But if I'm understanding you correctly, you're trying to get the text to change something like fontSize or fontStyle as it flows between containers. That's not something TLF supports yet, and it's not a simple feature to add (either in TLF or your own code).

  • RichEditableText: export().equals() and HTML export

    1. How can I find out that two richEditableText.export() are equal?
    At least the order of the attributes in the TextFlow element is random which means that exported strings cannot be compared directly. Take for example the trunk.mxml from http://bugs.adobe.com/jira/browse/SDK-21836 and compile+run it several times and you see the different order of attributes. Is there a utility method somewhere to compare two exports? (BTW releasing the source of TLF would ease these kind of bug hunting...)
    I know how to use richEditableText.textFlow.generation but this only indicates changes in the current component.
    2. Is supporting html import/export on the roadmap?
    (This question got burried in the information stream... http://forums.adobe.com/message/2042067#2042067)
    Gordon Smith: TLF's TextFilter class supports importers and exporters for HTML_FORMAT, but I haven't tried them and don't know how robust they are.
    I think the HTML export in TLF is not yet stable. The thing is that once
    it is stable there is pretty much no way to insert the import
    functionality into RichEditableText without rewriting most of the
    component. In my opinion, it should be either integrated into
    RichEditableText even at this early stage or RichEditableText should be
    refactored to allow extending it in an easier way.
    Thanks for any hints,
    Marc

    Hi Abhishek,
    Nice conversation I do not expect that TLF covers the full HTML standard. After all, browsers are too good when it comes to HTML rendering...
    with varying degrees of fidelity.
    I remember reading in the TLF forum, that HTML import/export was experimental. That's why I wrote that HTML is not ready for prime time. Also your comment shows that HTML is a poor choice from a Flex perspective. Unfortunately, it's unclear what varying degrees of fidelity really means as I'm not aware of any precise documentation or code.
    Concerning your idea about passing around a (mutable) instance of TextFlow, I'm not a great fan. The power of markup is besides others, that it is a comparable description of content and format. So I definitely prefer an equal function. If this function doesn't make it into the Flex 4 release, I  reluctantly add to each TLF markup a dirty flag which is based on TextFlow.generation.
    As mentioned before, I prefer TLF could export all content and formatting into HTML compliant format. There are many reasons why HTML is a huge benefit over any new, widely undocumented format (this is not specific to TLF or FXG). A few reasons that come to my mind:
    - Server side: Apache Lucene has a battle-proof extractor. With TLF or FXG, I had to write and configure my own.
    - Server side: Extract and modify links in content. This is obviously very easy with HTML as there are age-old libs available.
    - Flash Player: Compare two TLF markups. There might be also no actionscript lib for HTML available. But I'd happily start a project for HTML but not for a new format without underlining code and thorough doc.
    - HTTP communication: what's the mime type of TLF or FXG?
    - Every developer knows HTML, TLF/FXG must be learned. I regard this learning as a high barrier as TLF does not seem to be a big step forward compared to HTML.
    Note that I don't prefer HTML because it is an "open standard". It's because the whole world knows HTML and that brings a much higher engineering efficiency (and that's maybe due to the open standard). If not all information of TLF can be export HTML, it's a pity but just document it.
    Looking forward to your thoughts/comments,
    Marc
    abhishek.g wrote: Hi Marc,
    Thanks for your reply.
    TLF supports many different markup formats (TLF, FXG, Plain text, HTML) with varying degrees of fidelity. It would simply not do to compare HTML because there isn't a 1:1 correspondence between TLF and HTML capabilities. From that perspective, TLF format would be your best bet though I realize there is the problem of inconsistent attribute order.
    Perhaps your scenario is better addressed by having utilities to compare TextFlow instances rather than comparing corresponding markup (this needs additional thought).
    As for HTML import/export, it is obviously be beyond TLF's scope to implement the full HTML standard. The current implementation is loosely based on the HTML capabilities of flash.text.TextField (see htmlText property), which itself is a small subset of the standard, and deviates from it in some ways. When you say HTML support is not ready for prime time, are you referring to this limited scope, or have you encountered specific bugs in the implementation? If the former, I'd like to know what your expectations are. If the latter, please report them.
    Thanks
    Abhishek
    (Adobe Systems Inc.)
    This message was sent to: faindu
    To post a reply to the thread message, either reply to this email or visit the message page:
    http://forums.adobe.com/message/2059470#2059470
    --end--
    mail transfer stalled...

  • Squiggly TLF and RichEditableText

    I am trying to apply SpellUIForTLF to the TLF object contained within a RichEditableText spark object.
    My mark up looks like this:
    <s:RichEditableText id="myTextArea" bottom="50" top="0" left="0" right="200" />
    Then in my creationcomplete handler:
    protected function init(event:FlexEvent):void
        SpellUIForTLF.enableSpelling(myTextArea.textFlow,"en_US");
    The problem is that when I start up the application, I get this error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at flashx.textLayout.container::TextContainerManager/getContentBounds()[C:\Vellum\branches\v 2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManage r.as:680]
    at spark.components::RichEditableText/textContainerManager_compositionCompleteHandler()[E:\d ev\4.5.1\frameworks\projects\spark\src\spark\components\RichEditableText.as:4448]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flashx.textLayout.container::TextContainerManager/dispatchEvent()[C:\Vellum\branches\v2\2 .0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.a s:1553]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flashx.textLayout.elements::TextFlow/dispatchEvent()[C:\Vellum\branches\v2\2.0\dev\output \openSource\textLayout\src\flashx\textLayout\elements\TextFlow.as:859]
    at flashx.textLayout.compose::StandardFlowComposer/http://ns.adobe.com/textLayout/internal/2008::callTheComposer()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compos e\StandardFlowComposer.as:688]
    at flashx.textLayout.compose::StandardFlowComposer/internalCompose()[C:\Vellum\branches\v2\2 .0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as: 760]
    at flashx.textLayout.compose::StandardFlowComposer/updateToController()[C:\Vellum\branches\v 2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer. as:556]
    at flashx.textLayout.compose::StandardFlowComposer/updateAllControllers()[C:\Vellum\branches \v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowCompose r.as:517]
    at com.adobe.linguistics.spelling::SpellingContextMenuForTLF()[C:\p4_garuda1890_ugoyal-xp\es g\squiggly\main\AdobeSpellingUITLF\src\com\adobe\linguistics\spelling\SpellingContextMenuF orTLF.as:95]
    at com.adobe.linguistics.spelling::SpellUIForTLF/addContextMenu()[C:\p4_garuda1890_ugoyal-xp \esg\squiggly\main\AdobeSpellingUITLF\src\com\adobe\linguistics\spelling\SpellUIForTLF.as: 481]
    at com.adobe.linguistics.spelling::SpellUIForTLF/loadDictComplete()[C:\p4_garuda1890_ugoyal- xp\esg\squiggly\main\AdobeSpellingUITLF\src\com\adobe\linguistics\spelling\SpellUIForTLF.a s:464]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.adobe.linguistics.spelling.framework::SpellingService/loadDictComplete()[C:\p4_garuda 1890_ugoyal-xp\esg\squiggly\main\AdobeSpellingFramework\src\com\adobe\linguistics\spelling \framework\SpellingService.as:117]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.adobe.linguistics.spelling::HunspellDictionary/loadDictionaryComplete()[C:\p4_garuda1 890_ugoyal-xp\esg\squiggly\main\AdobeSpellingEngine\src\com\adobe\linguistics\spelling\Hun spellDictionary.as:157]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.adobe.linguistics.spelling.core.utils::SquigglyDictionaryLoader/loadWithoutTimeouts() [C:\p4_garuda1890_ugoyal-xp\esg\squiggly\main\AdobeSpellingEngine\src\com\adobe\linguistic s\spelling\core\utils\SquigglyDictionaryLoader.as:327]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at SetIntervalTimer/onTimer()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    Can someone point out why this is happening?

    Hi Godly,
    Please use SpellUI.enableSpelling from AdobeSpellingUIEx.swc.
    You will need to use AdobeSpellingUIEx.swc from the Squiggly package instead of AdobeSpellingUITLF.swc which must be using right now.
    Your code will look something like this:
    import com.adobe.linguistics.spelling.SpellUI;
    protected function init(event:FlexEvent):void
       SpellUI.enableSpelling(myTextArea,"en_US");
    <s:RichEditableText id="myTextArea" bottom="50" top="0" left="0" right="200" />
    Please let me know if this solves the issue.
    Thanks,
    Utsav

  • How to copy richEditableText content to clipboard??

    i want to copy a richEditableText content to the system clipboard
    i wrote this:
    System.setClipboard( myRichEditableText.content );
    but...... the parameter must be a string .......
    could anyone teach me how to do that @@?

    thx a lot.  : )
    i've met a trouble again, could u help me?
    if i have a variable
    public var myVar:String == "xxxx"
    and i wanna add this string variable to a textFlow  , what should i write??
    <s:TextFlow>
    <s:p><s:span>
    </s:span></s:p>
    </s:TextFlow>
    doesn't work T.T ....
    2010/3/3 Vikram_S <[email protected]>
    Hi,
    >
    http://help.adobe.com/en_US/Flex/4.0/langref/spark/components/RichEditableText.html#conten t
         Please go to this link. Here they have mentioned to use textFlow
    property.
         You can get content form textFlow use deepCopy() method.
    >
    http://help.adobe.com/en_US/Flex/4.0/langref/flashx/textLayout/elements/FlowElement.html#d eepCopy%28%29
         This will return FlowElement. Using FlowElement you can get text.
    toString method.
    >
         This should help you...
    Thanks,
    Vikram
    >

Maybe you are looking for