• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Basic Htmlloader example failing

Community Beginner ,
Mar 25, 2020 Mar 25, 2020

Copy link to clipboard

Copied

I am trying to run a simple Htmlloader example and its failing.

HelloWorld.as

package { 
    import flash.display.Sprite;
    import flash.html.HTMLLoader;
    import flash.net.URLRequest;
     
    public class HelloWorld extends Sprite 
    { 
        public function HelloWorld() 
        {
            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); 
            addChild(html);
        } 
    } 
}

HelloWorld-app.xml

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/3.1">
    <id>HelloWorld</id> 
    <versionNumber>0.1</versionNumber> 
    <filename>HelloWorld</filename> 
    <initialWindow> 
        <content>HelloWorld.swf</content> 
        <visible>true</visible> 
        <width>1000</width> 
        <height>1000</height> 
    </initialWindow> 
</application>

Commands

sap-air/flex_sdk/bin/amxmlc HelloWorld.as

Result

Loading configuration file flex_sdk/frameworks/air-config.xml
HelloWorld.swf (700 bytes)

flex_sdk/bin/adl HelloWorld-app.xml

Exception

Warning: Re-registering an existing pixelformat.
DVFreeThread - CFMachPortCreateWithPort hack = 0x26dd60, fPowerNotifyPort= 0x26de70
SyntaxError: Parse error
https://www.adobe.com/etc.titan.dexterlibs/dexter/clientlibs/base/headIE.fp-73f2254c69b1aae01ff8ced75b75ac3a.js : 6
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Common/ChunkCompression.cpp:49: Error: unsupported compressor 8
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist'
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Common/ChunkCompression.cpp:49: Error: unsupported compressor 8
/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/AppExceptions.bundle/Exceptions.plist'
TypeError: Result of expression 'c.console' [undefined] is not an object.
 at https://www.adobe.com/marketingtech/main.no-promise.min.js : 1
SyntaxError: Parse error
https://www.adobe.com/etc.titan.dexterlibs/homepage/clientlibs/head.combined.fp-b7e0f48c47ce9d847e7a5b09f5c1cf97.js : 12
SyntaxError: Parse error
https://www.adobe.com/etc.clientlibs/globalnav/clientlibs/base/feds.js : 3
Error: SECURITY_ERR: DOM Exception 18
 at https://www.adobe.com/akam/11/7ac373c8 : 2
SyntaxError: Parse error
https://www.adobe.com/etc.titan.dexterlibs/homepage/clientlibs/publish.combined.fp-1bce073f045ce100020d18eca9aa5af0.js : 1
Error: SECURITY_ERR: DOM Exception 18
 at https://static.adobelogin.com/imslib/imslib.min.js : 2
 at https://static.adobelogin.com/imslib/imslib.min.js : 2
f at https://static.adobelogin.com/imslib/imslib.min.js : 2
 at https://static.adobelogin.com/imslib/imslib.min.js : 2
 at https://static.adobelogin.com/imslib/imslib.min.js : 2
 at https://static.adobelogin.com/imslib/imslib.min.js : 2
 at https://static.adobelogin.com/imslib/imslib.min.js : 2
 at https://static.adobelogin.com/imslib/imslib.min.js : 2
 at https://static.adobelogin.com/imslib/imslib.min.js : 2
z at https://static.adobelogin.com/imslib/imslib.min.js : 2
 at https://static.adobelogin.com/imslib/imslib.min.js : 2
 at https://static.adobelogin.com/imslib/imslib.min.js : 2
 at https://static.adobelogin.com/imslib/imslib.min.js : 2
undefined at undefined : undefined
Error: SECURITY_ERR: DOM Exception 18
 at https://s2.go-mpulse.net/boomerang/KD8VK-3YQ4N-NLLRX-T69VN-WTAZK : 17
f at https://s2.go-mpulse.net/boomerang/KD8VK-3YQ4N-NLLRX-T69VN-WTAZK : 17
 at https://s2.go-mpulse.net/boomerang/KD8VK-3YQ4N-NLLRX-T69VN-WTAZK : 11

Views

374

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 28, 2020 Mar 28, 2020

Copy link to clipboard

Copied

LATEST

test with something else than

http://www.adobe.com/

the Safari WekKit used in HTMLLoader is a bit old and does not support the latest JS, CSS, Web API, etc.

also you use

http://ns.adobe.com/air/application/3.1

 AIR 3.1 is outdated, you should use AIR 32.0

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines