Avatar of anakinjay
anakinjay

asked on 

HTML Air Component in Flex Builder doesn't allow popups

I have a fairly complex web-based flex application that runs on our intranet.

I'm trying to simply create a shell in air that loads the flex application, so I can use the air application as a citrix application to expose it to a few people outside of our intranet.  We want them to be able to use it, but not have access to a full fledged web browser.

The problem is, my flex application uses external interface calls to create popup windows, and these are not working in the air shell.

I've tried using an IE shell with VB, but the server runs 64-bit windows, and 64-bit IE.  And there's no flash for 64 bit browsers yet.

Any help would be greatly appreciated.   Thanks!
Apache FlexJavaScript

Avatar of undefined
Last Comment
anakinjay
ASKER CERTIFIED SOLUTION
Avatar of Gary Benade
Gary Benade
Flag of South Africa image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Gary Benade
Gary Benade
Flag of South Africa image

You could always just open the page directly in AIR..
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication 
	xmlns:mx="http://www.adobe.com/2006/mxml" 
	layout="absolute">
	<mx:Script>
		<![CDATA[
 
	    	import flash.display.Sprite;
		    import flash.html.HTMLLoader;
		    import flash.net.URLRequest;
 
	        public function HTMLLoaderExample():void
	        {
	            var html:HTMLLoader = new HTMLLoader();
	            var urlReq:URLRequest = new URLRequest("http://www.adobe.com/");
	            html.width = stage.stageWidth;
	            html.height = stage.stageHeight;
	            html.load(urlReq);
	            var s:Sprite = new Sprite();
	            s.addChild(html);
	            browser.rawChildren.addChild(s);
	        }
		]]>
	</mx:Script>	
	<mx:Button x="73" y="29" label="Button" click="HTMLLoaderExample()"/>
	<mx:Canvas id="browser" x="189" y="29" width="553" height="353">
	</mx:Canvas>
 
</mx:WindowedApplication>

Open in new window

Avatar of anakinjay
anakinjay

ASKER

this worked.. thanks.
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo