{"id":9811,"date":"2011-07-22T03:55:34","date_gmt":"2011-07-22T07:55:34","guid":{"rendered":"http:\/\/info.template-help.com\/?p=9811"},"modified":"2015-09-11T06:49:28","modified_gmt":"2015-09-11T10:49:28","slug":"how-to-embed-youtube-video","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-embed-youtube-video.html","title":{"rendered":"How to embed YouTube video"},"content":{"rendered":"<h3>Embedding video<\/h3>\r\n<ol>\r\n  <li>Open your .FLA file from  &lsquo;sources\/flash&rsquo; folder in Adobe Flash program.<\/li>\r\n  <li>Locate pages movie clip  (usually called as &ldquo;pages2&rdquo;, &ldquo;all_content&rdquo;, &ldquo;pages_all&rdquo; , &ldquo;pages&rdquo;.)<\/li>\r\n  <li>Locate the page on which you  want to place the video from YouTube site.<\/li>\r\n  <li>Created an empty movieclip on  the stage and gave it an instance name of videoLoader \r\n\r\n<a href=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/07\/xml_youtube_1.jpg\"><img loading=\"lazy\" src=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/07\/xml_youtube_1-300x169.jpg\" alt=\"\" title=\"xml_youtube_1\" width=\"300\" height=\"169\" class=\"alignleft size-medium wp-image-9812\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_1-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_1-150x85.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_1-1024x578.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_1.jpg 1273w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<a href=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/07\/xml_youtube_2.jpg\"><img loading=\"lazy\" src=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/07\/xml_youtube_2-300x58.jpg\" alt=\"\" title=\"xml_youtube_2\" width=\"300\" height=\"58\" class=\"alignleft size-medium wp-image-9813\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_2-300x58.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_2.jpg 592w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n\r\n<\/li>\r\n  <li>Create a button on the stage  and give it an instance name of &quot;ytLoadBtn&quot;.\r\n\r\n<a href=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/07\/xml_youtube_3.jpg\"><img loading=\"lazy\" src=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/07\/xml_youtube_3-238x300.jpg\" alt=\"\" title=\"xml_youtube_3\" width=\"238\" height=\"300\" class=\"alignleft size-medium wp-image-9814\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_3-238x300.jpg 238w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_3.jpg 411w\" sizes=\"(max-width: 238px) 100vw, 238px\" \/><\/a>\r\n\r\n<a href=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/07\/xml_youtube_4.jpg\"><img loading=\"lazy\" src=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/07\/xml_youtube_4-300x52.jpg\" alt=\"\" title=\"xml_youtube_4\" width=\"300\" height=\"52\" class=\"alignleft size-medium wp-image-9815\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_4-300x52.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_4.jpg 648w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n  <li>Open the Action Scrip panel  (F9 key) and put this code in the timeline:<\/li>\r\n<\/ol>\r\n\r\n<pre class=\"brush:as3\">\r\n  ytLoadBtn.onRelease = function(){<br>\r\n  System.security.allowDomain(&quot;www.youtube.com&quot;);<br>\r\n  videoLoader.loadMovie(&quot;http:\/\/www.youtube.com\/v\/IOPVYqZtMY0&amp;hl=de&amp;fs=1&quot;);<br>\r\n  } \r\n<\/pre>\r\n\r\n<a href=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/07\/xml_youtube_5.jpg\"><img loading=\"lazy\" src=\"http:\/\/info.template-help.com\/wp-content\/uploads\/2011\/07\/xml_youtube_5-300x96.jpg\" alt=\"\" title=\"xml_youtube_5\" width=\"300\" height=\"96\" class=\"alignleft size-medium wp-image-9816\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_5-300x96.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_5-1024x330.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/xml_youtube_5.jpg 1038w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<h3>Updating changes<\/h3>\r\n<ol>\r\n  <li>Publish the .FLA file to create the  .SWF file. <\/li>\r\n  <li>Copy the new .SWF file from  &lsquo;sources\/flash&rsquo; folder to the &lsquo;site_flash\/flash&rsquo; folder (to replace the  original file)<\/li>\r\n  <li>Upload the content of &lsquo;site_flash&rdquo;  folder to the server.<\/li>\r\n<\/ol>\r\n<p class=\"attention\">NOTE: you will not see the video while  previewing flash file. You should upload the files to the server.<\/p>\r\n\r\n<p>&nbsp;<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"\/help\/files\/Flash\/26780_add_youtube_video_xml_as2.htm\" target=\"blank\">How to embed YouTube video<\/a>","protected":false},"excerpt":{"rendered":"<p>Embedding video Open your .FLA file from &lsquo;sources\/flash&rsquo; folder in Adobe Flash program. Locate pages movie clip (usually called as &ldquo;pages2&rdquo;, &ldquo;all_content&rdquo;, &ldquo;pages_all&rdquo; , &ldquo;pages&rdquo;.) Locate the page on which you want to place the video from YouTube site. Created an empty movieclip on the stage and gave it an instance name of videoLoader Create [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[279],"tags":[513,486,527,1032],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/9811"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=9811"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/9811\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=9811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=9811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=9811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}