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

1061 Call to a possibly undefined method addEventListener through a reference with static type Class

New Here ,
Nov 07, 2015 Nov 07, 2015

import flash.events.MouseEvent;

import flash.net.URLRequest;

import flash.net.navigateToURL;

var getContactPage:URLRequest = new URLRequest ("http://www.mycontacturl.html")

Contact.addEventListener(MouseEvent.CLICK,ContactClick);

function ContactClick(event:MouseEvent): void {

    navigateToURL (getContactPage);

   

}

Any help would be appreciated

Thank you

TOPICS
ActionScript
610
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 , Nov 07, 2015 Nov 07, 2015

The message makes it sound like Contact is the name of a class, not an instance name of an object.  Make sure you are not naming the object with a class name.

Translate
LEGEND ,
Nov 07, 2015 Nov 07, 2015
LATEST

The message makes it sound like Contact is the name of a class, not an instance name of an object.  Make sure you are not naming the object with a class name.

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