Solved

Flash Movie Videos Keep Playing

Posted on 2011-09-29
12
343 Views
Last Modified: 2012-08-13
Hello,

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
0
Comment
Question by:hydrazi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
12 Comments
 
LVL 39

Expert Comment

by:blue-genie
ID: 36815237
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?

0
 

Author Comment

by:hydrazi
ID: 36815296
Hi,

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.

0
 
LVL 39

Expert Comment

by:blue-genie
ID: 36815748
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.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:hydrazi
ID: 36815782
I am not sure how to select the FLVPlayback component to change the property.  
0
 
LVL 39

Expert Comment

by:blue-genie
ID: 36815866
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";

etc.
0
 

Author Comment

by:hydrazi
ID: 36816031
I believe I am using classes as I cannot seem to select the FLVPlaybackComponent.  I used the "Import Video" wizard.
0
 
LVL 39

Expert Comment

by:blue-genie
ID: 36816060
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.
0
 

Author Comment

by:hydrazi
ID: 36816126
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:

http://www.mindfireweb.com/boothby2/frontpage7.fla
0
 
LVL 39

Expert Comment

by:blue-genie
ID: 36816164
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


0
 

Author Comment

by:hydrazi
ID: 36816190
No, I am not following a tutorial.  Just bits and pieces of info from different places.
0
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 total points
ID: 36816892
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";

0
 
LVL 39

Expert Comment

by:blue-genie
ID: 36817177
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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to convert pdf file to html file 8 418
Google Chrome pepflashplayer.dll 8 227
how do I install adobe flash player on my ipad Air? 4 61
PDF: Display my cards game? 8 152
This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question