| View previous topic :: View next topic |
| Author |
Message |
jramos AFC Member
Joined: 18 Aug 2007 Posts: 4
|
Posted: Tue Aug 21, 2007 3:35 pm Post subject: HELP!!!!Autoplay feature to "false" |
|
|
If I choose to set the autoplay feature to "false", the person viewing the site needs to click on the medialist button as well as the play button.
Is there a way to have the media list button be the play when you click on the media list button and still have the videos not play through one after the other.
Regards, |
|
| Back to top |
|
 |
wigz AFC Team

Joined: 27 Mar 2007 Posts: 570
|
Posted: Tue Aug 21, 2007 10:21 pm Post subject: |
|
|
jramos,
Yes. You can use the following code to accomplish this. What I am doing here is using an event to determine when a user clicks an item and then loading the video for that item and playing it:
| Code: | //Play an item when it is clicked.
myList.addEventListener("ITEM_ON_RELEASE", this);
function ITEM_ON_RELEASE(evnt:Object) {
// load item
myPlayer.contentPath = evnt.target.data;
// tell video player with instance myPlayer to play
myPlayer.play();
} |
Thanks!
~Wigz |
|
| Back to top |
|
 |
dosch AFC Space Explorer
Joined: 29 Oct 2007 Posts: 19 Location: paris
|
Posted: Sun Jun 29, 2008 7:33 pm Post subject: |
|
|
thanks!
it's working perfectly. _________________ || dosch || |
|
| Back to top |
|
 |
|