How Do I Make a Toggle Button

How would I do this?
I want to create a toggle button, so when the button is in
it's default position it says "Sound On" and when clicked again it
says "Sound Off" etc.

Comp. 792 wrote:
> How would I do this?
>
> I want to create a toggle button, so when the button is
in it's default position it says "Sound On" and when clicked again
it says "Sound Off" etc.
There is many ways to achieve that.
You could have movie clip with two frames, button in frame 1
with action go to nextFrame()
and button in second frame with action go to prevFrame(); so
they would toogel each other
back and forth.
You could have one movie clip with single frame and just an
action on timeline frame:
sound1 = new Sound(this);
sound1.attachSound("loopSound");
sound1.start(0, 999);
buttonName.onPress = function() {
(playing=!playing) ? sound1.stop() : sound1.start(0, 999);
(give button instance name "buttonName" and you all set ....
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • How do I make a submit button work on a mobile oriented page?

    How do I make a submit button work on a mobile oriented page?  I have the .html file and the .data file (and one other kind), but it just spins and spins and spins when I try to send the form in (for an absence).  I'd like it to work on all devices.  Help?

    HTML forms don't do anything.  You need a form processing script to gather and process form data.  Which server-side scripts does your web hosting plan support -- php, asp, asp.net, perl?  This will determine which scripts you can use with your form.
    Nancy O.

  • How can we make the save button active in standard toolbar in outout of alv

    Hi experts ,
    I am using factory method to print alv with oops .
    Cancel , Exit and Back button are active by default in Standard tool bar  in output of Report , But Save button is not active , How can i make that save button active .
    Also Pls tell me how i can make editable to the cell in output , 
    My Code is like this :
    cl_salv_table=>factory( IMPORTING r_salv_table = gr_table CHANGING t_table = ispfli ).
      gr_functions = gr_table->get_functions( ).
      gr_functions->set_all( abap_true ).
      gr_display = gr_table->get_display_settings( ).
      gr_display->set_striped_pattern( cl_salv_display_settings=>true ).
      gr_display->set_list_header( 'This is the heading' ).
      gr_columns = gr_table->get_columns( ).
      gr_column ?= gr_columns->get_column( 'CITYTO' ).
      gr_column->set_long_text( 'This is long text' ).
      gr_column->set_medium_text( 'This is med text' ).
      gr_column->set_short_text( 'This is sh' ).
      gr_column ?= gr_columns->get_column( 'CITYFROM' ).
      color-col = '6'.
      color-int = '1'.
      color-inv = '0'.
      gr_column->set_color( color ).
      gr_sorts = gr_table->get_sorts( ).
    *gr_sorts->add_sort( 'CITYTO' ).
      gr_sorts->add_sort( columnname = 'CITYTO' subtotal = abap_true ).
      gr_agg = gr_table->get_aggregations( ).
      gr_agg->add_aggregation( 'DISTANCE' ).
      gr_filter = gr_table->get_filters( ).
      gr_filter->add_filter( columnname = 'CARRID' low = 'DL' ).
      gr_layout = gr_table->get_layout( ).
      gr_layout->set_key( key ).
      key-report = sy-repid.
      gr_layout->set_save_restriction( cl_salv_layout=>restrict_none ).
      gr_table->display( ).
    Rgds,
    Premraj

    Hi,
    1)you need to give the function code to that save in the Function Keys of that screen from the GUI Status.
    2) while filling the field catalog of that field you need to put the        
    wa_fieldcat_edit-edit = c_x.
    i.e use the edit and append to that field catalog internal table.
    for more infomation you can refer to below links:
    problem with alv edit and save
    *Edit* and *Save*  for the selected records in ALV
    solves your problem
    Thanks!!

  • How can I make a giff button have a second state?

    how can I make a giff button have a second state?

    how can I make a giff button have a second state?

  • How can I make the playback buttons of YouTube and other plug-ins bigger since they are so tiny?

    How can I make the playback buttons of YouTube and other plug-ins bigger since they are so tiny in Firefox? I tried some suggestions that dealt with entering "about:config" in a fresh browser, but to no avail. I also downloaded an add-on called "Theme Font & Size Changer", but that didn't work either. So, I am reaching out here as that was a suggestion that another user here offered.

    Ah, yes- that is an ultra high DPI (dots per inch) display. This is a known issue in Flash Player, which Adobe is working on fixing.
    In the mean time, you can get some videos to have normal-sized controls by switching Youtube to the HTML5 video player:
    In Firefox, go to https://www.youtube.com/html5 and click the "Request the HTML5 player" button.

  • How i can make user defined button in standard menu.........

    hi all,
                     please tell me how i can make user defined button in standard menu.........
       regards
    vikas saini

    hi Vikas ,'
    u can do this by using PF status and setting titile .
    follow thw link for help.
    Re: To Change SAP Tiltle into some other title
    Regards,
    Amit

  • How do i make a submit button work on mobile with my PDF

    I do not want to use the Adobe Forms Central. I have a client that wants a PDF on their mobile site to be readable and editable on an iPad. The submit button does not work. Is there a work around or another means to make this work. I realize the PDF form can be emailed via the iPad, but not all the people or "customers" know the email address to send to, so how can i make this work. Any suggestions or anyone else encounter this issue? I do not want to have to ask my client to ask his customers to go purchase software, when they should be able to just download adobe reader to fill out the form and send it like we can do on a regular desktop.

    I created the PDF and at the end placed the submit button with the following actions (screenshots included):
    Setting for the Submit form:
    Submit button at the bottom of the last page of the application:
    Maybe I have it all set up incorrectly, but from all that I have read it works fine on the desktop, but when the iPad is used, the submit button becomes inactive. I thought there could be some work around to make it work other than the "actions" or javascript, but I have also seen other forms that have javascript work on the iPad, so it has me totally confused.
    Thank you.

  • How do i make a clickable "button" that works in the PDF?

    I have a newsletter and want to make a button on a page that when clicked, will open the browser and go to that site. I see how to convert objects to a button and enter the URL in its properties but when I convert to a PDF, the entire object is missing. When converting to PDF, I also make sure that hyperlinks and interactive elements are both checked in the General section. I dont know what else I need to do!

    It is a colored square that was also grouped with a text box. I tried also ungrouping it and just putting the button effect on one or the other and had the same problem. When i look at the PDF, it has nothing there, whatever object i have the button effect applied to is totally deleted. I even tried clicking on the area where it was thinking maybe something was invisible and that didnt do anything either. There are no left over or hidden boxes there that could be covering things either. Im good about working cleanly and organized.
    Ill try doing this with a new document tomorrow and see what happens

  • How do you make a custom button that is Invisible When not selected

    Im just recently switching over to using a mac for authoring. I really like all the features in DVD Studio more than what i was using on a PC for the past 6 years. Which was ulead DVD Workshop 2.
    The only problem im having (For Now) is that i cant make my custom buttons invisible. I made this little black shape thing in photoshop and i want to use it in DVDSP for selecting different tracks.
    I thought all i had to do was just save the black shape with a transparent background in photoshop as a .psd and import it. But that didnt work.
    When i change episodes it just stays black the whole time. I want something that will be invisible when it is not selected.
    please help
    I can send someone my little shape if they can make it a usable button that i can make invisible in dvdsp. I really need to see the layers done with a shape as a button to see how they were able to make it invisible.
    i tried a few tutorials but instead of being invisible all i got was a shape that was stuck white the whole time. this is even when i put the opacity to 0 on normal.
    I want to make this into a button
    http://img694.imageshack.us/i/custonbutton.png/

    Ok, what you want to do is also in the same tutorial. See the section on "Advanced Highlights" (again, avoid the sections on layered menus), You can create an overlay that does have two colors. The bad news is that there will be absolutely no anti-aliasing at all. This means your graphic will be extremely pixelated. This is just the way the DVD specs are set up, so there is no way around it.
    Given that I would highly recommend redesigning your overlay. Take a look at variety of DVDs from Hollywood. See what they are doing in their menus. You can do anything they are doing, but you will notice that the overlay is very simple because of the limited anti-aliasing of DVDs. In all the years that I've been watching DVDs I've only see one DVD use two colors in the overlay, and that was the Jim Carey "The Grinch who Stole Christmas."

  • How do you make a replay button?

    I made a flash movie and all i need to do is make a replay button, but i have no idea how. i am using cs5. my movies goes through multiple scenes so at the last scene i want them to click on the reply button to go to the 1st scene again. however, i have no idea where my actions layer and labels layer go or what action to put into my button.
    i looked around, but every video i find, they seem to only be working in one scene and within one layer too.
    --edit--
    this works just fine:
    http://www.youtube.com/watch?v=k9UjtNxAQN8&NR=1

    assuming no variables/code need to be reset, you can use:
    yourreplaybutton.onRelease=function(){
    _root.gotoAndPlay(1);

  • How do I make a transpose button for just one instrument in a split? (mainstage)

    I work in mainstage 2.2.2 with patches using splits and I want to make an octave button for just one instruments in a patch. Suggestions?
    Benny

    Depending on your virtual instrument you can assign octave to a MIDI control. If you assign all of them to the same control on every track then that would be the effect, but like I said before, it really depends on which instruments you use.

  • How do I make the toolbar buttons bigger

    The toolbar customization allows me to make the toolbar buttons smaller, but it doesn't allow me to make them any larger; I have a large screen and poor vision and have trouble seeing the small buttons and tiny fonts since the firefox 4 upgrade.

    The easiest way to do this is with screen zoom.
    In System Preferences, choose Universal Access.  Make sure Zoom is set to “On,” then click “Options….”  At the bottom of the sheet that slides down, make sure “Use scroll wheel with modifier keys to zoom” is checked, then click the text input box to the right and press the Control key on your keyboard.  You should see a ^ in the box.  Click Done.
    Then when you want to interact with smaller elements on the screen, hold down the Control key and scroll up using the wheel or ball on your mouse, slide one finger up on your Magic Mouse, or slide two fingers up on your trackpad.  The screen will zoom in towards your pointer, and it will be much easier to target small items when zoomed in.
    Hold Control and scroll down to zoom back out.
    Hope that helps!
    —Russ

  • How can I make the FN buttons work with an older notebook?

    Hi,
    I have the Satellite 5200-902 notebook. Unfortunately there is no support for such an "old" notebook like this concerning Windows Vista. Vista runs great on it but the only thing I didn´t make is to make to FN buttons work in Vista.
    Can someone please give me an advice ?
    Thanks

    Hello Danny
    Unfortunately I do not believe you will have success with those buttons. The fact is that Toshiba use self designed utility for functionality of all FN buttons. As you know, old notebook models are not vista supported and you will not be able to find and install any utility for that.
    Sorry but there is nothing to do.

  • How do I make an exit button to close my project on a CD?

    I am currently using Captivate 5 and have published my project to a CD to pass around my workplace, however the JavaScript attached to my EXIT button only works when I host my project on my Intranet.  Is there anyway that I can use code to make the exit button close my project regardless where it published?

    Question/Score slides are bit special. Maybe have a look at this blog post: Buttons on Question/Score Slides in Captivate 6? - Captivate blog

  • How do you make the "Continue" button exit project on quiz attempt results page

    When the project quiz is finished, on the quiz results slide it has a continue button to press, but seems worthless since it just turns into a black screen when finished instead of closing the project like you think it should. Any suggestions on how to make that button close the project?

    Closing projects only works reliably when publishing to EXE format.  Web browser security often prevents HTM/SWF content windows from being closed in the same way.
    Try placing a slide AFTER your quiz results slide so that the Continue button has somewhere to go to.  Then change your Preferences > Project > Start and End > Project End Options > Action to Close Project.  This way, the project is trying to close down naturally, not as a result of clicking a button.  You can make this final slide as short as you like, but a second or so is usually good just in case you have Preferences set to Fade Out On Last Slide.

Maybe you are looking for