Skip to main content
Inspiring
June 11, 2010
Question

Can not input Japanese by FP10.1

  • June 11, 2010
  • 3 replies
  • 1934 views

Hi, I wrote code that create Editable Text by TLF API.

But,cannot input Japanese using FlashPlayer10.1.53.64.

And, same code can input Japanese using FP10.0.45.

(Spark Text components can input Japanese using FP10.1.53.64.)

OS: WinXP SP3

FlexSDK: 4.1.0.16076

     public class JpTLF extends Sprite      {           public function JpTLF()           {                var textMarkup:String = "<flow:TextFlow whiteSpaceCollapse='preserve'" +                     " xmlns:flow='http://ns.adobe.com/textLayout/2008'><flow:p><flow:span color='0xffcc33'" +                     " fontSize='20'>TLF</flow:span></flow:p></flow:TextFlow>";                               var testTF:TextFlow = TextConverter.importToFlow(textMarkup, TextConverter.TEXT_LAYOUT_FORMAT);                               testTF.locale = "ja";                               var controller:ContainerController = new ContainerController(this, 200, 200);                               testTF.flowComposer.addController(controller);                               testTF.interactionManager = new EditManager();                               testTF.flowComposer.updateAllControllers();           }      }

This topic has been closed for replies.

3 replies

Participant
July 14, 2010

Hi

I tried multiple XP machines with MS IME 2002, 2003,2007 ATOK2010 on 10.1SAP(Stand alone) , IE7, 8 and Firefox3.6., but unfortunately was unable to reproduce.  I can input Japanese by using multiple IME such as MSIME 2002,2003 and 2007.

Followings are my suggestion

1. Open TLF in one Tab and open s:textfiled in another tab in a browser.  IME should be enabled in s:text fileld, then switchin to TLF tab and insert caret.

2. Reinstall FP10.1 after uninstalling Flash Player by using  Uninstaller.exe with force option like this -> UninstallFlashPlayer.exe –force

3. Delete browser cache.

marumanaAuthor
Inspiring
July 15, 2010

Hi all,

>>Hideyax

thank you for test & suggestion.

but, the situation is not improved.

and, the way around the problem was found as follows.

>>robin

>>One very basic question -- I assume that the Flash component has focus

>>at the time when you are trying to change the IME method?

I check to "IME.enabled" when textbox has focus by the following codes.

//result--

(1) TLF_textbox : "IME.enabled" is "false" when  focus In.

(2) TextArea      : "IME.enabled" is "true" when  focus In.

<?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" creationComplete="init()">           <fx:Declarations>      </fx:Declarations>           <fx:Script>           <![CDATA[

                              private function init():void                {

                                //The sample class of first contribution.                     var jpTLF:Sprite = new JpTLF();                     jpTLF.width = jpTLF.height = 200;

                                jpTLF.addEventListener(FocusEvent.FOCUS_IN,tlf_focusInHandler);

                    canvas.rawChildren.addChild(jpTLF);                }

               private function tlf_focusInHandler(event:FocusEvent):void

               {                     if(Capabilities.hasIME)

                              {                          trace("tlf//"+IME.enabled); //false                      }                }

               private function textarea_focusInHandler(event:FocusEvent):void                {                     if(Capabilities.hasIME)                     {                          trace("textArea//"+IME.enabled); //true                     }                }

                              ]]>      </fx:Script>           <s:layout>           <s:BasicLayout/>      </s:layout>           <mx:Canvas id="canvas" width="200" height="200" borderStyle="solid"/>

        <s:TextArea width="200" height="200" focusIn="textarea_focusInHandler(event)"/>      </s:Application>

So, I changed to the following codes.

and, I can change IME input mode to "Hiragana".

     private function tlf_focusInHandler(event:FocusEvent):void

     {           if(Capabilities.hasIME)

          {                IME.enabled = true;           }      }

Participant
July 15, 2010
No text available
Participant
July 13, 2010

We have same case.(Korean)

After installing the latest version of this phenomenon occurs

Our current project is using TLF 
So I am very concerned about this problem

Quick response is needed

Adobe Employee
July 14, 2010

Sorry for the delay. Several people have tried to reproduce the problem you're seeing, but so far without success. Any further information you have would be helpful.

One very basic question -- I assume that the Flash component has focus at the time when you are trying to change the IME method?

Thanks!

- robin

Participant
July 14, 2010
No text available
Adobe Employee
June 17, 2010

I'm using 10.1.53.64 on Windows, the standalone version, and its working OK. I ran your application and was able to type Japanese text with no problems. What browser are you using? Are you selecting Japanese as your lannguage in Windows? Which input mode are you using?

Thanks,

- robin

marumanaAuthor
Inspiring
June 17, 2010

Hi, robin. Thank you reply.

I tested my sample code & Spark.TextArea using FP 10.1 standalone version(http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa.exe)

>> What browser are you using?

   Using browser is Firefox3.6.3 when debugging FlashBuilder4 .

  (same problem occurs using IE7 & Chrome5)

>>Are you selecting Japanese as your lannguage in Windows?

   Yes.

>>Which input mode are you using?

   As shown in figure above, I can't change input mode from 'Half-width Alphanumeric'.

   Input method is 'Micorsoft IME Standard 2003'.

* Flashplayer10.45.2(ver win_standalone) can change input mode to 'Hiragana' on TLF API TextBox.

Thanks

Adobe Employee
June 21, 2010

I get the same view as you do with 10.1, but I am able to click on the "A" icon and switch the input mode to Hiragana. Did you try this? Did it not work? Did the menu not come up, or did it not have Hiragana as an option? If it didn't have Hiragana as an option, what was on the menu when it came up?

Thanks,

- robin