i am doing simple flex application. i am having set of
buttons in left side of the page. if i click the any of this button
i want to load PDF in the same page(not a new page) in a container.
how to load this?
You would have to load the PDF into an ActionScript
ByteArray. Either you create an AIR application and you can
directly open a PDF file from the local file system into a
ByteArray. Or you use the Flash Player and then you can make a HTTP
request to a servlet that sends you a PDF file as a ByteArray. Then
you have to parse the ByteArray and render its information. This
requires to know about the PDF format structure. Some Flex
developers do the same to display Excel files into datagrids.
There be another way though. The trick is to use an IFrame in
the HTML wrapper: