×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    5

    Flash Lite 4 Suspend Event?

    Anyone know how in Flash Lite 4 to react to people pushing the hardware button?

    I have a game that has background music which keeps playing (and the game keeps running) when users try to suspend the application (Am I correct that in FL3 it automatically suspends applications when a user returns to the phone menu, but in FL4 the application keeps playing). I've tried listening for the following events, but none of them fire:

    stage.addEventListener(Event.RESIZE, onResize);
    stage.addEventListener(Event.ACTIVATE, onActivated);
    stage.addEventListener(Event.DEACTIVATE, onDeactivated);
    stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullScreen);
    stage.addEventListener(FocusEvent.FOCUS_IN, onFocusIn);
    stage.addEventListener(FocusEvent.FOCUS_OUT, onFocusOut);
    stage.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);

    I even tried continually polling to check if there was a property like stage.visible that might change, but couldn't find anything that's different when the user is not in the application.

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Re: Flash Lite 4 Suspend Event?

    Hi rpurushotma,
    Are you tested it in a real device? because for me even in Nokia N8 (Flash Lite 4) the behaviour is same as of Flash Lite 3 i.e the player get paused once go to background. Also test that what happens if your content is embedded into a WRT .wgz.

    Best Regards,
    SajiSoft

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    5

    Re: Flash Lite 4 Suspend Event?

    Hi Sajid --

    Thanks so much for your help with this! I have been testing it on a physical N8, I put a video of the issue at http://swirlystudios.com/fs_suspend.mpg

    I so far have been using SWF2Go instead of doing a WRT embed. I guess that will be the next step. (Or is there anyone here that has a program with an active thread running got it to suspend correctly on hardware suspend in SWF2Go with AS3?) From what I understand for people using AS2 with SWF2Go it works fine, so it would be nice to know if that's really the problem before moving to WRT.

    Alternatively, I don't really care about this issue, but does anyone know of a workaround that would get it through Q.A. ?

    thanks,
    Ravi

Similar Threads

  1. Flash Lite applications event handling
    By colombus2in in forum [Archived] Flash Lite on Nokia Devices
    Replies: 4
    Last Post: 2010-10-28, 18:39
  2. Problem with Flash Lite & Nokia - Flash Lite does not open in MMS
    By muggzy in forum [Archived] Flash Lite on Nokia Devices
    Replies: 4
    Last Post: 2008-12-17, 17:13
  3. I have a problem in chat using Kuneri Lite and Flash Lite.
    By Felipe.Sampaio in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2008-07-09, 07:40
  4. Getting Flash Lite installed on Flash Lite enabled but not pre-built devices!
    By sirbijan in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2008-06-04, 07:39
  5. Flash Lite eSeminar: Predictive Mobile Search comes to Flash Lite
    By biskero in forum [Archived] Flash Lite on Nokia Devices
    Replies: 0
    Last Post: 2008-04-17, 14:03

Posting Permissions

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