Skip to main content
Known Participant
December 14, 2023
Question

Exit button undefined property

  • December 14, 2023
  • 1 reply
  • 190 views

I made an exit button in adobe animate as 3 for publish android. The exit button uses coding

stop();
btnya.addEventListener(MouseEvent.CLICK, closeapp);
function closeapp(e:MouseEvent):void
{
NativeApplication.nativeApplication.exit(0);
}

 but access of undefined property nativeApplication. Do i have to name it anywhere?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
December 14, 2023

import the class.

Known Participant
December 14, 2023

how to import the class? Please help my final year project

 

kglad
Community Expert
Community Expert
December 14, 2023

import flash.desktop.NativeApplication;