Clicking a Button To Move My Slider!

Hay, Im trying to add a line of code so that when my Button is clicked it displays text in textfield (which works allready) and also moves the slider to correct position, my changer listener etc below
     public void actionPerformed(ActionEvent ae) {
          if (ae.getSource() == btn1) {
               textF1.setText(text1);
          if (ae.getSource() == btn2) {
               textF1.setText(text2);
          if (ae.getSource() == btn3) {
               textF1.setText(text3);
     public void itemStateChanged(ItemEvent e) {
          String text = textF1.getText();
       public class MyChangeAction implements ChangeListener{
              public void stateChanged(ChangeEvent ce){
                int value = sliderLvl.getValue();
                if (value == 1) {
                     String str = "Easy";
                     textF1.setText(str);
                if (value == 2) {
                     String str = "Medium";
                     textF1.setText(str);
                if(value == 3){
                     String str = "Hard";
                     textF1.setText(str);
       }

and also moves the slider to correct position,perhaps you need a slider.setValue(..)

Similar Messages

  • I am having problems viewing a TV episode. It freezes with about 10 minutes left and I can't click the button to move it to see if I can start it from a different point. Is there any way that I can fix this?

    I bought the first season of Doctor Who. When I try to watch the episode, "The Unquiet Dead", it freezes with about 10 minutes left. I can not start it from any other point once it freezes. I was wondering if there is anyway to fix this.

    You can try to clear the cache and cookies to see if that makes a difference:
    <h3>Clearing Cache</h3>
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    <h3>Clearing Cookies</h3>
    #Go to Firefox > Tools > Privacy > Remove Individual Cookies
    #Find the site (ebay.com) that's having problems and clear all cookies.
    #Restart Firefox
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.

  • I inserted a HTML5 video in page, when I test it in a Browser, I see the poster image and controls, But when I click play button the video goes white, slider moves like its playing, but just white picture. There was no audio included in video. Please help

    I inserted a HTML5 video in page, when I test it in a Browser, I see the poster image and controls, But when I click play button the video goes white, slider moves like its playing, but just white picture. There was no audio included in video. Please help

    Without a link, it's anybody's guess.
    It could be a problem the video rendering itself.  Which software did you use?
    Did you export to the 3 file types -- MP4, OGG and WEBM to support all browsers?
    Does your web server support those 3 MIME file types?
    Nancy O.

  • How can I pause a slide until the user clicks a button?

    I wish to pause a slide until the user clicks a button (which I've created out of a Smartshape). The thing is that I haven't added a click box object over the smartshape but have only set the smartshape properties to "Use as Button". If I were to add a clickbox object, I would get a "Pause project until user clicks" in the options section of the properties. However in using a smartshape as a button, I cannot find this option. I am using Captivate 6. Seems strange as I would have expected to see the same checkbox option even if I were to use a smartshape as a button but I dont. Can't someone help me and let me know if I'm missing something.
    Of course I could use a clickbox over my smartshape to achieve what I want, but I want to avoid thsi for two reason:
    I want to avoid adding another object when I dont need it.
    My smartshape is a right arrow (indicating "Begin"), and I dont want a squarish click box sitting on top of a triangle because that just shows the hand pointer even if the cursor isn't exactly over the arrow button because it enter the clickbox area.
    Thanks,
    Sean

    Select the Smart Shape button , go to Properties > Timing accordion > Pause After and set the number of seconds from the beginning of the slide for it to pause.

  • Movie contains buttons with keys assigned. Both work. If you click a button first, keys wont work.

    I created a project with a menu of 7 buttons. The client has the option to click the buttons to view a different scene or use keyboard events. Each scene has been assigned a number when using the keyboard. The mouse and keyboard events function successfully. But I noticed if I start the movie by using the mouse, then the keyboard events will not work any more. One of the keys is important since it is the only way to play frame to frame. Anybody have a clue why this happens?It is as if though I have to tell the client,  don't click the buttons or the keys won't work.
    Below are actionscripts for the movie. I added actionscript for each scene for the keyboard events. In the menu, the movieclip contains the actionscript for the mouse events.
    Scene 1:
    import flash.events.KeyboardEvent:
    stage.addEventListener(KeyboardEvent.KEY_UP, onKeyEvent1);
    function onKeyEvent1(e:KeyboardEvent):void {
    var character:String=String.fromCharCode(e.charCode);
    if (e.keyCode==72) {
      gotoAndStop(1,"master");
    if (e.charCode==49) {
      gotoAndPlay(1,"Distributor");
    if (e.charCode==50) {
      gotoAndPlay(1,"Mirka");
    if (e.charCode==51) {
      gotoAndPlay(1,"Farm");
    Menu Movieclips:
    master.addEventListener(MouseEvent.CLICK, mouseDownHandler1);
    function mouseDownHandler1(event:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"master");
    distribute.addEventListener(MouseEvent.CLICK, mouseDownHandler2);
    function mouseDownHandler2(event:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Distributor");
    health.addEventListener(MouseEvent.CLICK, mouseDownHandler3);
    function mouseDownHandler3(event:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Mirka");
    mirka.addEventListener(MouseEvent.CLICK, mouseDownHandler4);
    function mouseDownHandler4(event:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Farm");
    transaction.addEventListener(MouseEvent.CLICK, mouseDownHandler5);
    function mouseDownHandler5(event:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Check2");
    transaction2.addEventListener(MouseEvent.CLICK, mouseDownHandler6);
    function mouseDownHandler6(event:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Check3");
    sceneA.addEventListener(MouseEvent.CLICK, mouseDownHandler7);
    function mouseDownHandler7(e:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Scene2");
    sceneB.addEventListener(MouseEvent.CLICK, mouseDownHandler8);
    function mouseDownHandler8(e:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Scene1");

    In addition to my question, I'm opening the SWF file in a utility program IrfanView which the client uses for offsite purposes. Therefore, the SWF works fine in Flashplayer 10. I can crossover using mouse and keyboard events. But in IrfanView, the program will not allow me to crossover mouse and keyboard events.

  • Play movie by clicking a button/shape

    Hi
    How to play movie by clicking a button/shape? The only option I found in keynote is playing movie by clicking the movie rectangle.
    Thanks
    zlf

    I am using TimerTask in my JSP page to print some message:
    <%
                      Timer timer = new Timer();
                      TimerTask monitorTimerTask = new Monitor();
                      timer.schedule(monitorTimerTask,1000,1000);
    %>
    <%!
         private class Monitor extends TimerTask{
              int i = 0;
              public void run(){
                       System.out.println("TimerTask ["+i+"]");
                       ++i;
    %>And to stop the TimerTask daemon, I created the following function:
    <%!
         public void stopTimerTask(){
              if(monitorTimerTask != null){
                   System.out.println("Stopping the Timer Task");
                   monitorTimerTask.cancel();
    %>Now, I am trying to call funtion "stopTimerTask()" by click of a button in JSP page. The function is being called BUT the daemon keeps on printing the text message to the console. It means the above function is not able to stop the TimerTask.
    What to do?
    Please help!
    Thanks,
    sumit

  • Clicking a button set to open url is skipping pause in slide

    Hey there! I must be missing something that's right under my nose... I have two transparent buttons over images on a slide who's actions are set to Open URL or file with infinite attempts. I also am using back and next arrows with click boxes to continue and go back. The click box over the next arrow is set to pause the project until it is clicked. What is happening, though, is that when I play the project, clicking the buttons not only open the URL in a new window, as set, they also cause the project to continue to the next slide.
    What am I doing wrong? Am I going about this the wrong way?
    Thanks for your help!

    Hi there
    Look at the properties where you direct the link to a new window. There is an option there that governs whether a pause is released or not.
    Cheers... Rick

  • My Firefox interface is messed up. When I hover over or click a button it becomes all pixlated, the blocks move around, and lines appear around the buttons.

    When I hover over or click a button on the tool bar it becomes messed up. Blocks, or more like pixels, appear over the buttons. They are white and they move around. Little black lines appear around the buttons too. I tried uninstalling and re-downloading Firefox, a full reset, etc. Nothing has worked so far. To see pictures of the problem use this URL (it brings you to Imgur): http://imgur.com/a/LXHQg

    hello, try updating your graphics driver - this should be the right link for your system: http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=22375

  • My iphone 4s doesnt have the slide option to turn on mirror on apple tv...after ive double clicked the button and scrolled left twice, i see the symbol and click into it but theres no mirror option??

    my iphone 4s doesnt have the slide option to turn on mirror on apple tv...after ive double clicked the button and scrolled left twice, i see the symbol and click into it but theres no mirror option??

    is the latests ios version installed?
    if so then are you 100% sure you have an iphone4s because if you have an iphone4 it would be absent because Iphone4 don't support it
    mind you iphone4 are still being sold

  • Movie clip slide show

    Hello! I am placing the slide show template from Flash CS3
    inside of a movie clip, but it is not working! I’ve exhausted
    any ideas I had during the past 8 hrs! I’ve even tried using
    other slide shows, but no luck! What I am trying to do is, once a
    button is clicked from the home page (the site has only 1 scene), a
    movie clip slides in, holding a slide show… Is this possible?
    Would you be able to direct me to a tutorial or give me an idea of
    what I am doing wrong?
    I really appreciate your help!
    Thanks!

    I wasn't sure what was meant with the mention of a slideshow
    template, but I finally figured it out I think... When you want to
    open a new file in Flash CS3, the offerings at the far right
    involve a number of templates, one of which is a slideshow
    template. I opened it up, managed to open the timeline, and I don't
    think it involves any kind of classes, none I could find anyways,
    and it appears to be written in AS2.
    So I imagine it would be useable as is. It's a basic frame by
    frame piece, no dynamic loading. And it otherwise has all the
    controls (buttons) that one would need, which could save some time
    if tyou wanted to try to create your own.
    It's possible there's just some error in how it was brought
    in or something... I would just copy its maintimeline frames into a
    movieclip in the new file and try to work it from there. One
    potential problem is that because it is written in AS2, and it uses
    _root references, it may not feel at home when it's placed in a
    movieclip on its own. So you probably need to look into the code
    and make some adjustments for that kind of stuff.
    If the main file is an AS3 file, then you will need to change
    the slideshow to AS3 as well if it's gonna live in the same file.
    You could save it as a separate swf in AS2 and load it into an AS3
    file during run time, but you still may need to modify the _root
    references to be _parent types.

  • Different mouse clicks & speed up mouse movements?

    Hello,
    Does Adobe Captivate recognise different mouse clicks better
    to say if it can record on RMB LMB and MMB clicks different
    effects? For example I wish to record Software Simulation project
    were on different mouse clicks (RMB, LMB, MMB) would have custom
    effects like "OrangeRing" for RMB " "GreenRing" for LMB etc?
    One more question plz: I found Published movie mouse
    movements are very slow can I make it move more fast without
    editing every slide separatelly?
    Thanks
    Ton

    Hello Tony,
    Whilst Captivate does recognize different mouse clicks (in so
    much as the application will capture a right-click menu) you cannot
    specify what type of mouse effect the application will use when you
    capture.
    What you can do is change the mouse click effect post
    capture. To do this and with a just captured project open carry out
    these steps:
    1. Select the slide that has a mouse pointer where you would
    like need to show a right-click action.
    2. Choose Slide > Mouse > Properties...
    3. In the Mouse Properties dialog make sure that the option
    "show mouse click" is selected and then show either the color or
    the custom effect you would like to use to represent the
    right-click operation.
    Naturally, at the very start of your movie/project you would
    need to inform the learner that each time they see the one of the
    effect you want them to right-click. You could also include some
    audio as well which would be important if you need to adhere to
    accessibility standards.
    In regard to your second question, in most cases you will
    find that you get the best result if you adjust the mouse timing
    using the Timeline.
    That said if you own a copy of Adobe Captivate 2 you can
    change the mouse Display and Appear After settings globally via the
    Mouse Properties dialog. Personally, for mouse movement I would not
    recommend this. Anyway here are the steps to carry that out.
    1. Select any slide that has a mouse pointer present.
    2. Choose Slide > Mouse > Properties...
    3. Click the Timing tab
    4. Change the Display time and Appear After values
    5. Click the Settings button
    6. Choose the appropriate options from both Which properties
    and which slide categories
    7. Click OK.
    Note : You can also show the Mouse properties dialog by left
    clicking on mouse icon on any of the slides in the Filmstrip
    Regards,
    Mark

  • Double click Bookmarks button to open the Library window directly ("Show All Bookmarks" function)

    I have a number of folders in bookmarks, and I edit it frequently by clicking "Show All Bookmarks" and opening a Library.
    Previously, after clicking Bookmarks button, "Show All Bookmarks" appeared on top of the list, and now it's at the bottom.
    Please, add double click function on Bookmarks button so that it opens Library window directly.

    See also:
    *[[/questions/997080]] Is it possible to move "show all bookmarks" in the bookmark-menu to the top?

  • I have several imap accounts and want to click one button to empty all junk mail at once. How can I do this?

    I currently run Apple Mail on Lion with several IMAP acocunts... I know that there is a right-click option to remove "all deleted" messages  but what If I wanted to do the same for all messages marked at junk in all accounts.  It's really a pain to have to click on each account, select all the junk in the junk folder, press delete over and over.. and then right-click and select "Erase Deleted Items"    Why the heck can't they just have "Erase All Spam Items" also... ??   Or how about "Erase all SPAM and DELETED ITEMS from ALL accounts"   ????

    I found the solution and here's how to correct things:
    Apple Mail
    Mail has a feature, accessible from the Mailbox Behaviors (or Special Mailboxes) tab of the Accounts preferences, that can automatically delete old spam messages from the Junk mailbox. You can use this feature if you tell SpamSieve to put spam messages in the Junk mailbox instead of the Spam mailbox.
    (Note: If you do this, be careful not to use the Junk and Not Junk buttons that will appear in Mail when the Junk mailbox is active; you should always use the SpamSieve - Train as Good and SpamSieve - Train as Spam commands instead. You can use the Customize Toolbar… command in Mail’s View menu to remove the Junk button from the toolbar. Also, if you select a message that SpamSieve has classified as spam, Mail will show a banner saying that you marked it as junk. Ignore this.)
    Make sure that Mail knows which mailbox is your Junk mailbox by selecting it and choosing Mailbox ‣ Use This Mailbox For ‣ Junk.
    To tell SpamSieve to use the Junk mailbox, open Mail’s Preferences window and click on Junk Mail. Make sure that Enable junk mail filtering is checked. Select Move it to the Junk mailbox. If Mail asks whether you want to move all the messages to the Junk mailbox, say No. Next, select Perform custom actions. Then click theAdvanced… button and edit the rule such that the conditions don’t match any messages. For example, use these two conditions:
    Message is addressed to my Full Name
    Message is not addressed to my Full Name
    and set it to If all of the following conditions are met. Click OK to close the sheet. Do not make any further changes to the Junk Mail preferences.
    Go to the Rules section of Mail’s preferences and change the SpamSieve rule to move the messages to the Junk mailbox instead of the Spam mailbox. Finally, chooseSpamSieve - Change Settings from Mail’s Message menu and, when prompted, say that the name of your spam mailbox is Junk.

  • Problems with Flash CC user interface. Mainly I can't seem to click certain buttons and input fields on various modal windows. (eg. Scale and Rotate, Sound Properties,

    Hi there,
    I'm wondering if anyone else is experiencing issues like this. I'm basically finding that a bunch of different buttons, fields, and tabs do not respond to my clicks. This seems to be spread out throughout the application.
    I've had to work around most of this by using the tab and arrow keys to navigate around modal buttons and fields... but it is a bit of a pain.
    There are some parts of the interface that can't be accessed via tabs and arrow keys... for example the ActionScript Tab on the Sound Properties window... there's no way to get to that... and clicking the tab itself does nothing, although I can see that the rollover state of the tab is activated.
    I've ended up having to run Flash CS6 in order to set the export classes of sound files and that's a bigger pain.
    Similar UI issues exist with other things... for example the color picker (eye dropper) seems to pick colors near, but not directly under itself.
    I'll be honest... I'm running on Windows 7... via boot camp... on a Mac Book Pro with retina display... so the issues could stem from this combination. However... Flash CS6 does not have any of these issues... so I can only think that it is a Flash CC issue.
    I appreciate any input you can provide. ( Although the obvious "run it on OSX instead" or "just use CS6" aren't the kinds of answers I'm looking for. I have my reasons for the setup. )
    Thanks.
    Cheerfully,
                           - JR

    Thank you for the suggestion. I've just done the uninstall, clean, re-install process.
    No luck.
    Even the first-run modal that comes up to choose Sync Settings has the same problem. All three buttons will go to a rollover state if I mouse over them... however, none of them are clickable. The only clickable item is the OS window close button. If I use the TAB key to move from button to button it moves the yellow button selector accordingly. If I press the ENTER key it responds correctly. For some reason clicking is not working on these parts of the Flash CC UI.
    *Note: This does not happen with all of the Flash CC UI elements... only some key ones (Save As - Confirm Overwrite, Symbol Properties and Swap Symbol dialog boxes also do not work with clicks, only with the keyboard navigation). Really a pain in the posterior.
    Again, I'm wondering if this is an issue particular to my hardware/os combination but I have had no luck finding answers online.
    Any other possible solutions out there?

  • How do I create a play button for movie clip using AS3

    Hello.
    Bit new to this and have been searching the adobe forums and google. I am trying to create a button that will play an imported MovieClip.
    I have a movie clip that I've imported into it's own layer (Layer1) Frame 1.  I've given the MovieClip an instance name of foundationMovie.
    I've created a button and have that on its own layer(Layer2) above layer1, it is also in Frame 1.
    I've added a
    stop (); action to layer2
    The video is not set to autoplay.
    I want the video to start playing when the viewer clicks the button.  I know I've got to put some kind of event listener using AS3 in my timeline somewhere.
    I've found some code and I've been trying to work with it.  I'm sure I've mutilated it beyond usability but this is what I've got.
    stop ();
    player.addEventListener(MouseEvent.CLICK,play);
    function play(event:MouseEvent)
    gotoAndPlay("foundationMovie");
    If someone could point me the right direction or help me with my code I would really appreciate it.  Thanks.

    First, you need to clear up what you are working with... a movieclip and a video are usually entirely different things.
    Next, your code may get you started on your way with some changes.   You shouldn't use "play" as a function name due to there already being a play() method/function in Flash.
    If the movieclip is a movieclip and has an instance name of "foundationMovie", and your button has an instance name of "player" then the following adjusted code would normally work...
    stop ();
    player.addEventListener(MouseEvent.CLICK,playMovie);
    function playMovie(event:MouseEvent)
         foundationMovie.play();

Maybe you are looking for

  • How do I stop iTunes from automatically opening .wav files

    I recently arranged to have voicemails to a business number sent to me in the form of .wav files that I check at the end of the day from my home PC. I was disappointed to learn that when I open the email and double click the .wav file it automaticall

  • Integration server v/s application server

    I finally got the soademo to work. Can any one help me understand the difference between integration server and application server. what to deploy to the application server and what to register to esb? thanks

  • Delegated Admin web application only requests first 100 accounts?

    Hi, - Sun Java System Messenger Express 6.2 - Delegated Administrator 6.3-0.09 built Sep 6, 2005 Is this true that the Delegated Admin (DA) web application only requests first 100 accounts? Once logged in to DA web application, we only see "Retrieved

  • TS1741 Remote option doesn't show up

    My iTunes library shows up but not the actual remote control option

  • Equipment Total Count

    Hi, We are using SAP BI 7.0 The requirement is to count the "TOTAL number of EQUIPMENTS" in a plant with reference to "EQUIPMENT TYPE" to report the MTBF against each equipment type. I have created a CKF, created a formula variable and using the repl