I'm getting the following error when using fl.controls.* that have been published from Flash CS5 and dynamically bound to my Flex project at run-time:
Error: Error #2063: Error attempting to execute IME command.
at flash.system::IME$/set enabled()
at mx.managers::FocusManager/focusInHandler()[E:\dev\hero_private\framew orks\projects\framework\src\mx\managers\FocusManager.as:643]
at flash.display::Stage/set focus()
at fl.core::UIComponent/setFocus()
at fl.managers::FocusManager/setFocus()
at fl.managers::FocusManager/mouseDownHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mouseEventHandler()[E:\dev\hero_private\fr ameworks\projects\framework\src\mx\managers\SystemManager.as:2924]
Ok, after some tracing into the Hero version of FocusManager.as, the offending lines in :
private function focusInHandler(event:FocusEvent):void
..
..
if (IMEEnabled)
IME.enabled = usesIME;
..
So I read up on this, and thought this can't be a MX problem, so I just added the following to the beginning of my app, and it breaks:
// prints "true"
trace("IME.enabled=" + flash.system.IME.enabled);
// causes: Error: Error #2063: Error attempting to execute IME command.
// at flash.system::IME$/set enabled()
flash.system.IME.enabled=false; // or true for that matter
So it seems it can be read, but not written to. I'll keep hunting around to see how to fix this.
Shane
Ok, last update because there isn't a way for me to fix this.
It's definitely the new Flash 11.0.1.3d run-time that doesn't like IME.enabled being called. If I uninstall and revert to the debug 10.3 release, IME.enabled=true/false works with an exception. Re-install 11, and boom, crashes straight away.
So, Flex 4.5 + ActionScript Project (Sprite) + Flash 11.0.1.3d playerglobal = works. If you use MX, it'll crash.
The only way to move forward for me is to not use MX Controls at all for now, and just derive Sprite for my own testbed.
Cheers,
Shane
I have the exact same Problem with my Molehill + Flex project on Mac using Incubator 11.0.1.3d.
I've just updated from the 4.5.0.19786 to 4.5.0.20967 and patched the playerglobal.swc with version flashplayer_inc_playerglobal_051211.swc
In 19786 everything worked fine, in 20967 I also get this error when using a class from the "mx" package:
Exception fault: Error: Error #2063: Error attempting to execute IME command.
at flash.system::IME$/set enabled()
at mx.managers::FocusManager/focusInHandler()
Have to move back to 19786 until a workaround/fix is available.
Any news on that?
This simple test class demonstrates the Error
Flex SDK 4.5.0.20967 + flashplayer_inc_playerglobal_051211.swc + Flash Player Incubator 11.0.1.3.d + Mac OS Snow Leopard
<?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"
applicationComplete="handleAppComplete()">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
private function handleAppComplete():void {
Alert.show("hello");
}
]]>
</fx:Script>
</s:Application>
North America
Europe, Middle East and Africa
Asia Pacific