AS3 docs HTMLLoader example not working, what's wrong?
Hi,
I grabbed this code from the example here:
HTMLLoader - Adobe ActionScript® 3 (AS3 ) API Reference
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.adobe.com/");
html.width = stage.stageWidth;
html.height = stage.stageHeight;
html.load(urlReq);
addChild(html);
}
}
}
When I run this I getting a bunch of errors in the Output log and a plain grey screen. No adobe.com website shows up.:
[SWF] desktop.swf - 1005 bytes after decompression
TypeError: Result of expression 't.clearTimeout.bind' [undefined] is not a function.
SyntaxError: Parse error
SyntaxError: Parse error
https://wwwimages.adobe.com/etc/beagle/public/globalnav/adobe-config/index.js : 4
ReferenceError: Can't find variable: $
ReferenceError: Can't find variable: $
at http://wwwimages.adobe.com/etc/clientlibs/beagle/adobe.min.fp-0453504ee9d53f07d16d01bb171ef41f.js : 1
ReferenceError: Can't find variable: $
at http://www.adobe.com/ : 140
TypeError: Result of expression 'x.on.bind' [undefined] is not a function.
at https://connect.facebook.net/en_US/fbevents.js : 24
at https://connect.facebook.net/en_US/fbevents.js : 24
at https://connect.facebook.net/en_US/fbevents.js : 24
at https://connect.facebook.net/en_US/fbevents.js : 23
at https://connect.facebook.net/en_US/fbevents.js : 24
at https://connect.facebook.net/en_US/fbevents.js : 24
at https://connect.facebook.net/en_US/fbevents.js : 24
at https://connect.facebook.net/en_US/fbevents.js : 23
at https://connect.facebook.net/en_US/fbevents.js : 24
at https://connect.facebook.net/en_US/fbevents.js : 24
SyntaxError: Parse error
https://scripts.demandbase.com/qQQxkRp0.min.js : 1
TypeError: Result of expression 't.clearTimeout.bind' [undefined] is not a function.
SyntaxError: Parse error
SyntaxError: Parse error
https://wwwimages.adobe.com/etc/beagle/public/globalnav/adobe-config/index.js : 4
ReferenceError: Can't find variable: $
ReferenceError: Can't find variable: $
at http://wwwimages.adobe.com/etc/clientlibs/beagle/adobe.min.fp-0453504ee9d53f07d16d01bb171ef41f.js : 1
ReferenceError: Can't find variable: $
at http://www.adobe.com/ca/ : 140
SyntaxError: Parse error
