Spark Panel with Squiggly Component doesn't work


if create spark panel , insert textarea using squiggle recognizes word misspelled not display list of corrections on right click. if change spark panel mx panel works fine. there fix this?

 

<?xml version="1.0" encoding="utf-8"?>
<s:application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" minwidth="955" minheight="600">
    <fx:script>
        <![cdata[
            import com.adobe.linguistics.spelling.spellui;
        ]]>
    </fx:script>
    <fx:declarations>
        <!-- place non-visual elements (e.g., services, value objects) here -->
    </fx:declarations>
    <s:panel>
        <s:textarea id="ta_en" width="100%" height="100%"
          creationcomplete="spellui.enablespelling(ta_en, 'en_us');"/>
    </s:panel>
    <mx:panel x="400">
        <s:textarea id="ta_en1" width="100%" height="100%"
                    creationcomplete="spellui.enablespelling(ta_en1, 'en_us');"/>
    </mx:panel>   
</s:application>

this due known problem in spark panel. please see link documents issue , provides workaround issue: https://bugs.adobe.com/jira/browse/sdk-26182

 

instead of  <s:panel>, write <s:panel mouseenabled="true" skinclass="mypackage.customskin">

 

define customskin.as below:

 

package mypackage
{
    import spark.skins.spark.panelskin;
   
    public class customskin extends panelskin{
        public function customskin() {
            super();
            this.mouseenabled = true;
        }
    }

 

}



More discussions in Adobe Labs


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support