A
A
Alexander Sharomet2014-08-14 11:09:24
Android
Alexander Sharomet, 2014-08-14 11:09:24

Why do Android apps written in actionscript 3.0 in Adobe Flash weigh so much?

Hello.
I created a simple calculator (or rather, not even a calculator, but simply by pressing a button a number is displayed) on actionscript 3.0 in Adobe Flash
Here is the code:

import flash.events.Event;
stop();
Multitouch.inputMode=MultitouchInputMode.TOUCH_POINT;

this.btn1_btn.addEventListener(TouchEvent.TOUCH_BEGIN,f1);
this.btn2_btn.addEventListener(TouchEvent.TOUCH_BEGIN,f2);
this.btn3_btn.addEventListener(TouchEvent.TOUCH_BEGIN,f3);
this.btn4_btn.addEventListener(TouchEvent.TOUCH_BEGIN,f4);
this.btn5_btn.addEventListener(TouchEvent.TOUCH_BEGIN,f5);
this.btn6_btn.addEventListener(TouchEvent.TOUCH_BEGIN,f6);
this.btn7_btn.addEventListener(TouchEvent.TOUCH_BEGIN,f7);
this.btn8_btn.addEventListener(TouchEvent.TOUCH_BEGIN,f8);
this.btn9_btn.addEventListener(TouchEvent.TOUCH_BEGIN,f9);
this.btn0_btn.addEventListener(TouchEvent.TOUCH_BEGIN,f0);

function f1(e:TouchEvent):void{this.monitor_txt.appendText('1');}
function f2(e:TouchEvent):void{this.monitor_txt.appendText('2');}
function f3(e:TouchEvent):void{this.monitor_txt.appendText('3');}
function f4(e:TouchEvent):void{this.monitor_txt.appendText('4');}
function f5(e:TouchEvent):void{this.monitor_txt.appendText('5');}
function f6(e:TouchEvent):void{this.monitor_txt.appendText('6');}
function f7(e:TouchEvent):void{this.monitor_txt.appendText('7');}
function f8(e:TouchEvent):void{this.monitor_txt.appendText('8');}
function f9(e:TouchEvent):void{this.monitor_txt.appendText('9');}
function f0(e:TouchEvent):void{this.monitor_txt.appendText('0');}

When publishing this calculator, the .apk file weighs almost 9 megabytes.
Why? because there's nothing here

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2014-08-14
@sharomet

Along with the archive comes Adobe AIR Runtime, a virtual environment for running AIR applications on devices, an analogue (UNITY or JRE), if AIR is already installed on the device, it is not necessary to attach it to the archive, look in the APK packaging settings, the type parameter: Include AIR, the size will be reduced, but without AIR the user will not launch the application, in this case, the developers release 2 versions: APK (without AIR) and APK (with AIR)

G
GavriKos, 2014-08-14
@GavriKos

Open the APK and see what weighs so much ;-) Well, this is a regular archive.

A
Alexander Sharomet, 2014-08-14
@sharomet

Adobe AIR was automatically added

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question