Add an event listener to current window


i want add event current window in browser based program.

 

i want find out when window no longer selected. believe want listen event.deactivate, correct?

 

problem though, don't know how instance current window.

 

i've tried:

flexglobals.toplevelapplication

-can't add event listener that, , don't know if that's window.

 

i've tried:

var window = this.stage.nativewindow;

-when build error though: access of possibly undefined property nativewindow through reference static type flash.display:stage.

 

so need window? then, what's correct event want listen for?

 

thanks!

depends on mean “window”.  browser-based flash app defaults single browser window single flashplayer instance drawable area “stage”.  clicking outside area, on address bar of browser window results in event.deactivate.

 

if using flex titlewindows or panels create of multi-window app within stage, there should window_deactivate events , activewindowmanager keeping track, might want manage windows on own anyway.



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support