| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jul 2009
Posts: 3
|
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);
}
Code:
1046: Type was not found or was not a compile-time constant: HTMLLoader. 1180: Call to a possibly undefined method HTMLLoader. |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Jul 2009
Posts: 47
|
import the flash class
ActionScript Code:
currently working at Probooks - Libros |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|