如何与空气3.2和HTMLLoader中的工作? [英] how to work with air 3.2 and HTMLLoader?

查看:140
本文介绍了如何与空气3.2和HTMLLoader中的工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用这个code,以查看我的网页....它与空气3.2桌面工作......如何使其与空气3.2工作为Android? ....它不会加载任何东西,只有白色屏幕!

 包{
进口flash.display.Sprite;
进口flash.html.HTMLLoader;
进口flash.net.URLRequest;

公共类HTMLLoaderExample扩展Sprite
{
    公共职能HTMLLoaderExample()
    {
        VAR的html:HTMLLoader对象=新的HTMLLoader();
        VAR urlReq:的URLRequest =新的URLRequest(http://www.doomanco.com/);
        html.width = stage.stageWidth;
        html.height = stage.stageHeight;
        html.load(urlReq);
        的addChild(HTML);
        html.x = 0;
        html.y = 0;
        }
    }
 }
 

解决方案

由于Adobe表示关于的HTMLLoader AIR配置文件支持:该功能支持所有的桌面操作系统,但不支持for TV设备上的移动设备或在空气中。你可以在运行时测试是否支持使用HTMLLoader.isSupported属性。请参阅有关在多个配置文件支持API的详细信息AIR配置文件支持。,我认为这不支持您的Andr​​oid设备,你ca的验证,使用 HTMLLoader.isSupported 属性。欲了解更多详情,您可以到这里看看:的Adobe .COM:HTMLLoader中这里: Adob​​e.com:设备配置文件空气

i use this code to view my web page .... it is work with air 3.2 for desktop ... how to make it work with air 3.2 for android ? .... it does not loading anything , only white screen !

package {
import flash.display.Sprite;
import flash.html.HTMLLoader;
import flash.net.URLRequest;

public class HTMLLoaderExample extends Sprite
{
    public function HTMLLoaderExample()
    {
        var html:HTMLLoader = new HTMLLoader();
        var urlReq:URLRequest = new URLRequest("http://www.doomanco.com/");
        html.width = stage.stageWidth;
        html.height = stage.stageHeight;
        html.load(urlReq); 
        addChild(html);
        html.x = 0;
        html.y = 0;
        }
    }
 }

解决方案

As Adobe said about HTMLLoader: " AIR profile support: This feature is supported on all desktop operating systems, but is not supported on mobile devices or on AIR for TV devices. You can test for support at run time using the HTMLLoader.isSupported property. See AIR Profile Support for more information regarding API support across multiple profiles. ", I think that's not supported for your android device, you ca verify that using HTMLLoader.isSupported property. For more details you can take a look here : Adobe.com : HTMLLoader and here : Adobe.com : Device profiles for AIR.

这篇关于如何与空气3.2和HTMLLoader中的工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆