This content has been marked as final. Show 5 replies
To add an HTMLLoader to your window, you must do something like:
var html:HTMLLoader = new HTMLLoader();
THe HTMLLoader object is a display object (not a window) and can be treated like any other Flash display object in most respects. (Scaling isn't recommended and will prevent embedded SWF and PDF content from being displayed by the HTMLLoader.)
Thanks for the quick reply Joe.
My problem is unusual I feel, unless I don't have the concept right. It seems that I can place the HTMLLoader content to the stage but everything else created with actionscript does not appear. I can either have my flash navigation appear or the HTMLLoader content but not both. As a matter of fact just casting a variable as HTMLoader gives me a blank screen, with out even adding any thing to the DisplayObject.
I can't figure it out so I may have to come up with a multiple window scenario and figure out how to get them to talk to one another. Not ideal... but it may work.
This really sounds like a configuration problem with your development tool, your AIR project, or how you are testing your application.
That is something I haven't explored. I just installed the air update for flash cs3, but I also have flex builder3. Do I need the sdk to test these then??
After uninstalling flash player and air and reinstalling them with the cs update I now get an output at least. The error is as follows:
VerifyError: Error #1014: Class flash.html::HTMLLoader could not be found.
I have imported it like so:
how can I tell if I have that class??