How to read and display a pdf file using flash builder 4.5 and as3 for iOS application??
0
votes
you should look at this: stackoverflow.com/questions/2977637/open-pdf-in-flash-player-10
- Jevgenij Dmitrijev
You do not open a pdf in Flash Builder. Flash Builder is the IDE (Integrated Development Environment) for developing, debugging and profiling Adobe Flex / AIR / ActionScript files. You want open the PDF file in an AIR for iOS application. Flash Builder has no relation to the question.
- Pranav Hosangadi
@Pranav Hosangadi: I think you should read my question carefully, i wanted to open pdf in iOS devices using flash builder 4.5 not in flash builder.
- Swati Singh
You do not use Flash Builder to open pdf files, be it on iOS devices, or on desktop computers. FB is just the IDE, meaning it helps you in developing your application. The programming language (AS3) and framework (AIR) are what decide the code needed to display a pdf.
- Pranav Hosangadi
Everyone knows including me that FB is an IDE so it is not necessary to mention everywhere that FB is IDE, and yes we develop our application in FB IDE and after that we run app on iOS devices so there are some feature or library in built in the SDK that can help us in making app.
- Swati Singh
2 Answers
0
votes
0
votes
package
{
import flash.display.MovieClip;
import flash.media.StageWebView;
import flash.geom.Rectangle;
public class StageWebViewExample extends MovieClip
{
var webView:StageWebView = new StageWebView();
public function StageWebViewExample()
{
webView.stage = this.stage;
webView.viewPort = new Rectangle( 0, 0, stage.stageWidth,stage.stageHeight);
webView.loadURL( "http://www.adobe.com" );
}
}
}
StageWebView.
http://help.adobe.com/en_US/as3/dev/WS901d38e593cd1bac3ef1d28412ac57b094b-8000.html
this won't work on Android 3 tablets. For activating any plugin (e.g., Flash or PDF) in the StageWebView you need to explicitly enable hardware acceleration in the description file. This part would be easy, but Flash CS 5.5 would not package your -app.xml since it checks against the Froyo lib and not the Honeycomb lib. Since the hardware accelartion is a feature of Honeycomb, it is unknown for CS5.5.