Sunday, May 27, 2012

[Action Script] Opening PDF May,2012

Hi guys,


I having some issue opening URL or PDF in AS3. I just use the code snippets for do this:

ActionScript Code: /* Click to Go to Web PageClicking on the specified symbol instance loads the URL in a new browser window.Instructions:1. Replace url with the desired URL address.   Keep the quotation marks ("").*/manual939.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);function fl_ClickToGoToWebPage(event:MouseEvent):void{    navigateToURL(new URLRequest("manual.pdf"), "_blank");}
The pdf and fla/swf is under the same directory (folder). But this is the error I got:


ActionScript Code: TypeError: Error #2007: Parameter url must be non-null.    at global/flash.net::navigateToURL()    at main_fla::main_43/opencloseclick()

Any idea?
Thanks in advance.
Opening PDF

Related Post



0 comments: