Categories

How to embed YouTube video

Ray Taylor July 22, 2011
Rating: 5.0/5. From 1 vote.
Please wait...

Embedding video

  1. Open your .FLA file from ‘sources/flash’ folder in Adobe Flash program.
  2. Locate pages movie clip (usually called as “pages2”, “all_content”, “pages_all” , “pages”.)
  3. Locate the page on which you want to place the video from YouTube site.
  4. Created an empty movieclip on the stage and gave it an instance name of videoLoader
  5. Create a button on the stage and give it an instance name of "ytLoadBtn".
  6. 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

  1. Publish the .FLA file to create the .SWF file.
  2. Copy the new .SWF file from ‘sources/flash’ folder to the ‘site_flash/flash’ folder (to replace the original file)
  3. 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
This entry was posted in Working with Flash and tagged embed, flash, video, YoutTube. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket