English 中文(简体)
我如何总是把AIR土著寡妇带在 app门前,而不是在其他窗户面前?
原标题:How do I make an AIR NativeWindow always in front of just the app, but not in front of other windows?

我希望窗户总是站在所有的窗户前面,但是,当 app子被拆除时,我不想把窗户放在其他面。

最佳回答
<mx:Window xmlns:mx="http://www.adobe.com/2006/mxml" alwaysInFront="true" initialize="onInitialize()">
<mx:Script>
    <![CDATA[
        private function onInitialize():void {
            addEventListener(Event.DEACTIVATE, onAppDeactivate);
            addEventListener(Event.ACTIVATE, onAppActivate);
        }

        private function onAppDeactivate(event:Event):void {
            alwaysInFront=false;
        }

        private function onAppActivate(event:Event):void {
            alwaysInFront=true;
        }
    ]]>
</mx:Script>
</mx:Window>
问题回答

暂无回答




相关问题
Can an AIR application access its own digital signature?

All AIR installation files must be digitally signed (http://help.adobe.com/...). Is there a way for an AIR application to access this signature information at runtime? Say, I m distributing client-...

What are the best development tools to use in this project?

I am currently devising 3 database desktop applications for different users in a manufacturing company (one for the accounting department, sales department, production department). All applications ...

Authenticating and tracking users in a JSON webservice

I have contact management / CRM application used in-house by our company, It is a web based app and thus uses a lot of Ajax. Most of the data is JSON, and the backend server uses PHP with MySQL as the ...

Adobe AIR: detect en_GB locale

Is there a way to detect if the user is running the AIR application under en_GB locale on Windows? Capabilities.language returns only "en" and Capabilities.languages[0] returns "en_US" :(

AIR评估业绩缓慢的原因?

我试图用Windows XP(SP3)Adobe AIR的表现来缓解一个奇怪的问题。 我们从遥远的服务器到当地QLQ数据库的同yn数据,以及某些机器的数据,这一过程需要......。

xmlHttpRequest and returned url

With help of xmlHttpRequest I make a server query. After that the server is redirecting to another page (e.g. "http://site.com/index.html;var=123") The question is - how can I get full url(side.com/...

热门标签