Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package how_to_dance_dnb_fla
- {
- import flash.display.MovieClip;
- import flash.events.ContextMenuEvent;
- import flash.net.URLRequest;
- import flash.net.navigateToURL;
- import flash.ui.ContextMenu;
- import flash.ui.ContextMenuItem;
- public dynamic class MainTimeline extends MovieClip
- {
- public var my_menu:ContextMenu;
- public var flash_name;
- public var song_name;
- public var video_name;
- public var og_video;
- public var notice;
- public var song_link:String;
- public var og_video_link:String;
- public function MainTimeline()
- {
- super();
- addFrameScript(0,this.frame1);
- }
- public function openSong(param1:ContextMenuEvent) : void
- {
- navigateToURL(new URLRequest(this.song_link));
- }
- public function openVideo(param1:ContextMenuEvent) : void
- {
- navigateToURL(new URLRequest(this.og_video_link));
- }
- internal function frame1() : *
- {
- this.my_menu = new ContextMenu();
- this.my_menu.hideBuiltInItems();
- this.flash_name = new ContextMenuItem("how_to_dance_dnb.swf");
- this.song_name = new ContextMenuItem("Song source: Danny Byrd - We Can Have It All (Sigma Remix)");
- this.video_name = new ContextMenuItem("Video source: Yuru Yuri S2");
- this.og_video = new ContextMenuItem("Original video");
- this.notice = new ContextMenuItem("By: myon");
- this.song_link = "https://www.youtube.com/watch?v=lXHx9kREem8";
- this.og_video_link = "https://www.youtube.com/watch?v=3CQjxb6gCnw";
- this.flash_name.enabled = false;
- this.song_name.separatorBefore = true;
- this.song_name.enabled = true;
- this.video_name.enabled = false;
- this.og_video.enabled = true;
- this.notice.enabled = false;
- this.notice.separatorBefore = true;
- this.song_name.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,this.openSong);
- this.og_video.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,this.openVideo);
- this.my_menu.customItems.push(this.flash_name,this.song_name,this.video_name,this.og_video,this.notice);
- contextMenu = this.my_menu;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement