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

My code Event.ENTER_FRAME could not be loaded.

Guest
Feb 02, 2013 Feb 02, 2013

Hi I'm rather new with AS3 and I made a new code for a game where a character picks up coins that looks like:

stage.addEventListener(Event.ENTER_FRAME, gameloop);

function gameloop(evt:Event) {

    pickUp();

}

function pickUp(){

    if (car1.hitTestObject(coin1)){

        coin1.x=1500;

    }

    if (car1.hitTestObject(coin2)){

        coin2.x=1500;

    }

    if (car1.hitTestObject(coin3)){

        coin3.x=1500;

    }

}

However, it says the class or interface "Event" could not be loaded.

Please help me.

Thank you.

TOPICS
ActionScript
327
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 03, 2013 Feb 03, 2013

Go into your Flash Publish Setttings and make sure you have it set to publish for AS3.

Translate
LEGEND ,
Feb 03, 2013 Feb 03, 2013
LATEST

Go into your Flash Publish Setttings and make sure you have it set to publish for AS3.

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