ealbinu

Fixing Papervision3d's VideoStreamMaterial class for Looping Video

Aug 11th, 2011
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private function onStreamStatus ( event:NetStatusEvent ):void
  2.         {
  3.             switch ( event.info.code )
  4.             {
  5.                 case "NetStream.Play.Start":
  6.                     animated = true;
  7.                     break;
  8.                 case "NetStream.Unpause.Notify":
  9.                     animated = true;   
  10.                     break;
  11.                 case "NetStream.Play.Failed":
  12.                     animated = false;
  13.                     break;
  14.                 case "NetStream.Play.Stop":
  15.                     animated = false;
  16.                     break;
  17.                 case "NetStream.Play.StreamNotFound":
  18.                     animated = false;
  19.                     break;
  20.                 case "NetStream.Pause.Notify":
  21.                     animated = false;
  22.                     break;
  23.                 case "NetStream.Seek.Notify":
  24.                     animated = true;
  25.                     break;
  26.             }          
  27.         }
Add Comment
Please, Sign In to add comment