Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-25-2012, 07:56 PM   #1
krakatoa
Registered User
 
Join Date: Mar 2012
Posts: 18
Default Opening PDF

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 Page Clicking 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.
krakatoa is offline   Reply With Quote
Old 05-26-2012, 07:21 AM   #2
Sonny
Senior Member
 
Join Date: Aug 2010
Location: Sydney,Australia
Posts: 132
Default

Quote:
TypeError: Error #2007: Parameter url must be non-null.
at global/flash.net::navigateToURL()
at main_fla::main_43/opencloseclick()
You sure you are looking at the right function?? your error is in the opencloseclick function and you have posted some other function .Though the code you posted for opening the pdf works fine. So can you probably check to see if the openclose function is defined right?
Sonny is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:05 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.