Dynamic Flash video

/ Published in: ActionScript
Save to your folder(s)

This works with the standard video player component in Flash CS3.
Throw this actionscript in the first frame. Name your video player "videoPlayer" within Flash.

Then in the HTML markup object tag:
param name=FlashVars value="url=PathToVideo.flv"

Then in the HTML markup embed tag:

Copy this code and paste it in your HTML
  1. videoPlayer.source = root.loaderInfo.parameters.url;
  2. return;

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.