Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-13-2008, 07:58 PM   #1
Registered User
Join Date: Nov 2008
Posts: 1
Default Controlling multiple video clips?

Hi, I am new with actionscript 3 and am having troubles getting my 3 videos to play when buttons are clicked.

I imported my videos to flash to convert them to .flv files.
Then I dragged the "FLVPlayback" to the stage on the first frame and included the following code in the actions window on frame 1:

dvd_btn1.addEventListener(MouseEvent.CLICK, vid1);
dvd_btn2.addEventListener(MouseEvent.CLICK, vid2);
dvd_btn3.addEventListener(MouseEvent.CLICK, vid3);

function vid1(e:Event):void{
vidPlayer.source = "WeddingSD1.flv"

function vid2(e:Event):void{
vidPlayer.source = "WeddingSD2.flv"

function vid3(e:Event):void{
vidPlayer.source = "WeddingSD3.flv"

I would really appreciate any insight!! Thank you!
cass is offline   Reply With Quote

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling video download jst1998 Components 11 12-07-2006 10:16 PM
Multiple Movie Clips on Multiple Layers (Playing Problem) Yasin ActionScript 2.0 8 07-13-2006 09:05 AM
unloading multiple movie clips asprinwizard ActionScript 2.0 2 06-08-2006 02:21 PM
Target multiple clips with a single setInterval--is this possible?????? eabigelow ActionScript 1.0 (and below) 0 08-11-2005 06:03 PM
Problem controlling multiple sounds fr4nck ActionScript 2.0 0 05-27-2005 01:00 PM

All times are GMT. The time now is 05:41 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.