Flash Video

  • Convert Video to .flv (flash video)
  • Use Flash 8's Video Skin
    • Macromedia/Flash 8/en/Configuration/Skins
    • Macromedia/Flash 8/en/Configuration/SkinFLA
  • When you assign the video source, you ultimately have to provide a relative directory (use relative for migration from dev to live) but this creates an issue since neither the skin nor the video will show up during local testing.
    • If you are calling either the FLV or the skin with a full domain name (i.e. http://dev.orbisdesign.com/flash/videos/video.flv - that will work in local testing and it will work when you test on the dev site, but when you roll the swf to production, because the domain names are different (i.e. dev vs live) the video will not play.  So, test with the full domain name, but finish with it in a relative state so it will work when migrating dev to live.
  • Remember to upload the custom skin as well
    • C:/Program Files/Macromedia/Flash 8/en/Configuration/Skins
    • Copy desired skin from above to
      • workfiles/flash/skins/thisIsTheNameOfCopiedSkin.swf
      • Set as custom skin  URL "/flash/skins/ArcticExternalNoVol.swf" (server)
        • "skins/ArcticExternalNoVol.swf" (local) 
        • NOTE: cannot have relative on the skins, but you can with the FLV
      • Then upload directory just like that to live site
  • Be sure that the web server is configured to run ".FLV" files (MIME TYPE).  Windows 2003 will not recognize (visiting the file directly will indicate NO PAGE) the file.
    • 2 options - configure site or all sites by adding mime type
      • Site
        • Select the site to configure in IIS, right click and select "Properties".
        • Under HTTP Headers Tab, select "File Types" under the MIME Map section and select "New Type".
        • Type ".flv" as the associated extension and "video/x-flv" as the content type.
      • Server
        • Do the same as above, but right click "Properties" on "(Local Computer)" and that should set .FLV for all sites.

 

#include "mc_tween_2_28_29.as"
function getVideoReady(){
 import mx.video.*;

 my_FLVPlybk.autoPlay = false;
 var listenerObject:Object = new Object();
 listenerObject.ready = function(eventObject:Object):Void {
  my_FLVPlybk.seekSeconds(0);
  my_FLVPlybk.pause();
 };
 my_FLVPlybk.addEventListener("ready", listenerObject);
 my_FLVPlybk.setBufferTime(1);
 my_FLVPlybk.contentPath = "video/Breast Cancer broll.flv";     //Local & Server

}
function playVideo(){
 imageClip.alphaTo(0,.5,"linear",1);
 my_FLVPlybk.play();
}
imageClip.onRelease = function(){
 playVideo();

}