Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-16-2005, 11:28 AM   #1
padone
Registered User
 
Join Date: Dec 2004
Posts: 168
Default Media Display component

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

padone is offline   Reply With Quote
Old 09-19-2005, 03:59 PM   #2
darudd
Registered User
 
Join Date: Nov 2002
Posts: 62
Default

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
darudd is offline   Reply With Quote
Old 09-19-2005, 05:19 PM   #3
padone
Registered User
 
Join Date: Dec 2004
Posts: 168
Default my own button

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...
padone is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:30 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.