2 videos...1 set of controls

I'm sort of a new user to Flash and what I'm looking to do is
run 2 seperate videos at the same time with both videos being
controlled by one set of buttons. So for instance, when I hit the
play button it would start both videos playing at the same time and
then if I hit the stop button both videos would stop at the same
point. I figure that this could be done using ActionScript but
everything I've tried hasn't worked at all. Any ideas?

ManitobaMan,
> I know Beausejour, I've been there a few times,
> nice place.
It's a small place, for sure.
Been over 20 years since I lived
there, but I do have fond memories.
> I'm born and raised in Winnipeg myself.
That was always The Big City to me.
> Anyways, thanks for helping me out with this.
Sure thing.
> I was using the FLVPlayback Component to try to
> make things work but really whatever will work best
> because I've got the video in .flv format and in .wmv
> format as well.
If you want to play an external video file, you'll have to
use the FLV
version. Flash imports quite a few different video file
formats for
internal playback, but that means the weight of the SWF
itself will be
affected by the embedded video. Personally, I prefer a tiny
SWF that
progressively downloads an FLV ... quicker experience overall
for the user.
Nothing wrong with the FLVPlayback Component, but keep a few
things in
mind: a) this particular Component requires Flash Player 8,
which may or
may not bother you; b) this Component stands on its own
(which is the point
of Components, of course) -- that is, its buttons are already
"wired up," so
while it *may* be possible to re-wire them for two different
videos, my
hunch is that it's easier to develop your own buttons
altogether.
> I did notice that when I played both videos at once, one
> video was choppy and the audio was cutting in and out.
> I don't know if that's because my PC isn't good enough
> for that or that having 2 FLVPlayback Components is
> too draining on the software.
Ehh, could be either. A lot depends on the size of your
videos, too, as
well as framerate, bitrate, and so on. Generally speaking,
the larger of
any facet, the harder your computer must work to display the
video.
> I'm mainly concerned with just figuring out how to get 2
> videos going with one set of controls.
Here's a general, all purpose approach to Components and all
objects in
Flash: just about everything in ActionScript can be referred
to as an
object. Objects are defined by their namesake classes. For
example, movie
clips are defined by the MovieClip class; dynamic and input
text fields are
defined by the TextField class; FLVPlayback instances are
defined by the
FLVPlayback class, and so on. This also applies to non-visual
objects like
strings, dates, arrays -- the whole kaboodle.
Classes are essentially an Owner's Manual for the object in
question.
Things the object can do are called methods; things the
object reacts to are
called events; characteristics the object has are called
properties. You'll
see one or more of these categories in practically every
class entry.
See this article for additional information along these
lines ...
http://www.quip.net/blog/2006/flash/actionscript-20/ojects-building-blocks
... now, for better or worse, not all classes are organized
the same way in
the documentation. FLVPlayback is one of those. The class
entry for this
object is located in the Components Language Reference and
doesn't list
methods, events, and properties on one convenient page.
Search the documentation on the phrase "Method summary for
the
FLVPlayback class" and you'll find the methods page. Among
these methods --
remember, these are things the object can *do* -- are
FLVPlayback.play(),
FLVPlayback.pause(), and more.
All you really need to do is drag two instance of the
FLVPlayback
Component to the Stage, set the contentPath parameter of each
instance to an
external FLV and give each instance an instance name via the
Property
inspector. Once each has a unique name, you simple "call each
by name," so
to speak, and tell it what to do.
You could create a button of your own -- just an ordinary
button symbol
(which happens to be defined by the Button class) -- and wire
up the button
to invoke the FLVPlayback.play() method of each instance ...
myButton.onRelease = function() {
myVideo1.play();
myVideo2.play();
It's that simple. Of course, both of those FLVPlayback
instances will
have their own play/pause buttons, which may get confusing.
For this
reason, I would recommend you simply use a Video object as
described in this
article here ...
http://www.quip.net/blog/2006/flash/how-to-load-external-video
Video objects (defined by the Video class) are fed by a
combination of
NetConnetion and NetStream class instances. It's a bit more
involved than
using the FLVPlayback class, but you'll see that it
ultimately comes down to
naming your instance and invoking the relevant method (or
event, or
property) of the object.
I realize this may seem intimidating if you haven't done
much
programming, but read through the above articles (not very
long, apiece) and
see what you can accomplish. If you have additional
questions, bring 'em
here and I'll be happy to continue helping you.
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • Controlling multiple videos with one set of controls

    I'm currently working on a project that allows the user to view multiple videos at one time. The videos will be exactly the same length and video format/type. I'd like to let the user use just one set of controls to view each video. Is this possible? If so, does anyone have any code samples?
    I also want the video to not start when the application starts. I've got that done, but I'd also like the first panel of the video to be displayed. How can I do that?
    Thanks!

    PS, I'd also prefer for the controls to be detatched from any of the viewers, if possible. Thanks!

  • Crackling/substandard sound in flash videos (YouTube etc) regardless of video quality setting.

    Hi all,
    I hope you can help! Apologies if this is in the wrong forum, I'm struggling to find the best place to put this.
    1. a summary of your issue
    Crackling/substandard sound in flash videos (YouTube etc) regardless of video quality setting.
    2. the type of computer you use—Mac or PC?
    Desktop PC.
    Windows 7 Ultimate 64-bit, all updates installed.
    3. steps you've already taken to troubleshoot
    The problem occurs after installing Adobe Flash Player 15 Plugin to any browser (I mainly use FireFox). It's listed as Adobe Flash Player 15 ActiveX when I installed it for Internet Explorer.
    Before installing it, I can hear the videos fine but I am limited to a maximum of 720p quality on YouTube.
    I removed my sound and graphics drivers, after restart Windows 7 decides it will install them again but as the generic/universal ones. No change.
    I've heard that because I have the Windows Aero theme activated, I need to disable hardware acceleration - tried this in various ways:
    a) Generic PnP monitor Troubleshoot tab - Change Settings button is greyed out (whether or not I have the real/generic/universal graphics drivers installed). Can't find a way through nVidia control panel to do this either.
    b) Disabled hardware acceleration in FireFox - no change.
    c) Found on your forum here that I can go to a page which will check my Flash version, in theory I could right-click it, hit Settings and disable hardware acceleration there - no "Settings" option in right-click menu. Seems the page has changed.
    I can't seem to find a way to interface with Flash directly to disable hardware accelerattion - if this is indeed the solution.
    Regardless of Windows Aero theme, I've got it on basic theme now and still the same problem.
    I recently reformatted and re-installed my PC, it was working fine before I did this (maybe I had an old Flash release installed?).
    I'm at my wit's end... please help!

    Sorry, it's all sorted now. After re-installing the sound drivers, decided to tinker with the settings one by one. I had my Creative sound card in Game Mode, thus it was assuming 2.1 speakers aka headphones. Put it in Entertainment Mode and it recognised all the 5.1 speakers for flash videos. Doh!

  • Need video recording app with control over microphone sensitivity

    Everybody is talking about sharing video's but it looks like nobody is making those video's while I hear nobody talking about Recording video's.
    I record now and then at concerts. I have the problem that while I record an video the incomming sound is to loud. When you replay the recorded movie the sound is sounding like the distorition effects of an gitar, to loud.
    Does anybody know an video recording app for the iPhone 3GS where I can adjust the strongness of the incomming sound?
    Regards,
    Ton van Leeuwen
    The Netherlands

    The audio was likely distorted bacause the phone is designed for recording local voice sounds, not loud constant concert sounds, I'd guess that any audio compressor or automatic gain control present in the phone simply gets overwhelmed by the lack of normal speech patters present in a loud concert. I dont think a third party microphone would help.
    The video orientationis set when you press record, so if you hold the phone in portrait when you start recording and then turn it to landscape and make the video, when you play this back on a computer, the video will be on it's side. The phone does not autoswitch while recording. The difference between the two modes is pretty obvious but if you are striggling to work it out, shoot a couple of brief tests in each mode and watch them on your computer, not on the iphone.

  • Is there a way to set the control panel in assistive touch?

    I have a survivor case on my iPhone 5 and it is difficult to pull up the control panel from the bottom. Is there a way to set the control panel to pop up through assistive touch? If so how?

    Is there a way to set the FOLDERS window in Adobe Bridge as a Column view like in Mac OSX Finder?
    No, but it is very nice idea, add it to the feature request page:
    http://feedback.photoshop.com/photoshop_family/

  • Trying to embed a wmv video in website to work with Firefox. Video works but the controls appear then disappear. How can I get the cotnrols to show and stay. Works in all other browsers.

    Here's the code I used:
    <pre><nowiki><p class="bodytext"><OBJECT id='mediaPlayer' width="320" height="240" class="imageright"
    classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
    codebase='http://activex.microsoft.com/activex/controls/ mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
    standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
    <param name='fileName' value="video.wmv">
    <param name='animationatStart' value='true'>
    <param name='transparentatStart' value='true'>
    <param name='autoStart' value='true'>
    <param name='ShowControls' value='true'>
    <param name='ShowDisplay' value='false'>
    <param name='ShowStatusBar' value='false'>
    <param name='loop' value='false'>
    <EMBED type='application/x-mplayer2'
    pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
    id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='1'
    bgcolor='black' ShowControls='true' showtracker='1'
    ShowDisplay='1' showstatusbar='1' videoborder3d='0' width="320" height="240"
    src="video.wmv" autostart='1' designtimesp='5311' loop='0'>
    </EMBED></nowiki></pre>
    Also tried showcontrols=1

    I had this exact problem too. Unlike IE, firefox wasn't scaling the video to fit into the height and width I defined. As a result the controls were disappearing off the bottom.
    I found that by making the height of the window 50px larger than the videos native height, the controls were displayed permenantly. Since the other browsers scale the video to fit the window, this solution works for them all.

  • Just installed ios 7 on my 4s, and I have two issues: 1) control centre: the music controls do not work, only the volume adjust slider works; 2) in mail, where do you find the setting to control how many messages you want your inbox to retain?

    Just installed ios 7 on my 4s, and I have two issues: 1) control centre: the music controls do not work, only the volume adjust slider works; 2) in mail, where do you find the setting to control how many messages you want your inbox to retain?

    Same problem here on my 4s: Control center music controls do not work.
    Since this thread has two issues, I'm going to start a new one with only the music control bug. Topic: iOS 7 Control Center Music Controls Not Working On iPhone 4s

  • Can I set parental control on firefox for a specific user only?

    I'm using windows 7 and firefox 18.0.2. On my PC I have my Admin account and my kids account. Now as they're coming to an age they're needing Internet access for projects and so on, I wonder if I can set parental control on firefox (by add-on?) as I have on windows, so that whenthey log on their account, firefox will only allow access to what I have allowed. That is, limit internet usage ONLY on their account, while I'll still be able to use firefox unrestrictedly. I don't want to have them use another browser that I' m not as familiar with just so I can set parental control on everything on that browser. Any ideas?

    If you mean you want to block certain sites by some parental control software, you can try a web filter to block sites by URL or keywords.
    https://support.mozilla.org/zh-CN/questions/938721?esab=a&s=&r=1&as=s
    * <sub>'''edit'''</sub> or link [/questions/938721] <sub> this type of link should match viewers locale -J99</sub><br /> <sub>used ''<nowiki>[/questions/938721]</nowiki>'' , omit ''/zh-CN'' </sub>

  • When installing Adobe Captivate I get msg: unable to set-up control panel

    When installing Adobe Captivate I get msg: unable to set-up control panel..Does anyone know how to resolve?

    Hi,
    It seems that Captivate is not downloaded completely. Only one file is downloaded(i.e. .exe) , .7z file is missing.  You can follow the below instructions to download Captivate 7 via direct links.
    In order to download Adobe Captivate 7.0 Windows English, open the link mentioned below and sign in with your Adobe ID and password.
    https://www.adobe.com/cfusion/tdrc/index.cfm?product=captivate
    Once you sign In with your Adobe Id and password, you will be redirected to Adobe Captivate 7.0 download page, Do not click on download. Kindly stay on that page and paste the below two links on the Trail Page Address Bar  one by one and save the files on your system at same location:
    http://trials3.adobe.com/AdobeProducts/CPTV/7/win32/Captivate_7_LS21.7z
    http://trials3.adobe.com/AdobeProducts/CPTV/7/win32/Captivate_7_LS21.exe
    When both the files finish downloading, then run the second file (.exe) which will start extracting the first file (.7z) and will start installing Adobe Captivate 7.0 on your computer.
    Regards,
    Mayank

  • Unable to set parental controls on itunes b/c my username and password are not correct.  How do I reset them?  There is no prompt to give any clues what they are.

    unable to set parental controls on Itunes b/c my user name and password got rejected.  How do I reset them or figure out my username and password?

    This is a user to user support forum.  We are all iphone users just like you.
    You are not addressing Apple here at all.
    This is an odd way to ask your fellow iphone users for help. Berating oterh users will not help you.
    "it's too fragile"
    No it is not.  i have never damaged one, nor has anyone I know.
    " U loose data when Ur phone is locked"
    No you don't.  Why do you think this?
    "and there is no customer support!!!  "
    Wrong yet again.  Apple has an 800 number and they have many retail stores and they have support articles that you can access using the search bar. Or you can contact them throgh express lane online
    "but I will go back with Blackberry "
    Please do.
    Good ridance

  • Setting parental controls in an iTunes movie?

    I know you can set parental controls in the iTunes program generally, but is there a way to tweak an indivusal movie parental controls? Or add parental controls to a single movie or TV show, or music song? I could not find this option when displaying a movies "info". I'd think iTunes would add a parental control settings the user can modify..?

    Try going here and emailing the store about the issue
    http://www.apple.com/support/itunes/musicstore/download/

  • I am streaming live video (CCTV set up) to iPod Touch. Is it possible to playback info (i.e. using iPod as a DVR?)

    I am streaming live video (CCTV set up) to iPod Touch. Is it possible to playback info (i.e. using iPod as a DVR?)

    I know of no way.

  • How does the concurrent 'Set cost controls' in cost management work?

    Hi,
    Can anyone tell me the use of 'Set cost contols'?
    Thanks in advance!
    Thanks,
    Kaveri

    The "Set cost controls" concurrent program is used in R12 to mass update the cost control fields on item costs.
    The cost control region is found by going to Cost management >Item costs > Item Costs
    The concurrent program lets you specify which items /costs should be updated by using various parameters such as cost type, item range, category range etc.
    And you can specify the source for the new cost control data and the new value for the fields.
    Hope this answers your question,
    Sandeep Gandhi

  • What is an ideal Mac video production set-up?

    G’day y’all,
    I am running the Final Cut Pro Studio version.
    I have done some basic Avid editing professionally over the past several years and purchased my PowerBook G4 to produce some family videos.
    I have been producing personal videos on my PowerBook for 2 years using Final Cut and are beginning to find some limitations like when I’m trying to have several video clips flying across the screen in Motion.
    What is an ideal Mac hardware video production set-up, given that I don’t have a huge budget? And what soft ware should I have in addition to Final Cut Pro Studio and Photoshop?
    Cheers and thanx m8s.
    PowerBook G4   Mac OS X (10.4.8)   2 GB DDR SDRAM 1 250 GB LaCie, 1 500 GB LaCie

    -MacPro...best model you can afford.
    -2.5GB RAM
    -250GB system drive.
    -500GB SATA drives installed internally...as many as you need. 750GB if you need more room. Go internal before you go external.
    -Two Apple Cinema Displays or Two Dell 2407 24" monitors. Dells are cheaper, but the Apple one would be good for:
    -Matrox MXO. This, in conjunction with an Apple Cinema Display means that you can look at your footage on the ACD at BROADCAST QUALITY. Yes, you can turn your ACD into a broadcast monitor. Huge plus.
    -Mackie 1402 Mixer. Just something to monitor the audio from a few sources.
    -M-Audio speakers (studio monitors)
    Final Cut Studio
    Photoshop if you intend on using stills.
    After Effects, Shake...if you plan on compositing.
    That should cover it.
    Shane

  • Setting Opacity control to Pressure in CS4

    I'm using Wacom Bamboo and trying to set opacity control to pressure when painting with Brush tool. I can set the Size Control to Pressure under "Shape Dynamics", but can't find Opacity Control. I found "Opacity Jitter", but that doesn't seem to be the same as opacity

    Thanks Scott - Just checking Other Dynamics works great for Opacity. I see that now.
    R

Maybe you are looking for

  • I have problem with iTunes 7. I can not conneth

    Hello.. In yesterday a have format my Mac computer, an i have install all again. So will i conneth to iTunes Store?? I have generate a new password, is not work. Help.. Me.... I come fra Denmark, so me lananuge its not the best.

  • Is there a way to change the size of a menu background?

    I would like to use my own photo as a menu background and reduce it's size to less than the full size of the menu. The photo selection sticks over a save and re-open but the size of the object reverts to the full menu size when the project is reloade

  • How to store Sent msgs on my Mac

    I've created Sent folders under "on my Mac" in Mail, but when I click on Use this Mailbox for, all the options are grayed out. My sent msgs are currently being stored on the server, but I will run out of room there over the long haul and want to keep

  • Prestage Content from SCCM2007 PCK files

    Hi everybody, I am in a migration scenario from SCCM 2007 to 2012. I have a full infrascructure with 2007, and saved pck-files from a backup of an old 2007 Server in Asia Additional, I have a 2012 Infrastructure with a Primary Site in Germany an a se

  • Purchasing Apps with Paypal

    Hi, I'm from Malaysia. I have a Blackberry 9720. I keep getting an error message (Error ID 559044) from Blackberry World when I try to purchase using Paypal. I can use my Paypal account elsewhere. There's nothing wrong with my account setup, that I c