Ok, working with AIR (newest release) in flex builder (newest release). 

Just downloaded adobe reader (newest release, see a trend? =])

I have a popup, that im using with the popupmanager, that loads a pdf:

private function loadEnvelope():void {
if( HTMLLoader.pdfCapability == HTMLPDFCapability.STATUS_OK ){
var htmlLoader:HTMLLoader = new HTMLLoader();
var url:URLRequest = new URLRequest("hardcodeurl");
htmlLoader.width = 519;
htmlLoader.height = 361;
htmlLoader.load(url);
htmlLoader.addEventListener(Event.COMPLETE,completeHandler);                    
                
var holder:UIComponent = new UIComponent();
holder.addChild(htmlLoader);                                                    
                        
envelope.addChild(holder);
}
}

the completeHandler fires, so it says it is completing.

my problem is this, it is just showing a black/gray square, instead of
showing the pdf.

I know the pdf exists, because I can manually go to that url, and it
prompts me to dl the pdf.

Keep in mind, that will be a dynamic url when I get this working! :)

HALP! :)

Reply via email to