Flash Movie Videos Keep Playing


I am a newbie at Flash.  I am helping a customer add a Flash banner with 3 videos to their website.  Basically, users should be able to click on a button and go to play a specific video.  Now, when I publish it and post it to the site, the skin is missing for the video player AND if you do not wait for the video to finish it will switch videos without killing the sound for the previous video.  

Any help would be greatly appreciated!  Help me, Obi Wans.

Here is the link:  http://www.mindfireweb.com/boothby2
Who is Participating?
blue-genieConnect With a Mentor Commented:
Ok, first of all, you are NOT using classes.
not sure if you're wanting to eventually learn flash development or if you're just wanting to do a once off thing but, first of all, you're NOT using classes.

if you want to understand classes - google Document Class in Flash AS3.
then if you go to frame 440 that's where you stop with the four buttons and the flvplayback.
change your file as follows
give your flvplayback an instance name. an instance name allows you to target it.
(layer 4) - then you don't need all the subsequent frames after this.
you said you were using gotoandPlay code - i can't find that but change your code so that each time they click on of those thumbnails it  changes the content of the flvcomponent.

for that you'll use addEventListener and the Mouse click event.

again if you dont' know how to do that,familiarise yourself with event handlers - there are hundreds of tutorials online.
to make things easier i'd suggest you for now start by creating 4 different functions for each button, when you get that right, you can look at using case statements.

psuedocode ...
buttonname.addEventListener(MouseEvent.Click, functionName);

function functionName(e:MouseEvent):void
    yourflvcomponentinstancename.content = "yourflvfilename";

if you want it to automatically start playing a video when it reaches that frame simply put the code on the frame as well as follows
  yourflvcomponentinstancename.content = "yourflvfilename";

hey some info please.
1. you're mentioning a skin so i'm guessing you're using the flv playback component?
2. regarding the skin, make sure the swf file for the skin when published is in the same location as the swf file (the name depends on the options you selected)
3. you're using AS2/AS3?
4. what is the code you're currently using to move to the next video.
5. are you using a new component for each video or simply swapping out the content?

hydraziAuthor Commented:

1.  Yes, using the FLVplayback component.
2.  I believe that it is, but I will check to be sure!
3.  It is ActionScript 3
4.  Currently, I am just adding a GoToAndPLay.  
5.  Using a new component for each video.  Is that part of the issue?  If so, I am unsure how to use scripting to switch video.

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

the flvplayback component has a content property.

yourplaybackname.content = "flvfilename.flv";

so instead of gotoAndPlay, simply swapping the  content when you do the switch should do the trick.
hydraziAuthor Commented:
I am not sure how to select the FLVPlayback component to change the property.  
no just put the playback on the stage (single key frame)

then give it an instance name lets say myFLVPlayer

then I'm assuming you're not using classes etc and putting code directly on the time line so in the frame you can set the first video

myFLVPlayer.content = "firstvideo.flv";

then where you're currently saying gotoAndStop change it to myFLVPlayer.content=  "secondvideo.flv";

hydraziAuthor Commented:
I believe I am using classes as I cannot seem to select the FLVPlaybackComponent.  I used the "Import Video" wizard.
ok dude, if you're not sure what you're doing then you'll need to upload your files.

leave the flv files for now, let's start with the fla and your document class.
hydraziAuthor Commented:
Many thanks!  I will upload it.  Please be kind, this is my first flash project. :)
I believe it is a little over-encumbered.  I tried uploading it, but it said it was not an allowed extension, so I put it here:

ok its a cs5 file , i'll have to look at it later, don't have cs5 on this machine.
i'm assuming you're following a tutorial of sorts?
it would tell you what steps to follow etc,  - if you are post the link

hydraziAuthor Commented:
No, I am not following a tutorial.  Just bits and pieces of info from different places.
take it you're sorted then? if not please shout.
unlike some other people on this platform, I don't believe in doing the work for someone, i rather try and help with getting someone to understand and learn, that's how I learned,
i'm also terrible at explaining thing (my bf will vouch for that) - so please let me know if you need further assistance.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.