This content has been marked as final. Show 6 replies
Have you tried using nativePath rather than url?
htmlLoader.load( new URLRequest( factSheet.nativePath ) );
Thanks for the suggestion, duncanhall. However, that now produces a blank white window.
Ok, that would suggest url was indeed the way to go.
How about adding some event listeners to your htmlLoader for things like progress/complete/Error etc and see if you can refine where the problem lies.
Thanks for your continued help, duncanhall.
When I add a listener to simply trace a statement when the htmlLoader is complete, the listener fires but the window still shows the spinning load wheel. I'm new to this whole thing, but my guess is that this is not supposed to happen, right?
Actually, my issue sounds a lot like this bug that has already been closed:
I tested this by moving my desired pdf to a different directory and it pulled right up. How do I go about getting an issue reopened or seeing whether it has been addressed?
In case anyone stumbles upon this thread in search for an answer to this issue, I have figured a inelegant work around.
Rather than pulling up the PDF with HTMLLoader(), I take the URLRequest object and pass it to a navigateToURL() function. This fires up your web browser with a blank page and then the PDF file. I assume if I had a PDF viewer plugin for my browser the PDF would come up in the browser itself, although I have not tested it.