HTMLLoader isn't a Flash Player class. It can only be used with AIR.
Thanks for your reply.
I would like to use the inline PDF viewer in my Flex Application. For this, I need to use the class HTMLLoader. Could you please tell me how can use this HTMLLoader in Flex Application?
Do i need to inlclude any libraries?
If you are targeting the Flash Player rather than AIR, there is no native way of doing this. You will have to resort to using IFrames and passing off the responsibility for the PDF to the browser... which is out of my scope of expertise I'm afraid...
I have the same issue.
I am trying to run the example given in the following link
As it says in the "How to Use this Example" I created the ActionScript Project and pasted the code there.
And I am getting the following errors.
1046: Type was not found or was not a compile-time constant: HTMLLoader.
1172: Definition flash.html:HTMLLoader could not be found. HTMLLoaderExample
1180: Call to a possibly undefined method HTMLLoader. HTMLLoaderExample
Anyone know how to solve this error?
You have to start with an AIR project or otherwise copy AIR project
compilation settings to your ActionScript project
Thanks a lot. I created AIR project and it is working for me now.