History back scene button in AS3
I want to go back scene (history back scene) on click. I try this code but, I got this OUTPUT ERROR
i try to publish this file in "AIR for ANDROID"
package {
import flash.display.SimpleButton;
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.external.ExternalInterface;
public class hback extends SimpleButton {
public function hback() {
this.addEventListener(MouseEvent.CLICK, clickF);
}
public function clickF(e:MouseEvent):void {
ExternalInterface.call("goBack");
}
}
}
OUTPUT ERROR
[SWF] 01.swf - 6919 bytes after decompression
Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
at Error$/throwError()
at flash.external::ExternalInterface$/call()
at hback/clickF()