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
Sunday, May 27, 2012
[Action Script] Opening PDF May,2012
Posted by Bimo Hery Prabowo at 3:13 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment