Skip to main content
Participant
July 4, 2011
Question

StageWebView MP4 not exiting when I tap "done"?

  • July 4, 2011
  • 3 replies
  • 1072 views

I am calling a StageWebView to play an MP4 video in my Flash Air for iOS project. The video plays great, but when I tap done, it does not remove the video from the stage to let me go back to the application. Am I missing some additional code? Thanks.

This topic has been closed for replies.

3 replies

Inspiring
July 7, 2011

Hi,  In iOS you can use the stagewebviewbridge class  at Google. Code

http://code.google.com/p/stagewebviewbridge/  With it you can comunicate with javascript to as3...

Colin Holgate
Inspiring
July 4, 2011

If you have the stagewebview filling the stage, then you won't be able to get a touch from the user to then set the stagewebview to null. If it has to be full screen video, then you may need to use timers to know when the video has finished playing. If it can initially be not full screen, say a thumbnail sized version which has your Flash navigation showing underneath it, then if the user plays the view, zooms to full screen, and then touches Done, your Flash interface will reappear, and you will be able to proceed (setting the stagewebview to null if you've finished with it).

relaxatraja
Inspiring
July 4, 2011

Set you stagewebview instance to null:

webView.stage = null