?
Solved

Flash Movie Videos Keep Playing

Posted on 2011-09-29
12
Medium Priority
?
351 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
Industry Leaders: 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
Suggested Courses

764 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