Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > AIR (Apollo)

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-25-2009, 06:46 PM   #1
/Dr34dF4th3r
Registered User
 
Join Date: Jul 2009
Posts: 3
Angry Adobe Air Issue

I've installed Air in CS3 & got the latest updates. I've set the run-time settings to use Air as the player as well. I'm trying to load an HTML page via the HTMLLoader(); class, yet I keep getting errors that the class doesn't exist, I'm not sure what to do or how to fix this. Below is my source.

Code:
function testAir():void {
var testAirLdr:HTMLLoader = new HTMLLoader();
testAirLdr.load(new URLRequest("http://example.com/example.html"));
testAirLdr.addChildAt(1);
}
My errors:
Code:
1046: Type was not found or was not a compile-time constant: HTMLLoader.
1180: Call to a possibly undefined method HTMLLoader.
/Dr34dF4th3r is offline   Reply With Quote
Old 11-02-2009, 02:04 AM   #2
elytexeira
Registered User
 
Join Date: Jul 2009
Posts: 47
Default

import the flash class

ActionScript Code:
import flash.html.HTMLLoader;




currently working at Probooks - Libros
elytexeira is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:56 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.