StageText not firing SoftKeyboardEvents
i've filed bug (3610876) i'm looking workaround haven't found any.
basically stagetext seems not listen softkeyboardevent.activate , softkeyboardevent.deactivate. is, however, listening softkeyboardevent.activating.
here's sample code reproduces problem.
package { import flash.display.sprite; import flash.events.softkeyboardevent; import flash.geom.rectangle; import flash.text.stagetext; [swf(width='1024',height='768',backgroundcolor='#ffffff',framerate='25')] public class simplestagetext extends sprite { private var mytext:stagetext; public function simplestagetext() { super(); mytext = new stagetext(); start(); } protected function start():void { mytext.stage = this.stage; mytext.viewport = new rectangle(5,300,100,20); mytext.addeventlistener(softkeyboardevent.soft_keyboard_activating,onkeyboardactivating); mytext.addeventlistener(softkeyboardevent.soft_keyboard_activate,onkeyboardactivate); mytext.addeventlistener(softkeyboardevent.soft_keyboard_deactivate, onkeyboarddeactivate); } protected function onkeyboardactivating(event:softkeyboardevent):void { trace("softkeyboardactivating"); } protected function onkeyboardactivate(event:softkeyboardevent):void { trace("softkeyboardactivated"); } protected function onkeyboarddeactivate(event:softkeyboardevent):void { trace("softkeyboarddeactivated"); } } }
any ideas how handlers function properly?
also additional issue when softkeyboard comes screen not panning though i've set "softkeyboardbehavior" pan in -app.xml file.
could please share air sdk version , device os version using? tried latest build available @ http://www.adobe.com/devnet/air/air-sdk-download.html sample code provided above , it's working fine.
regards,
nimit
More discussions in AIR Bugs and Performance Issues
adobe
Comments
Post a Comment