View Full Version : Media Display component
padone
09-16-2005, 11:28 AM
Hi I have embedded the media display component and it loads an flv and plays when i select automatically play but does anyone have the code to put on a play and pause but so that the user can play the flv when they are ready
Please this would help me out loads
:D
darudd
09-19-2005, 03:59 PM
padone,
this is really pretty simple but here is the psuedocode.
mediaDisplay.setMedia("video/myvideo.flv", "FLV")
mediaDisplay.stop();
isplaying=0;
mediaDisplay.onPress=function() {
if (isplaying==0) {
mediaDisplay.play();
isplaying=1;
} else if (isplaying==1) {
mediaDisplay.stop();
isplaying=0;
}
hope that helps,
derek rudd
www.mediasauce.com
padone
09-19-2005, 05:19 PM
Hi cheers for the reply which bit of code do i put where
i have my own play and pause button in side one movie clip and im not sure how to make the video play when you click the mc
my media display component is called player and my mc with the buttons in is called playbut
and inside playbut there are two keyframes 1st one has the play button on and the 2nd has the pause button on...
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.