Skip to main content
예강문80415003
Participant
Nov 13, 2018 6:50 AM UTC
Question

There is a freezing when I press the title bar of my AIR program

I use this code for showing the bug

addEventListener(Event.ENTER_FRAME,example)

var temp=0;

var tf=new TextField();

tf.scaleX*=5;

tf.scaleY*=5;

addChild(tf);

function example(e)

{

temp++;

tf.text=String(temp);

}

0:00~0:12

there is a short time freezing when I press the title bar.

0:13~0:21

When I press the title bar in keeping pressing button, The AIR program pauses.

I must solve this problem for my game development.

What can I do for removal of this pausing phenomenon?

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Amrita Gangwani
Adobe Employee
Adobe Employee
Nov 15, 2018 5:40 AM UTC

Hi,

Thank you for reporting the issue!

Please log a bug on Tracker and attach the sample application code.

Translate
GogetaX
Inspiring
Nov 13, 2018 7:31 PM UTC

i've writen my own code using AS3 Desktop Air version 26.

import flash.events.Event;

this.addEventListener(Event.ENTER_FRAME,Count);

var a:Number =0;

function Count(e:Event):void{

a++;

txt.text = String(a);

}

Didnt freezed at all.

as txt im using the Label component that flash provides.

Check your code, you might be wrong somewhere. or just old version of Air.

Translate