Advertisement
Guest User

how to dance dnb

a guest
Jun 24th, 2023
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ActionScript 3 2.35 KB | Source Code | 0 0
  1. package how_to_dance_dnb_fla
  2. {
  3.    import flash.display.MovieClip;
  4.    import flash.events.ContextMenuEvent;
  5.    import flash.net.URLRequest;
  6.    import flash.net.navigateToURL;
  7.    import flash.ui.ContextMenu;
  8.    import flash.ui.ContextMenuItem;
  9.    
  10.    public dynamic class MainTimeline extends MovieClip
  11.    {
  12.        
  13.      
  14.       public var my_menu:ContextMenu;
  15.      
  16.       public var flash_name;
  17.      
  18.       public var song_name;
  19.      
  20.       public var video_name;
  21.      
  22.       public var og_video;
  23.      
  24.       public var notice;
  25.      
  26.       public var song_link:String;
  27.      
  28.       public var og_video_link:String;
  29.      
  30.       public function MainTimeline()
  31.       {
  32.          super();
  33.          addFrameScript(0,this.frame1);
  34.       }
  35.      
  36.       public function openSong(param1:ContextMenuEvent) : void
  37.       {
  38.          navigateToURL(new URLRequest(this.song_link));
  39.       }
  40.      
  41.       public function openVideo(param1:ContextMenuEvent) : void
  42.       {
  43.          navigateToURL(new URLRequest(this.og_video_link));
  44.       }
  45.      
  46.       internal function frame1() : *
  47.       {
  48.          this.my_menu = new ContextMenu();
  49.          this.my_menu.hideBuiltInItems();
  50.          this.flash_name = new ContextMenuItem("how_to_dance_dnb.swf");
  51.          this.song_name = new ContextMenuItem("Song source: Danny Byrd - We Can Have It All (Sigma Remix)");
  52.          this.video_name = new ContextMenuItem("Video source: Yuru Yuri S2");
  53.          this.og_video = new ContextMenuItem("Original video");
  54.          this.notice = new ContextMenuItem("By: myon");
  55.          this.song_link = "https://www.youtube.com/watch?v=lXHx9kREem8";
  56.          this.og_video_link = "https://www.youtube.com/watch?v=3CQjxb6gCnw";
  57.          this.flash_name.enabled = false;
  58.          this.song_name.separatorBefore = true;
  59.          this.song_name.enabled = true;
  60.          this.video_name.enabled = false;
  61.          this.og_video.enabled = true;
  62.          this.notice.enabled = false;
  63.          this.notice.separatorBefore = true;
  64.          this.song_name.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,this.openSong);
  65.          this.og_video.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,this.openVideo);
  66.          this.my_menu.customItems.push(this.flash_name,this.song_name,this.video_name,this.og_video,this.notice);
  67.          contextMenu = this.my_menu;
  68.       }
  69.    }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement