Help with volume slider for video player

I'm trying to set up a slider that will adjust the volume of
the video that is playing. I currently have a slider that adjusts
the progress of the video that works just fine. I set my volume
slider up the same way (as far as making it slide and the bounds
it's contained within) but it fails to actually be draggable. I
click on the slider and it disappears from view instead of allowing
me to drag it. It's been a while since I've done any AS work and
I'm struggling to figure out the problem here as everything appears
to be correct. Any help would be greatly appreciated. You can view
a demo
here.
I've attached my source code below.

Nevermind, figured it out. Problem was I'm just retarded with
math.

Similar Messages

  • Need help with Volume Slider

    Hi All,
    I created a graphic to simulate a volume slider. Its working, but i want a movieclip graphic (vol_switch) to follow the mask. It is only following it after i release the mouse. i cannot figure out how to have it follow on the mouse drag without taking precedence over the mask and disabling that. any suggestions?
    I tried the code in bold, but not working.
    stop();
    maskee.cacheAsBitmap = true;
    vol_slider.cacheAsBitmap = true;
    maskee.mask = vol_slider;
    function startDragHandler(evt:MouseEvent):void
    vol_slider.startDrag(false, new Rectangle(2, 0, 298, 0));
    stage.addEventListener(MouseEvent.MOUSE_UP, stopDragHandler);
    vol_switch.x = vol_slider.x
    function stopDragHandler(evt:MouseEvent):void
    vol_slider.stopDrag();
    vol_switch.x = vol_slider.x
    stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragHandler);
    vol_slider.buttonMode = true;
    vol_slider.addEventListener(MouseEvent.MOUSE_DOWN, startDragHandler);
    thank you in advance!!
    - Pat

    Thanks NED!
    that was it... I got the code below working.
    stop();
    maskee.cacheAsBitmap = true;
    vol_slider.cacheAsBitmap = true;
    maskee.mask = vol_slider;
    stage.addEventListener(Event.ENTER_FRAME,myFunction);
    function myFunction(event:Event) {
    vol_switch.x = vol_slider.x;
    function startDragHandler(evt:MouseEvent):void {
    vol_slider.startDrag(false, new Rectangle(2, 0, 298, 0));
    stage.addEventListener(MouseEvent.MOUSE_UP, stopDragHandler);
    function stopDragHandler(evt:MouseEvent):void {
    vol_slider.stopDrag();
    stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragHandler);
    vol_switch.buttonMode = true;
    vol_switch.addEventListener(MouseEvent.MOUSE_DOWN, startDragHandler);

  • Volume control for video playback through Apple TV2

    I am trying to configure the volume settings used on airplay through apple TV2 and a macbook pro and Iphone4 all with most recent updates.
    I am using the apple remote app on my iphone to control the apple tv.
    Whats working:
    Using the pandora app on my iphone through aiplay to the apple tv, I can control the volume using the plus and minus buttons on the side of the iphone for volume control. Very cool and easy.
    Using the apple remote app on my iphone I can control the itunes volume of different speakers by clicking on the airplay icon and using a slider.  Not as cool as using the hard +/- buttons but still works.
    Whats not working:
    Controling volume on appleTV2 through the iphone remote app for video playbacks like netflix, and youtube.
    Why I want this: RIght now I can control most of the multimedia right from my iphone including cranking the music up:) But when I switch over to video(Netlfix, Youtube) I have to get out another remote (stereo reciever) to control the volume. It seems we are so close to being able to control everything off the iphone, the only thing missing is volume control for video playback.
    Is there a setting that can be changed or a solution I havent found?
    Thanks

    Same problem with TV3. HDMI volume output is not adjustable, neither with the original Apple remote nor with any universal. Why ? Every simple settop-box is able to be volume adjusted. And a Mac Mini too ?!!!
    I use a flatscreen TV. it has 3 HDMI inputs and one optical out for the audio going to an amp standing behind it. The sound of the TV is switched to go to the optical out.
    HDMI 1 is connected to the satellite settop box with its  own remote control ( channel +/-, volume +/- etc. ) it work s fine.
    HDMI 2 is connected to the MacMini HDMI out with its own remote control ( channel/music +/-, volume +/- ) it works fine too.
    HDMI 3 was connected to Apple TV3 with its own remote control ( channel/music +/- but no volume ). I sent the TV3 back to Apple.
    What's going wrong in the mind of Apple ? Why is the HDMI volume output of the MacMini adjustable with the Apple remote, and the TV3 not ?
    I want not to discuss, wether a 4th remote control is useful or not. I don't want it. I want to adjust the volume with the originl remote control of the specific unit I use, because I need it anyway. It worked since years, but not with Apple TV3.
    How can we help Apple to open the volume +/- function on their own remote control ?

  • How to create volume slider for flash cs 5 using action script 2.0?

    how to create volume slider for flash cs 5 using action script 2.0?the output should like if user want to hear sound in slow pitch,medium pitch or high pitch(slow to high pitch anything).i have attach this sound to button with using this code:
    stop();
    mySoundBtn.onRelease = function () {
              mySoundC = new Sound(this);
              mySoundC.attachSound("mySoundClip");
              mySoundC.start(0, 10);  //10 represents the number of loops
              gotoAndPlay(2);
    This sound plays till 3-4 scene ahead.
    Can anyone help me?

    Hey thnx Ned.
    this sites are really helpful.but,i have used sound through button.so how it is possible to attavh the link with slider.i have created slider also.
    Below is my slider code for sound.
    onClipEvent (load) {
        mySound1 = new Sound();
        mySound1.loadSound((myScale)+"/"+(myTanpura)+"/"+(myTanpuraSwar)+"/"+(myTanpuraTempo)+".w av", true);
        mySound1.onSoundComplete = function() {
        mySound1.start();
        mySound1.start(0.058,999);
    onClipEvent (enterFrame) {
        downloaded = mySound1.getBytesLoaded();
        total = mySound1.getBytesTotal();
        if (downloaded != total) {
            _root.dl = "You have to buy this software...";
        } else {
            complete = 1;
            _root.dl = "";
        mySound1.setVolume(ratio * 2);
    This code is working for slider.I mean it scrolls the slider.but it dosent make any effect to sound.
    Below is my button code.
    stop();
    mySoundBtn4.onRelease = function () {
              mySoundC = new Sound(this);
              mySoundC.attachSound("mySoundClip4");
              mySoundC.start(0, 300);  //10 represents the number of loops
              gotoAndPlay("play1");
    this is on button's frame.not exactly on button.
    Button and Slider both are on diffrent scene.
    Can you plese help me out?

  • No volume adjustment for video clips

    Hi there!
    I have noticed that the volume adjustment for video clips, set in the options pane of the clip itself, will not be respected by iTunes while playing the video.
    Is there someone else with a similar issue or already with a solution?
    Thanks in advance!

    I've tested all versions since 10.0.1 (for PC) and none work. Versions 10.0.1 and below will allow you to change the volume adjustmant and the equalizer setting for individual videos. No answer from apple!  You can try an older version like I did.

  • Domain blocking for video player

    i creat domain blocking for video player.
    in this file i took 2 scence.
    message in scence1 & video player in scene2.
    running fine scence1, next scence2 coming.
    but not run script file in scene2
    var allowed_site:String = "website.com";
    var domain:String = this.root.loaderInfo.url.split("/")[2];
    if (domain.indexOf(allowed_site) >=0 && domain.indexOf(allowed_site) == (domain.length - allowed_site.length))
              play();// Everything's okay.  Proceed.
    else
              // Nothing's okay.  Go away.
              myText.text = "Sorry for viewing";

    var domain:String = this.root.loaderInfo.url.split("/")[2];
    this means "domain" is the 3rd element when the URL is split with "/" - may be this is not what you intended? Perhaps the below is sufficient
    if(loaderInfo.url.indexOf(allowed_site) > -1)
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • HELP HELP HELP with adminstrator password for pavilion dv7 beats audio

    Hi. I need help with  adminstrator password for pavilion dv7 with window 7. I don't remember with is the  adminstrator password for pavilion dv7 beats audio. Is there anyway you can help me with this? once i enter 3 times is gives me this system disabled code: 52464663.  

    Hi
    Try this Key : 43542265 That should fix your issue 
    Hope this helps.
    ***** Click the KUDOS Thumbs UP (Like) on the left to say 'Thanks'*****
    ****Make it easier for other people to find solutions, by marking my answer “Accept as Solution”&"Kudos"if it solves your problem.****
    -VJ
    Although I am an HP Employee, I am speaking for myself and not for HP.

  • Where do I go to download a plugin for video player on my iPad, Where do I go to download a plugin for video player on my iPad

    Where do I go to download a plugin for video player on my iPad, Where do I go to download a plugin for video player on my iPad

    You can't download plugins. If the built-in Videos app doesn't support the type of video that you want to play, then try searching the App Store for a video or browser app that supports the type of video that you want to play.

  • Help with Simple Applescript for Midipipe

    Hey all, I'm in desperate need of help with some Applescript for use in a program called Midipipe:
    http://web.mac.com/nicowald/SubtleSoft/MidiPipe.html
    I simply require an Applescript for Midipipe that filters out all OFF notes except for the most recently pressed key, or most recently pressed ON note. So for example, when multiple keys have been pressed, only the most recently pressed key will send an OFF note. I hope that is clear enough, i've had some major issues trying to get this work and my last hope is to hit the forums and find some help .. I've posted on some of the audio forums and i'm hoping someone here knows how to code this.
    Thanks so much!! .. Its for an upcomming show next week so i'm hoping someone can get me in the right direction to solving this.
    -Jes

    I try to help, but you'll need to apply your brain cells to get it working with what I've already explained (three times with what I offer below).  Try something like the following (I am renaming your buttons to ch1,ch2,ch3,ch4,ch5,ch6 so that the same functions can be shared by all buttons...
    // this assigns listeners to all 6 buttons
    for(var i:uint=1; i<7; i++){
              this["ch"+String(i)].addEventListener(MouseEvent.CLICK, fl_ClickToSeekToCuePoint);
    // this processes any one of the 6 btns when they are clicked
    function fl_ClickToSeekToCuePoint_1(event:MouseEvent):void
        var btn = event.currentTarget;
        var cuePointInstance:Object = vid.findCuePoint(btn.name);
        vid.seek(cuePointInstance.time);
       resetButtons();    // this makes all buttons go back to normal
        btn.upState = btn.overState; // this makes the clicked button change states
    function resetButtons():void {
         for(var i:uint=1; i<7; i++){
              this["ch"+String(i)].upState =  this["ch"+String(i)].hitTestState;
    For this to work, your buttons need to have the same artwork in the hit frame as they do in the up frame.

  • I still need help with the Dictionary for my Nokia...

    I still need help with the Dictionary for my Nokia 6680...
    Here's the error message I get when trying to open dictionary...
    "Dictionary word information missing. Install word database."
    Can someone please provide me a link the where I could download this dictionary for free?
    Thanks!
    DON'T HIT KIDS... THEY HAVE GUNS NOW.

    oops, im sorry, i didnt realised i've already submitted it
    DON'T HIT KIDS... THEY HAVE GUNS NOW.

  • Help with FMLE Settings for Sports Broadcast

    Hello,
    I am in need of some help tweaking my settings in FMLE.  I put on various sports broadcasts, but one of my clients has limited bandwidth (avg ~2.5-3mbps upload).
    I'd like to keep the output pixel size at 640x360 so that it takes up our entire player and doesn't letter box it, but with the larger video size I sometimes run in to either buffering,or pixelated video depending on how the bandwidth is that particular day.   I'd like to stream between 800k-1000k.
    I am using VP6 codec and using an Osprey Card as my capture device.
    Some of my questions are:
    1) Should I capture my video bigger than 640x360 and have FMLE shrink it, or capture it at the same size I want to output it at?
    2) In the Format advanced encoder settings, What should I set as my keyframe, quality, and datarate window.  Ideally I would like to use keyframes every 1-2 seconds because I work with fast-paced video, but I know that sends a lot of extra data.  Same with Datarate Window.  Can someone help explain the significance of this one.
    3)Under the output panel, I am not currently using the auto adjust function.  Should I enable this when my bandwidth takes a hit?  If so, which is preferable, dropping frames or degrading quality? Any explanation wuold be very helpful.
    4)Should I deinterlace my video?  We have a 3-camera shoot using Canon XL2's and a DataVideo Switcher.  Everything is analog SD.
    I am able to drop by bitrate down to 600K and the stream does not buffer, but it starts to get pixelated.  I would think that 3mbps upload bandwidth is enough to stream at 800k.   Any help adjusting my settings to shapen the imagine would be greatly appreciated.
    Thanks.

    1) Should I capture my video bigger than 640x360 and have FMLE shrink it, or capture it at the same size I want to output it at?
    --> Always capture at the same size, unless the device/card doesn't support that size.
    2) In the Format advanced encoder settings, What should I set as my keyframe, quality, and datarate window.  Ideally I would like to use keyframes every 1-2 seconds because I work with fast-paced video, but I know that sends a lot of extra data.  Same with Datarate Window.  Can someone help explain the significance of this one.
    --> Data rate window is useful for unexpected source data that might not encode well within the specified bit-rates. For example, if you set data rate window to "tiny" and a complex frame (source data) arrives, then encoder will not allocate some extra bits to encode that frame in good quality. But if you set the window to huge, then that complex frame will be encoded in good quality by allocating more bits to it. So, basically, the "delta" around the specified bit-rate increases on moving from "tiny" to "huge" data rate window. Your output bit-rate will vary more in case of "huge" setting.
    3)Under the output panel, I am not currently using the auto adjust function.  Should I enable this when my bandwidth takes a hit?  If so, which is preferable, dropping frames or degrading quality? Any explanation wuold be very helpful.
    --> I can explain the difference between the 2 options and you can experiment with both and stick to one, which gives a better user experience under your bandwidth conditions.
    a. Once the auto-adjust feature triggers, Drop frames option will intelligently drop some frames. As a result of this, you might observe video stalling depending upon the severity of the bandwidth conditions.
    b. Once the auto-adjust feature triggers, Degrade quality option with a min. video bit-rate value of say 500 kbps will try to encode all the frames within this 500 kbps limit. As you are reducing the bit-rate from the original value of say 800 kbps, the quality is bound to degrade. If you check the "preserve per frame quality" option then the encoder will encode >=50% of the frames within the specified bit-rate of 500 kbps. As the no. of frames are less the per frame quality will be better than the previous case. There is a possiblity that even after degrading quality, the buffer is exceeding the given limit then the degrade quality option will automatically switch to the drop frames option.
    4)Should I deinterlace my video?  We have a 3-camera shoot using Canon XL2's and a DataVideo Switcher.  Everything is analog SD.
    --> Deinterlace option is only available for video sizes >= 640x480.
     

  • Fiddling with volume slider and sound quality

    In an attempt to bypass the infamous volume cap that plagues iPods sold in the EU, in the past I fiddled with the volume slider of many of my MP3 tracks, either directly or via third party applications (such as euPod). Afterwards I have changed my mind and reset the slider.
    Later on, I have read a few sources claiming that the above procedure would cause a permanent modification of the MP3 file and/or affect sound quality.
    I am somewhat puzzled by such claims... Am I really better off re-ripping all those tracks? Can anyone point me towards an undisputed “truth” on this matter?

    The third one is a hardware issue: The earbuds jack
    is very loose. Apparently, the iPod automatically
    pauses playback when the headphones are disconnected.
    Hence, I only have to wiggle the connector a bit and
    the nano stops playing. This really would be annoying
    if I were to go jogging with my iPod ...
    hmmm.. that happens to my ipod too and i only got it for christmas. so i was a bit gentle with it.so hence it comes out very easily.
    but whilst reading all the replys i decided to be harsher to my ipod and just push my earbuds in all the way..it worked!! that might be the same for u or i might have just been a bit too forgetfull and thought that my ipod was delicate coz its like.. so preety:)
    lol im in love with my ipod ..
    dont know if this helps..hope it does..
      Windows XP  

  • Help with system upgrade for CS6

    Hello. I am hoping you can give me some advice on what to do (or buy) to improve my video editing system.  I am a bit of novice when it comes to the technical/hardware end of things and I’m having some issues with my current system. 
    I working in Adobe CS6 Master Suite on a Windows 7 Ultimate PC.  I mainly use Premiere Pro, After Effects, Photoshop, and Audition.  I create very complete animations and videos with many layers and effects (via Boris & Red Giant).  I also use Skype to record group video calls (with the program Evaer) for a reality T.V. recap show which I also edit with my Adobe suite.  However I have two main problems.
    When I render out a 20 minute premier pro project (with several HD video layers and effects) it takes almost 13 hours.  It seems like this is very long considering my high end components, and set up.  For example I run ONLY my OS off an SSD.  My programs are on another SSD.  The files I use for the video are on another HDD, and I render to another HDD.  I was told by keeping all the aspects on separate hard drives it would speed everything up.  Is that true?  I also am now reading that rendering to a SSD would speed things up.  Should I consider changing my workflow/hard drive set up that way? 
    My other problem is that when I record my Skype group calls of 4 people (with Evaer) to my SSD the audio is always off when I bring it into Premiere.  I don’t know if this is a problem with Evaer, a codec (it records it as H.264/MPEG-4 AVC Codec.  At 1280 X 720 and 30fps), that SSDs auto compress files, or that my system just cant handle it.  Plus Soundblaster & Nvida both seem to active as audio features on my system I don’t know if that effects anything.  Is there any advice any of you have on this issue as well?  Perhaps another program to record skype or group calls?
    Finally… all that aside.  Considering the work I am doing should I just upgrade my system to a better Mobo and graphics card.  I see a lot of people are recommending a dual processor work station.  If so what is a good motherboard, and processor(s) I should get if I build my own workstation?  I have about $4000.00 I could invest in building one if you think would greatly improve my work flow and render times.  I also have a quadro k5000 on the way, and id like to be able to use the memory I have already.
    I realize I am asking a lot of questions.  I would truly appreciate any help, advice or just a point in the right direction.  I have included my current system specs below incase that helps with any of my questions.  If you have any other questions or need more information just let me know.  Thank you again in advance for any help you can provide.
    -Eric
    MOTHERBOARD:
    Gigabyte G1.Assassin  http://www.gigabyte.com/products/product-page.aspx?pid=3752#ov
    PROCESSOR:
    Intel Core i7 X 980
    5 HARD DRIVES:
    (1) SATA II WD (WD15EADS-00P8B0) 3gb Hard Drive @ 1.5TB
    (2) OCZ SATA AGILITY II SSD drives @120GB: http://www.newegg.com/Product/Product.aspx?Item=N82E16820227543
    (2) Hitachi 6gb SATA III drives @2TB: http://www.newegg.com/Product/Product.aspx?Item=N82E16822145473
    3 DVD/CD/BLUERAY DRIVES:
    (1) SATA DVD DRIVE
    (1) SATA BlueRay Drive
    RAM:
    24GIGs of this ram: http://www.newegg.com/Product/Product.aspx?Item=N82E16820145321
    GRAPHICS:
    (1) NVIDIA GeForce GTX 680  http://www.geforce.com/hardware/desktop-gpus/geforce-gtx-680
    SOUND CARD:
    NONE DEDICATED: But Onboard Creative Soundblaster X-Fi Digital Audio Processor (20K2) with X-Fi Xtreme Fidelity™ and EAX® AHD 5.0™ Technologies built into MoBo.
    PLUS: NVIDIA High Definition Audio
    CONTROLLERS:
    Microsoft ISATAP Adapter
    Intel(R) ICH10R SATA AHCI Controller
    Realtek PCI GBE Family Controller
    Marvell 91xx SATA 6G Controller
    Renesas Electronics USB 3.0 Host Controller
    MY HARD DRIVE SETUP:
    *I also have a network server which I use to back up files, and access files across my other systems. 

    Eric,
    I would hardly call the Quadro card an upgrade to a GTX 680!
    Regarding getting more speed from a faster MB / CPU, since you already have a 6-core rig with 24GB of RAM I would think that any gains you would get would not be that dramatic.
    Check out your cpu usage (Task manager) and see how busy your cores are during a test render. I am guessing that the Boris and / or Red Giant effects could be jumping your projects from gaining the full multi-core capabilities of the Adobe software.
    Regards,
    Jim

  • Elements 8 -help with outputting slide shows to File?

    Can anyone help with saving a slide show in created in Elements to a file on my laptop? I know a WMV file is created, which option should I select to save in UK widescreen format 16:9?

    Bob, thanks for prompt answer.
    I am ultimately going to write the file to a DVD using Windows DVD Maker. Is the 16:9 format the DVD-PAL 720x576 option, or the High 1024x768 option?

  • Help with if statement for a beginner.

    Hello, I’m new to the dev lark and wondered if someone could point me in the right direction.
    I have the following (working!) app that lets users press a few buttons instead of typing console commands (please do not be too critical of it, it’s my first work prog).
    //DBS File send and Receive app 1.0
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.BorderLayout;
    import java.awt.FlowLayout;
    import java.awt.Font;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import java.applet.Applet;
    public class Buttons extends JFrame
         public Buttons()
              super("DBS 2");          
              JTextArea myText = new JTextArea   ("Welcome to the DBS application." +
                                                           "\n" +
                                                           "\n\n1. If you have received an email informing you that the DBS is ready to dowload please press the \"Receive DBS\" button." +
                                                           "\n" +
                                                           "\n1. Once this has been Received successfully please press the \"Prep File\" button." +
                                                           "\n\n2. Once the files have been moved to their appropriate locations, please do the \"Load\" into PAS." +
                                                           "\n\n3. Once the \"Load\" is complete, do the \"Extract\"." +
                                                           "\n\n4. When the \"Extract\" has taken place please press the \"File Shuffle\" button." +
                                                           "\n\n5. When the files have been shuffled, please press the \"Send DBS\" Button." +
                                                           "\n\nJob done." +
                                                           "\n", 20,50);
              JPanel holdAll = new JPanel();
              JPanel topPanel = new JPanel();
              JPanel bottomPanel = new JPanel();
              JPanel middle1 = new JPanel();
              JPanel middle2 = new JPanel();
              JPanel middle3 = new JPanel();
              topPanel.setLayout(new FlowLayout());
              middle1.setLayout(new FlowLayout());
              middle2.setLayout(new FlowLayout());
              middle3.setLayout(new FlowLayout());
              bottomPanel.setLayout(new FlowLayout());
              myText.setBackground(new java.awt.Color(0, 0, 0));     
              myText.setForeground(new java.awt.Color(255,255,255));
              myText.setFont(new java.awt.Font("Times",0, 16));
              myText.setLineWrap(true);
              myText.setWrapStyleWord(true);
              holdAll.setLayout(new BorderLayout());
              topPanel.setBackground(new java.awt.Color(153, 101, 52));
              bottomPanel.setForeground(new java.awt.Color(153, 0, 52));
              holdAll.add(topPanel, BorderLayout.CENTER);
              topPanel.add(myText, BorderLayout.NORTH);
              setSize(700, 600);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              getContentPane().add(holdAll, BorderLayout.CENTER);
              Container c = getContentPane();
              c.setLayout(new FlowLayout());
              final JButton receiveDBS = new JButton("Receive DBS"); //marked as final as it is called in an Inner Class later
              final JButton filePrep = new JButton("Prep File");
              final JButton fileShuffle = new JButton("File Shuffle");
              final JButton sendDBS = new JButton("Send DBS");
              JButton exitButton = new JButton("Exit");
    //          JLabel statusbar = new JLabel("Text here");
              receiveDBS.setFont(new java.awt.Font("Arial", 0, 25));
              filePrep.setFont(new java.awt.Font("Arial", 0, 25));
              fileShuffle.setFont(new java.awt.Font("Arial", 0, 25));
              sendDBS.setFont(new java.awt.Font("Arial", 0, 25));
              exitButton.setBorderPainted ( false );
              exitButton.setMargin( new Insets ( 10, 10, 10, 10 ));
              exitButton.setToolTipText( "EXIT Button" );
              exitButton.setFont(new java.awt.Font("Arial", 0, 20));
              exitButton.setEnabled(true);  //Set to (false) to disable
              exitButton.setForeground(new java.awt.Color(0, 0, 0));
              exitButton.setHorizontalTextPosition(SwingConstants.CENTER); //Don't know what this does
              exitButton.setBounds(10, 30, 90, 50); //Don't know what this does
              exitButton.setBackground(new java.awt.Color(153, 101, 52));     
              topPanel.add(receiveDBS);
              middle1.add(filePrep);
              middle2.add(exitButton);
              middle3.add(fileShuffle);
              bottomPanel.add(sendDBS);
              receiveDBS.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        if (ae.getSource() == receiveDBS);
                        try
                             Runtime.getRuntime().exec("cmd.exe /c start c:\\DBS\\ReceiveDBSfile.bat");
                        catch(Exception e)
                             System.out.println(e.toString());
                             e.printStackTrace();
              filePrep.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        if (ae.getSource() == filePrep);
                        try
                             Runtime.getRuntime().exec("cmd.exe /c start c:\\DBS\\filePrep.bat");
                        catch(Exception e)
                             System.out.println(e.toString());
                             e.printStackTrace();
              exitButton.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        System.exit(0);
              fileShuffle.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        if (ae.getSource() == fileShuffle);
                        try
                             Runtime.getRuntime().exec("cmd.exe /c start c:\\DBS\\fileShuffle.bat");
                        catch(Exception e)
                             System.out.println(e.toString());
                             e.printStackTrace();
              sendDBS.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        if (ae.getSource() == sendDBS);
                        try
                             Runtime.getRuntime().exec("cmd.exe /c start c:\\DBS\\sendDBSFile.bat");
                        catch(Exception e)
                             System.out.println(e.toString());
                             e.printStackTrace();
              c.add(receiveDBS);
              c.add(filePrep);
              c.add(fileShuffle);
              c.add(sendDBS);
              c.add(exitButton);
    //          c.add(statusbar);
         public static void main(String args[])
              Buttons xyz = new Buttons();
              xyz.setVisible(true);
         }What I would like help with is the following…
    I would like output to either a JLabel or JTextArea to appear if a file appears on the network. Something along these lines…
    If file named nststrace*.* is in \\[network path] then output “Download successful, please proceed.”
    btw I have done my best to search this forum for something similar and had no luck, but I am looking forward to Encephalopathic’s answer as he/she has consistently made me laugh with posted responses (in a good way).
    Thanks in advance, Paul.

    Hospital_Apps_Monkey wrote:
    we're starting to get aquainted, but I think "best friend" could take a while as it is still as hard going as I recall, but I will persevere.Heh, it's not so bad! For example, if I had no idea how to test whether a file exists, I would just scan the big list of classes on the left for names that sound like they might include File operations. Hey look, File! Then I'd look at all of File's methods for something that tests whether it exists or not. Hey, exists! Then if I still couldn't figure out how to use it, I'd do a google search on that particular method.

Maybe you are looking for

  • My White Macbook is stuck at the loading screen, and disk utility, safe mode doesn't work either. What should I do?

    I went on vacation a few days ago and in El Salvador, they have this mobile broadband sticks. Well, I was using one until it gave me a network error. After that, it shut down my computer entirely. The first time it happened, I didn't think much of it

  • Print from mobile phone

    How can i print from my smart phone.  App already installed and computer is on

  • How do you reference cells on a different spreadsheet?

    I would like to reference or lookup data in cells on a different spreadsheet/workbook. Is there a way to do this? I do not mean referencing a cell on a sheet within a single spreadsheet/workbook.

  • Slide show photos black

    I am trying to create a slide show from the pictures stored in iPhoto, but some of them do not show up in the slide show. Instead, there is a black screen for the three seconds that the photo should be showing. Others from the same library are fine t

  • TileLayout: First item in a row

    I am using TileLayout on a Spark List.  Is there a way for an individual itemRenderer to know that it is the first item in a row?  Recycling would not be an issue - all the list items are on screen simultaneously.