Advertisement
Guest User

Overrideclass

a guest
Mar 26th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. package com.videoplayer.RELEASES.***
  2. {
  3.  
  4. import com.videoplayer.GLOBALS;
  5. import com.videoplayer.manager.skinned.CH.Manager_INTERNAL_CH;
  6. import com.videoplayer.utils.Debug;
  7. import com.videoplayer.utils.StageHand;
  8. import com.videoplayer.video.ContentController_INTERNAL;
  9.  
  10. import flash.display.DisplayObject;
  11. import flash.display.MovieClip;
  12. import flash.net.NetStream;
  13.  
  14.  
  15. public class MAIN_JUKEBOX_*** extends Main
  16. {
  17.  
  18.  
  19. public function MAIN_JUKEBOX_***():void
  20. {
  21. super(new Manager_INTERNAL_**());
  22. }
  23.  
  24.  
  25. override public function release_vars():void
  26. {
  27. GLOBALS.vars.ads_enabled = false;
  28. GLOBALS.vars.playerbrand = "***";
  29. GLOBALS.vars.playertype = "***";
  30. GLOBALS.vars.server = "www.***.com";
  31. GLOBALS.vars.stats_flags = {***: true, ***: true, ***: true};
  32. GLOBALS.vars.usingJukebox = true;
  33. }
  34.  
  35.  
  36. public function setParentref($parent:*):void
  37. {
  38. GLOBALS.vars.clipParent = $parent;
  39.  
  40. log("setParentref");
  41. }
  42.  
  43.  
  44. public function destroy():void
  45. {
  46. log("destroy");
  47.  
  48. for (var i:int = StageHand.stagelist.length - 1; i >= 0; i--)
  49. {
  50. var child:DisplayObject = StageHand.stagelist[i] as DisplayObject;
  51.  
  52. StageHand.stagelist[i].destroy();
  53.  
  54. StageHand.thestage.removeChild(child);
  55. }
  56.  
  57. //((mainmanager.content as ContentController_INTERNAL).vidstream.stream as NetStream).close();
  58. }
  59.  
  60.  
  61. private function log($str:String):void
  62. {
  63. Debug.log("MAIN_JUKEBOX_*** - " + $str, 0xCCFF00);
  64. }
  65.  
  66.  
  67. }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement