简体   繁体   English

Adobe AIR Android:在闲置后重新激活应用程序时会重新加载SWF

[英]Adobe AIR Android: SWF is reloaded when app is reactivated after being idle

I'm porting my AIR game to Android. 我正在将AIR游戏移植到Android。

When the app is deactivated (loses fucus, but it's still running in the background), for example by pressing the Home key, and then user taps the app's icon to bring it into focus again, the runtime re-loads the SWF and there's two instances of the same SWF running on top of each other. 当应用程序被停用(失去焦点,但仍在后台运行)时,例如通过按Home键,然后用户点击应用程序的图标以使其再次成为焦点时,运行时将重新加载SWF,并且有两个同一SWF实例彼此重叠运行。

As far as I can tell, the runtime itself is not reloaded, only the SWF. 据我所知,不会重新加载运行时本身,而只会重新加载SWF。

When I manually kill the process, and re-launch the app, all is fine. 当我手动终止进程并重新启动应用程序时,一切都很好。 The whole thing happens only if the app remains in memory and is re-activated after being idle. 仅当应用程序保留在内存中并在闲置后重新激活时,整个过程才会发生。

Is this a bug, or am I missing some property that needs to be set? 这是一个错误,还是我缺少一些需要设置的属性?

The runtime version is 17. 运行时版本为17。

Thanks. 谢谢。

Facepalm. Facepalm。 Turns out it was a stray InvokeEvent left over from the PC version. 原来这是PC版本遗留下来的InvokeEvent So @Aaron, you were right to assume I haven't researched this enough on my own. 所以@Aaron,您以为我自己还没有对此进行足够的研究,这是正确的。 @BotMaster was also right :) @BotMaster也是正确的:)

Thanks for pushing me in the right direction though. 不过,感谢您将我推向正确的方向。 And sorry. 对不起。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM