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

this code is not working for some reason

Guest
May 13, 2014 May 13, 2014

function setBullet(evt:MouseEvent):void

  {

  bullet--;

  bulletsTxt.text = bullet.toString();

  if(bullet == 0)

  {

  gameTimer.addEventListener(TimerEvent.TIMER_COMPLETE,gameOver);

  }}

TOPICS
ActionScript
475
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 ,
May 13, 2014 May 13, 2014

What should it be doing that it is not doing?

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 ,
May 13, 2014 May 13, 2014

You should contact the person who is posting the same kind of game problems in the Flash General forum and see if the two of you can work things out together.  That person appears to have the same exact problem (and code) as you!  Here is a link to the latest post by that person...

https://forums.adobe.com/thread/1473702

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
Explorer ,
May 13, 2014 May 13, 2014
LATEST

Make sure that gameTimer is turned on by doing gameTimer.start()

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