And we don’t currently support transparent? I would copy the Window.as file, rename it, and add transparent support. Then it should work.
On 8/11/11 12:54 AM, "Isabelle Loyer Perso" <isa_lo...@yahoo.fr> wrote: Because I'm on AIR app and I use NativeWindow and options: transparent, ... Thanks Le 11/08/11 01:02, Alex Harui a écrit : Why can’t you use Window? On 8/10/11 3:59 PM, "Isabelle Loyer Perso" <isa_lo...@yahoo.fr> wrote: someone suggest to implement IFocusManagerContainer in FlexNativeWindow to fix the focus issues. i try to do that but no success! Le 10/08/11 22:08, Alex Harui a écrit : Re: [flexcoders] Flex 4.5 - Custom NativeWindow and problems I would use our Window classes. Otherwise you will have to replicate much of that is in them. On 8/10/11 8:22 AM, "Isabelle Loyer Perso" <isa_lo...@yahoo.fr> wrote: With spark Window all work well Thanks Le 10/08/11 17:13, Alex Harui a écrit : If you use our Window classes does it work better? On 8/10/11 6:25 AM, "isa_loyer" <isa_lo...@yahoo.fr> wrote: I have a class FlexNativeWindow who extends to NativeWindow. I use this method to create new window on my AIR app. All works well but some keyboard interraction is not availaible. For exemple focus arround textinput is not visible. Key down and up don't work on DropDownList. TabOrder doesn't work well! Can you explain Why? Because I'm very desapointed! Code to create the new window var wdetcorr:wDetailCorrespondant = new wDetailCorrespondant(); wdetcorr.monIdCorresp = correspDG.selectedItem.crIndex; var wOptions:NativeWindowInitOptions = new NativeWindowInitOptions(); wOptions.systemChrome = NativeWindowSystemChrome.NONE; wOptions.transparent = false; var fnwDetailPatient:FlexNativeWindow = new FlexNativeWindow(wdetcorr, wOptions); fnwDetailPatient.active(); Code about my custom NativeWindow package fr.int.ui.windowSkin { import flash.display.NativeWindow; import flash.display.NativeWindowInitOptions; import flash.events.Event; import flash.events.KeyboardEvent; import flash.ui.Keyboard; import mx.core.IUIComponent; import mx.core.IVisualElement; import mx.core.IVisualElementContainer; import mx.core.UIComponent; import mx.events.*; import mx.managers.WindowedSystemManager; [Event(name="creationComplete", type="mx.events.FlexEvent")] public class FlexNativeWindow extends NativeWindow implements IFlexNativeWindow { private var _systemManager:WindowedSystemManager; private var _content:UIComponent; private var _window:IVisualElementContainer; public function FlexNativeWindow(window:IVisualElementContainer, initOptions:NativeWindowInitOptions = null) { super(initOptions); _window = window; addEventListener(Event.ACTIVATE, windowActivateHandler); } public function addElement(control:IVisualElement):void { _window.addElement(control); } public function removeElement(control:IVisualElement):void { _window.removeElement(control); } private function windowActivateHandler(event:Event):void { event.preventDefault(); event.stopImmediatePropagation(); removeEventListener(Event.ACTIVATE, windowActivateHandler); if (stage) { if (!_systemManager) _systemManager = new WindowedSystemManager(IUIComponent(_window)); stage.addChild(_systemManager); dispatchEvent(new FlexEvent(FlexEvent.CREATION_COMPLETE)); stage.addEventListener(Event.RESIZE, windowResizeHandler); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownListener); } } private function keyDownListener (e:KeyboardEvent):void { if (e.keyCode == Keyboard.ESCAPE) { stage.nativeWindow.dispatchEvent(new Event("myEventClose", true)); stage.nativeWindow.close(); } } private function windowResizeHandler(event:Event):void { // prise en compte de la valeur mini UIComponent(_window).height = stage.stageHeight; UIComponent(_window).width = stage.stageWidth; } } } -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui