1180 Call to a possibly undefined method navigateToURL

If you get the above error when trying to run your flash actionscript 3 file, you are obviously trying to use the navigateToURL() function but have not imported the flash.net library code.

The following code before everything will correct the problem.

[code lang=”actionscript”]
import flash.net.*;
[/code]

..or a more of a direct unbloated method is as follows:

[code lang=”actionscript”]
import flash.net.navigateToURL;
[/code]


2 Comments

Roopak · August 12, 2011 at 07:27

Thanks a lot .. this post helped me too..!

Khawar · March 9, 2011 at 08:34

Thanks a lot.. hours of work finally reached to an end..

Regards

Leave a Reply

Your email address will not be published. Required fields are marked *