AIR HTML component problem
I am using the AIR HTML component to load various website
directories with. However, any directory that gets loaded into the
HTML control that uses CAPTCHA, only loads maybe 2 pixels high
worth of the image. Is this a bug with the HTML control itself, or
have I failed to instantiate something? To see what I mean, try
loading this URL into AIR's HTML component.
http://www.mygreencorner.com/submit.php
I might add that this is flex 3 Retail version, not the beta.
Seems to work in the flex 3 milestone 4 beta.
Similar Messages
-
Adobe AIR HTML component ignores Google Maps GPolyline opacity
I have a Google Maps mashup web site that I want to display
in an
Adobe AIR app using the AIR HTML component. My mashup shows a
Google map with some semi-
transparent polylines (drawn as circles) drawn with the
Google Maps API . In Safari, everything looks
as it should. In AIR, the polylines are opaque; the GPolyline
opacity
value is ignored. I've tried the AIR app on Linux and Windows
XP.
Has anyone else encountered this issue or have some
suggestions?
The web site:
http://dstresearch.com/map.html
The AIR code:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" height="800" width="800">
<mx:HTML id="html"
width="100%"
height="100%"
location="
http://dstresearch.com/map.html"
/>
</mx:WindowedApplication>
Thanks,
JoshYou might also want to check out the useCache property to see if this helps. See these links:
http://forums.adobe.com/thread/726573
http://forums.adobe.com/thread/490497
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/html/HTMLLoader.h tml -
Webkit and safari supporting mathml -- when AIR HTML component supports MATHML
latest version of Safari that uses webkit supports MATHML.
When can the AIR HTML component supports MATHML support for viewing the expressions.penugonda wrote:
latest version of Safari that uses webkit supports MATHML.
Hmm. Don't know I'd go so far as to say that. Here's a more complete picture: "Webkit has an experimental MathML implementation which is enabled in Safari but the support is still limited and the rendering quality not very high. This implementation has not passed Google's security review and so is not integrated yet in Chrome."
MathML support is far from complete in Safari and other Webkit browsers. -
AIR HTML Component - URL problem
Hi,
We face the below mentioned problem. Attached herewith are code sample and simulation for the problem. Would be great if someone could help us.
Due to problems with uploading the attachment here, please send a email to the following email-id ([email protected]) and I shall send the attachment in response.
HTML Component provided in AIR is used to access different URLs one after another. When we switch from one URL to another, the previous link gets loaded prior to opening new link. Is there a way to trap events which is happening during loading of URLs.
* Steps to Reproduce:
1. Install HTML_Component_TrapEvent.air and execute the code.
2. Initially Home page is displayed.
3. Click on anyone of the three buttons labeled: Yahoo, Google, Rediff.
4. Respective website homepage is displayed. Wait till entire page is loaded. For example, assume Yahoo button is clicked, Yahoo website will be loaded.
5. Click on Button labeled "Home". Home Page gets Loaded.
6. Then click on Button labeled "Google". The HTML component with Previous web page (in this case Yahoo web page) is displayed until Google web page is loaded.
* Expected Result:
The HTML component last loaded should not be visible when the current component is loading. In other words, Yahoo website should not be visible when Google site is loaded.
* Actual Result:
The HTML component last loaded is displayed until the current component is loaded. Which means, Yahoo website is displayed until Google is loaded.
* Any Workaround: NONE
Thanks in advance.I might add that this is flex 3 Retail version, not the beta.
Seems to work in the flex 3 milestone 4 beta. -
Disabling flash display in Air HTML Component
Hi,
in my AIR application, I use an HTML Component in its own
sort of frame or container that has a viewing size that is smaller
than the web page itself. Next to it is a panel with many controls
in it. When a website with flash components (e.g. flash banners) is
displayed, the flash components in the HTML Component overlap the
control panel even though it's underneath in another container. Is
there a way to disable showing Flash in an HTML Component or
another way to make sure everything in an HTML Component stays on
its own layer?
Thanks for any help!Hi,
I don't think the problem is because the URL is pointing to a
JSP. I think the problem might be with the JavaScript which is
trying to do operations which are not allowed. Please find more
details at the URL below.
http://livedocs.adobe.com/flex/3/html/dg_part_7_1.html
Hope this helps. -
How can you get selection info from air html component?
In Air, I want to be able to have an html component that
displays an htmltext string. When a button in pressed in the air
app, I want to add highlight tags to the htmltext string around the
text that has been selected by the user in the html component.
The problem is, I have no idea how to get info about what
text is selected in the html component. The way to get such info
for other text display components is shown in
http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_05.html#446003
but that doesn't seem to work with html components.
Can anyone point me to anything that shows how to get info
from the htmlcomponent regarding the selected text?iCloud: Restore your iOS device from iCloud
Note the iCloud backup does not included none iTunes purchases like music from CDs. Also, it does not include any photos synced to the iPod -
Contents of HTML title Tag not rendering in my AIR HTML component
I have an Air Application that uses a HTML Component. The HTML page that the component is rendering includes images with title tags. The tags render fine outside the Air Application, but when run in the AIR application, they do not render. Any help when this issue would be greatly appreciated.
what html component?
-
Contents of HTML title Tag not rendering in AIR HTML component
I have an Air Application that uses a HTML Component. The HTML page that the component is rendering includes images with title tags. The tags render fine outside the Air Application, but when run in the AIR application, they do not render. Any help when this issue would be greatly appreciated.
what html component?
-
Cache-Control and Accept-Encoding support in Adobe AIR HTML Component
I am evaluating Adobe AIR's HTML component and trying to figure out what is supported.
I built the AIR app and had it point to www.google.com
I notice that the requests to fetch JS,CSS from Adobe AIR do not include Accept-Encoding: gzip header.
Does Adobe AIR's HTML Component support Accept-Encoding : gzip header ?
I also noticed that even though the content served with far futures expiry, i.e. has Cache-Control: maxage={value} subsequent requests are being made and content is not served from the browser's cache.
I observed this accross the app restarts.
Can someone please clarify support of the two above Http headers ?
Thank you.
-PrashantYou might also want to check out the useCache property to see if this helps. See these links:
http://forums.adobe.com/thread/726573
http://forums.adobe.com/thread/490497
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/html/HTMLLoader.h tml -
Is there a way to download inside AIR HTML?
Hi,
Is there any way to download files from the webpage running inside AIR HTML component? i.e. mail attachment etc.?
Thanks!I'm already overriding loaded HTML page's links etc. but yes its true to determine which link is for download or to open just a web page.
StageWebView!! I was in impression for a long time, this made for mobile! After you saying so, at help.adobe.com I can see this also for all desktop operating systems too! Great!
Though our existing ol' HTML component is already coded/modified heavily through the application, I don't know how far we can replace them with new StageWebView.. but you simply given me an option. Thanks!
I'll see a simple demo how enable it is downloading files in an AIR application, shortly. -
Viewing flash based website in HTML component of AIR APP
Hello, I've got an air app where I'm trying to use the Html component to load up a flash website. Problem is that the website starts to load (I can see the preloader) and then the html component just goes blank. I wrote the html page I'm trying to load so I went in and did some trimming of javascript stuff that I didn't really need that I thought might be causing the issue, but, no dice. I'm also catch uncaughtScript errors from HTML, and there are none. Anybody have any ideas? The flash on the page that I'm loading only required flash player 8, so I'm thinking that shouldn't be an issue. The page I'm trying to load is www.socialsaga.com/air_index.php
Here is my little mxml file that won't properly display the site.
<mx:Panel title="Video Storage" xmlns:mx="http://www.adobe.com/2006/mxml" enabled="true" visible="true" width="100%" height="650"> <mx:Script> <![CDATA[ public function showDOM(ev:Event = null):void { var indEv:Event = ev; } public function uncaughtException(ev:Event = null):void { var whatException:Event = ev; } ]]> </mx:Script> <mx:HTML uncaughtScriptException="uncaughtException()" htmlDOMInitialize="showDOM()" width="100%" height="100%" location="http://www.socialsaga.com/air_index.php" id="htmlOne"/> </mx:Panel>That was a waste of a couple hours.... The reason it was not redering is because I had a glow filter effect on a parent
displayobject in the app... Really weird, cause html stuff would load, but flash would not show up. -
HTML component, port number problem
I have an HTML component embedded inside an AIR app. When the
user makes this component visible, the HTML component simply loads
the contents of a URL. During development, I want to load content
from a locally running Web server on port 8080. However, this does
not seem to work. E.g., when I set
htmlComponent.location = "
http://localhost";
This works as expected. However,
htmlComponent.location = "
http://localhost:8080";
does nothing. I verified on the server that the HTML
component doesn't even attempt to connect to the server.
I also verified that this URL is valid and works (using my
local Web browser) as well as via curl. Further, I also tested the
connection via the URLMonitor class from within the AIR app: The
URL is available, according to the URLMonitor.
Any suggestions as to why the content can't be loaded from
the local port 8080 would be appreciated. This is pretty much a
show-stopper for me now, because I can't run the local server on
port 80 during development. FYI, I'm on OS X. Also, in previous
versions of AIR (about a year ago), I didn't have this problem.
Thanks,
-- Frank SommersI have an HTML component embedded inside an AIR app. When the
user makes this component visible, the HTML component simply loads
the contents of a URL. During development, I want to load content
from a locally running Web server on port 8080. However, this does
not seem to work. E.g., when I set
htmlComponent.location = "
http://localhost";
This works as expected. However,
htmlComponent.location = "
http://localhost:8080";
does nothing. I verified on the server that the HTML
component doesn't even attempt to connect to the server.
I also verified that this URL is valid and works (using my
local Web browser) as well as via curl. Further, I also tested the
connection via the URLMonitor class from within the AIR app: The
URL is available, according to the URLMonitor.
Any suggestions as to why the content can't be loaded from
the local port 8080 would be appreciated. This is pretty much a
show-stopper for me now, because I can't run the local server on
port 80 during development. FYI, I'm on OS X. Also, in previous
versions of AIR (about a year ago), I didn't have this problem.
Thanks,
-- Frank Sommers -
HTML component blinking cursor and combobox problems
Hi there.
I have a problem using a website displayed with the HTML component in a spark window. In any textfield in this homepage there is no blinking cursor displayed which is not really a problem but is still pretty confusing to the users. Another issue comes up with the comboboxes where the possible choices cannot be clicked with the mouse. Choosing an entry with the keyboard is possible though.
To reproduce this issue, add a html component in a spark window and load for example http://www.ard.de. The cursor is blinking in the search textfield in the top left. After clicking on the combobox on the left side - where i can't choose an entry with the mouse - the cursor in the textfield is no longer displayed.
Is this a known issue?
Best regardsHi,
I've looked at your example and found the following 2 issues:
1. The cursor not appearing was actually a focus issue and you can fix it by adding an event listener on "windowActivate" in which to re-set the focus to the _htmlWindow. See the code below for more details on "onActivate()"
2. The issue with the dropdown is actually a bug (internal bug id #2721855) and it has been fixed in the next version of AIR which will be released towards the end of this year.
<?xml version="1.0" encoding="utf-8"?>
<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
windowDeactivate="onDeactivate()"
windowActivate="onActivate()"
alwaysInFront="true"
showStatusBar="false"
title="WebKit Browser"
creationComplete="onCreationComplete()">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import flash.profiler.showRedrawRegions;
import mx.controls.Alert;
import mx.managers.CursorManager;
import mx.managers.HistoryManager;
[Bindable]
private var _location:String;
private function onCreationComplete():void {
nativeWindow.x = Capabilities.screenResolutionX * 0.1;
nativeWindow.y = Capabilities.screenResolutionY * 0.1;
nativeWindow.width = Capabilities.screenResolutionX * 0.8;
nativeWindow.height = Capabilities.screenResolutionY * 0.8;
// call this function on "windowActivate" in order to re-set the focus on your html element
private function onActivate():void {
_htmlWindow.setFocus();
private function onDeactivate():void {
try {
if (nativeWindow)
nativeWindow.activate();
} catch (e:Error) { // nativeWindow Object not yet available
public function set location(value:String):void {
_location = value;
showStatusBar = false;
status = "Lade " + value + "...";
CursorManager.setBusyCursor();
public function get location():String {
return _location;
private function onHTMLComplete():void {
CursorManager.removeBusyCursor();
showStatusBar = false;
private function uncaughtScriptExecution(e:HTMLUncaughtScriptExceptionEvent):void {
CursorManager.removeBusyCursor();
Alert.show("Scriptfehler: " + e.exceptionValue, "Error", Alert.OK);
]]>
</fx:Script>
<mx:HTML id="_htmlWindow"
width="100%"
height="100%"
runtimeApplicationDomain="{ApplicationDomain.currentDomain}"
complete="onHTMLComplete()"
location="{_location}"
uncaughtScriptException="uncaughtScriptExecution(event)">
</mx:HTML>
</s:Window>
Regards,
Catalin -
AIR App. HTML component ...
Hi there,
I'm using a HTML component in AIR with 'paintDefaultBackground="false" and backgroundAlpha="0.0" to let shine through a Logo. Unfortunatly a couple of the web site on display show themself sometimes with NO background - So just the witing of this site with NO formating !
I can get it right if I go up in the background Alpha ! but that is not the idea I would like to use it.
Any ideas ??? regards aktell2007That was a waste of a couple hours.... The reason it was not redering is because I had a glow filter effect on a parent
displayobject in the app... Really weird, cause html stuff would load, but flash would not show up. -
Facebook API Login with the login window loaded in html component
I am making an air app which utilises net based content such as bringing viewing their facebook photos within the app itself but I DON'T want my users to be able to browse to the internet or more specifically open up internet explorer. Problem is the facebook api requires the user to go to a facebook login page when the login for the facebook session is fired. Is there any way I can ghet this to open up in a html component rather than internet explorer? The facebooksession.login() seems to open up this window by default and doing the validatelogin without this seems to throw a null object reference error.
Can anybody help please? Here's my code:-
public function facebookLoginButtonClick():void{
facebookSession = new FacebookSessionUtil("blah","blah",stage.loaderInfo);
facebookSession.addEventListener(FacebookEvent.WAITING_FOR_LOGIN, facebookHandle_waitingForLogin);
facebookSession.addEventListener(FacebookEvent.CONNECT, facebookHandle_connect);
facebookSession.login();
private function facebookHandle_waitingForLogin(event:FacebookEvent):void{
var facebookAlert:Alert = Alert.show("Click OK After You've logged in to Facebook", "Logging In");
facebookAlert.addEventListener(Event.CLOSE, facebookHandle_close);
private function facebookHandle_close(event:Event):void{
facebookSession.validateLogin();
private function facebookHandle_connect(event:FacebookEvent):void{
var facebookCall:FacebookCall = facebookSession.facebook.post(new GetInfo([facebookSession.facebook.uid],['name', 'pic_square']));
facebookCall.addEventListener(FacebookEvent.COMPLETE, facebookHandle_getInfoComplete);
private function facebookHandle_getInfoComplete(event:FacebookEvent):void{
var facebookGetInfoData:GetInfoData = GetInfoData(event.data);
var facebookUser:FacebookUser = FacebookUser(facebookGetInfoData.userCollection.getItemAt(0));
facebookUserAvatar.source = facebookUser.pic_square;
facebookUsername.text = facebookUser.name;Try this:
public function FacebookInterOp(loaderInfo) {
session = new FacebookSessionUtil(API_KEY, SECRET, loaderInfo);
session.addEventListener(FacebookEvent.CONNECT, onConnect);
fbook = session.facebook;
if (loaderInfo.parameters.fb_sig_session_key) {
session.verifySession();
else {
session.login();
You'll still get the pop up when you load the program in the debugger, but when loading from Facebook it should be seamless. I hope that helps.
Maybe you are looking for
-
Articulating Arm for 30" Cinema Display
Has anyone had any luck finding a good articulating arm (desk mount or wall mount) that can handle the weight and that is VESA compliant. The base that comes with the display just eats away too much of my surface area. I bought the VESA Mount Adapter
-
Hi, I have one table cust it have one filed date(column),i have write the below querry it is giving values for differnt months.Based on the below querry result i want data for tha particular year. select a.date,a.val/b.values as Result from (select (
-
HT4341 which adapter is used in Israel?
which adapter is used in Israel? when reffering to world adapter kit?
-
When I downloaded the new Mavericks system, all of the many RSS feeds I had in my mail app deleted. How do I get these back?
-
My memory card claims to be full, which it should not be. When I go and look at the contents of the card it does not show enough data for the card to be full. There are a bunch of mp3 files that are showing up in my music library, but are no longer l