- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
How to embed YouTube video
July 22, 2011
Embedding video
- Open your .FLA file from ‘sources/flash’ folder in Adobe Flash program.
- Locate pages movie clip (usually called as “pages2”, “all_content”, “pages_all” , “pages”.)
- 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 a button on the stage and give it an instance name of "ytLoadBtn".
- Open the Action Scrip panel (F9 key) and put this code in the timeline:
ytLoadBtn.onRelease = function(){
System.security.allowDomain("www.youtube.com");
videoLoader.loadMovie("http://www.youtube.com/v/IOPVYqZtMY0&hl=de&fs=1");
}

Updating changes
- Publish the .FLA file to create the .SWF file.
- Copy the new .SWF file from ‘sources/flash’ folder to the ‘site_flash/flash’ folder (to replace the original file)
- Upload the content of ‘site_flash” folder to the server.
NOTE: you will not see the video while previewing flash file. You should upload the files to the server.
Feel free to check the detailed video tutorial below:
How to embed YouTube video