Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Help!: TypeError: Error #2007: Parameter url must be non-null. in CS 5.5

Guest
Feb 07, 2014 Feb 07, 2014

Hi,

Im currently doing some google ads on Flash CC but found that google doesnt take a flash player which is above FP 10.1 thus i saved the swf files to my Flash 5.5 and encountered tis error

TypeError: Error #2007: Parameter url must be non-null.

          at global/flash.net::navigateToURL()

          at MethodInfo-1()

I am working in AS 3 in CS 5.5 Mac and exporting swf files into FP 9. I am very new to this and im wondering if anyone can help me?

here's my code:

Screen Shot 2014-02-07 at 10.59.23.png

thanks in advance!

TOPICS
ActionScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Feb 07, 2014 Feb 07, 2014

You should not nest a function in an event listener, let it stand on its own.  Also, you should try to let the variable stand alone to assign it so that there is a better chance it is ready when it is called upon. (those imports are not needed if coded in the timeline)

var url:String = root.loaderInfo,parameters.clickTAG as String;

clicktag.addEventListener(MouseEvent.CLICK, processCT);

function processCT(event:MouseEvent):void {

     navigateToURL(new URLRequest(url), "_blank");

}

Translate
LEGEND ,
Feb 07, 2014 Feb 07, 2014

You should not nest a function in an event listener, let it stand on its own.  Also, you should try to let the variable stand alone to assign it so that there is a better chance it is ready when it is called upon. (those imports are not needed if coded in the timeline)

var url:String = root.loaderInfo,parameters.clickTAG as String;

clicktag.addEventListener(MouseEvent.CLICK, processCT);

function processCT(event:MouseEvent):void {

     navigateToURL(new URLRequest(url), "_blank");

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 10, 2014 Feb 10, 2014

thanks a lot! I have included the right url and it worked perfectly!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 10, 2014 Feb 10, 2014
LATEST

You're welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines