4 Replies Latest reply on May 23, 2007 9:32 PM by hwa-jun yu

    Problem with MPEGAdvance Xtra + buddyApi ?? or it's just the stupid me?

    hwa-jun yu Level 1
      I'm using MPEGAdvance xtra to play mpeg videos in my project.
      But there's one problem keeps occuring.
      It seems like the MPEG xtra has its own window (from what I see) and it keeps trying to activate itself, which is bad for the rest of my code.


      on deactivateApplication
      if(baWindowInfo(baWinHandle(),"state") = "Max")then
      baSetWindowState(baWinHandle(),"Minimised")
      switchToNormal --> my function, which uses buddyApi to change screen res
      end if
      end

      on ActivateApplication
      if(baWindowInfo(baWinHandle(),"state") <> "Max")then
      baSetWindowState(baWinHandle(),"Restored")
      switchTo640 --> my function, which uses buddyApi to change screen res
      end if
      end


      In my observation, the MPEG xtra forces itself to activate which invokes the on DeactiveApplication , making a jam to my screen.

      has anyone experienced such matter when using MPEGAdvance and buddyApi xtra?
      please help.