HTMLLoader not showing html page
Hi! I've run into some problems using HTMLLoader on Mac OS X so I've created a simple Actionscript Project to test the basic functionality of this class. The code is as follows:
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.html.HTMLLoader;
import flash.net.URLRequest;
public class Testhtml extends Sprite
{
public function Testhtml()
{
var _webView:HTMLLoader = new HTMLLoader();
addChild(_webView);
var urlrqst:URLRequest = new URLRequest("test.html");
_webView.addEventListener(Event.COMPLETE,onLoad);
_webView.load(urlrqst);
}
protected function onLoad(event:Event):void
{
trace(event.target.location);
}
}
}
test.html is just a simple
<!DOCTYPE HTML>
<html>
<body>
hello
</body>
</html>
When I Debug the project nothing is shown. I can't see the "hello". Can anyone reproduce this issue? (I'm on Mavericks with AIR 3.9)
