I am trying to add a close button to the webview but it always hides behind the Webview.
var browser: WebView = new WebView();
browser.width = MainScreen.screenWidth/1.4;
browser.height = MainScreen.screenHeight/1.4;
browser.validate();
browser.alignPivot();
this.addChild(browser);
browser.loadURL("http://feathersui.com/");
var clsbtn = new Button(Assets.ta.getTexture("close"));
clsbtn.addEventListener(Event.TRIGGERED, onTrigClose);
clsbtn.alignPivot();
browser.addChild(clsbtn);
clsbtn.x = browser.width;
Is there a fix to this or should I add the close button on top of the browser?