A Flash Developer Resource Site

Results 1 to 20 of 27

Thread: Wmode and hidden tabs...

Threaded View

  1. #25
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    I found actually a interesting thing
    http://blog.flashgen.com/2005/10/31/...d-mouse-traps/
    So I was having a little shufty through the AS3 Language Reference at the weekend and I came across this in the class flash.display.Stage

    activate: The activate event occurs when Flash Player has gained OS focus and is becoming active.
    deactivate: The Stage object generates the deactivate event when the Flash Player is losing operating system focus and is becoming inactive.
    propably like this:
    PHP Code:
    stage.addEventListener(Event.ACTIVATEfunctionUnpause);
    stage.addEventListener(Event.DEACTIVATEfunctionPause); 
    [edit]yes it seems to be used like this- works like a charm in the IDE... browsers are next[/edit]

    the official Adobe help doesn´t say much- in fact its rather hidden
    http://livedocs.adobe.com/flash/9.0/...lay/Stage.html

    now this would be interesting to check if it even works with the wMode- I´m including it right now in a engine - pausing it if there is no focus. Will test it later if it works in FF,Opera and Chrome with and without wMode
    Last edited by renderhjs; 09-09-2008 at 05:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center