Button control

Hello,
I have created buttons which enable me to scroll vertically
on an external text file. When I click on the buttons it scrolls
fine but when I hold down on them they don't work. I tried the
MouseDown event which didn't work and couldn't find any other event
that was suitable. Any help is much appreciated. Here is the code
below. I'm using CS3 Professional 9.0 on a imac.
var external_txt:TextField = new TextField();
var externalReq:URLRequest = new URLRequest("
http://www.spitfirestudios.net/gamut/gamut.txt");
var externalLoad:URLLoader = new URLLoader();
externalLoad.load(externalReq);
externalLoad.addEventListener(Event.COMPLETE, textReady);
up_btn.addEventListener(MouseEvent.CLICK, scrollUp);
down_btn.addEventListener(MouseEvent.CLICK, scrollDown);
external_txt.x = 299;
external_txt.y = 323;
external_txt.border = false;
external_txt.width = 448.9;
external_txt.height = 180;
external_txt.wordWrap = true;
addChild(external_txt);
function textReady(event:Event):void
external_txt.text = event.target.data;
function scrollUp(event:MouseEvent):void
external_txt.scrollV --;
function scrollDown(event:MouseEvent):void
external_txt.scrollV ++;
thanks,
[email protected]

Not within the same menu, no. What you could do is make the very first button on the audio stream list auto activate and go on to a script which reads the settings you have just made then sends you on to an identical looking menu which itself jumps you directly to the appropriate subtitle selection button.
What the viewer sees is that they choose an audio button and then navigate to the first subtitle button they auto activate the button and jump on to a duplicate menu, but land on the appropriate subtitle selector.
It's messy, and probably best avoided... but possible to do if you really need to.

Similar Messages

  • Using CheckBox / Radio-Button Control in Dialog Program

    Dear Friends,
    Please let me know the way to use check-box / radio-button control in dialog programs. Where & how to define them & write the logic.
    If possible provide a small example.
    Regards,
    Alok.

    Hi,
    goto tcode abapdocu.. abap user dialogs - screens-processing screens you will get examples for all --pushbutt6ons radiobutton checkboxes everything
    <b>here is a sample code for you</b>
    PROGRAM demo_dynpro_check_radio .
    DATA: radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,
          field1(10) TYPE c, field2(10) TYPE c, field3(10) TYPE c,
          box TYPE c.
    DATA: ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    CALL SCREEN 100.
    MODULE user_command_0100 INPUT.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'RADIO'.
          IF radio1 = 'X'.
            field1 = 'Selected!'.
            CLEAR: field2, field3.
          ELSEIF radio2 = 'X'.
            field2 = 'Selected!'.
            CLEAR: field1, field3.
          ELSEIF radio3 = 'X'.
            field3 = 'Selected!'.
            CLEAR: field1, field2.
          ENDIF.
        WHEN 'CANCEL'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.
    <b>flow logic:</b>
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
      MODULE user_command_0100.
    regards,
    pankaj singh.
    <i><b>
    reward if helpful</b></i>

  • How do I disable one item in a radio buttons control at run time

    I need to disable one item in a radio buttons control. At design time
    this is possible, but how do I do this at run time? Is this possible? I
    cannot find a property per item

    Use the property "Controls[ ]" - this gives you an array with references of each single button in the radio buttons control. These you can access with property nodes too.
    Hope this helps.
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How do I make a radio button control change automatically with time?

    Hello everybody
    I have a radio button selection with 4 options (Line A, B, C, D) which controls a number of valves depending on which line is sampled. Right now I have to do this selection manually but the proccess requires that each line is sampled for 15 seconds.
    Is there a way to do this automatically, meaning when I press a button (e.x. START) radio selection goes to Line A, after 15 seconds to line B, after 15 seconds to Line C, after 15 seconds to line B, after 15 seconds to Line D, and then from the beginnining to line A, B, etc..., until I press the stop button.
    Any help is appreciated
    Thanks for your time

    Hi evdo,
    'tst' is right. The "Radio Buttons" control from the "Boolean" palette
    is basically an Enum. You can add or remove elements as you want and
    only one element can be TRUE at any time (just as the Enum only can
    have one selected item at any time). Just copy and paste the radio
    buttons within the frame to add more choices/elements.
    I created a small example that takes tst's example a little further. I
    implemented the four choices and added an Event Structure for better
    timing. Give it a try and let me know what you think, thanks.
    Have fun!
    Message Edited by Philip C. on 07-06-2005 10:05 PM
    - Philip Courtois, Thinkbot Solutions
    Attachments:
    Radiogaga.PNG ‏14 KB
    Radiogaga.vi ‏25 KB

  • How can I deactivate the button control?

    By mistake I´have activate the button control in my iphone and now I can´t even unlock it . I don't know how to deactivate it .

    You are going to have to explain what is happening when you try to unlock your phone. I do not understand what you mean by "button control".

  • How can i add hardware button control

    dear
    sir/madam
    i am using htc explorer mobile smart phone and port the Firefox OS to my mobile its working fine and not pick upping the network for Sim card always searching for network and home key only working how can i add menu,back and search buttons to hardware controls file please help me and video also crashed help me and Bluetooth, Wi-Fi ,GPS,Sensor,sound are working well please help me to fix the abow problems Thank you sorry for my bad English

    Hi,
    Sorry for the late reply, I don't know the answer to your question about hardware button control. But, some developer questions are being asked & answered here:
    http://stackoverflow.com/questions/tagged/firefox-os
    Maybe you can find a developer there who can help you out?
    Thanks for porting Firefox OS!!
    Regards,
    Michelle Luna

  • How do I stop button controls responding to both mouse down and mouse up?

    Hi,
    On my front panel I have several buttons which are all set to 'Switch Until Release' type. I've come across the problem where they sometimes stick on even when the mouse has been released (see earlier posting) and this has been confimed by NI as a LV bug.
    To get round this I manually write FALSE to the button controls once my LV prog has read them but I now find that some of the buttons having been cleared go true again on the release of the mouse button as though the mouse release can also set them true.
    Is there any way I can stop them responding to the mouse release?
    Thanks,
    Dave.

    Dave123 wrote:
    I'd like to use latch when released buttons but I'm using local variables of the buttons so I can read the current values of them in different parts of the program.
    So to simulate latch when released I've written my program to set to FALSE the state of the button once it has read that it has been pressed.
    This sounds like a very bad idea if other parts of the code need to react on the state of a pseudo-latch action boolean. There is simply no guarantee that other parts of the code even see the transition due to possible race conditions. What if the boolean gets reset before the other code can read it? What if the other code reads the true multiple times because it loops faster than 200ms?
    How many other places do you possibly need to read it? Maybe you can use latch action combined with an event structure to cause parallel code to react to the value change? (see attached example, LabVIEW 7.0). Maybe you should rethink your code, there might be better alternatives.
    Dave123 wrote:
    Keep the toggle button held down for a second or two, release it and you should see the button goes true again (and is promptly cleared in the case). Why does a mouse button release set the button to true?
    Easy! In this case, you should use "switch when pressed" as mechanical action. You use switch until released, which confuses LabVIEW.
    Switch when released does two things: (1) It switches to true as long as you keep the button pressed. (2) When you release the button, it switches to off. Now, if your code inverts the switch via a local variable while it is still pressed, the release tries to invert the current state and turns it off-to-on again by mistake.
    This might be a slight flaw (bug) in the LabVIEW code. Releasing the button should force a FALSE to the button, not an iversion of the current state.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ButtonForceClearExampleMOD.vi ‏26 KB

  • Using button control in BEx Analyzer to filter on multiple items

    I'm trying to create a button control in BEx Analyzer to duplicate the following command:
    DATA_PROVIDER=*&FILTER_IOBJNM_1=<StructureID>&FILTER_IOBJNM_2=<StructureID>&FILTER_IOBJNM_3=<StructureID>&FILTER_VALUE_1=<Item1>&FILTER_VALUE_2=<Item2>&FILTER_VALUE_3=<Item3>&MULTI=X
    where <StructureID> is the technical name (the 25-character alphanumberic string) of the structure I want to filter on, and the three items within the structure have technical names <Item1>, <Item2>, and <Item3>. This command works fine on the web, but when I set up a button in BEx Analyzer with the following attributes, it only filters on one item:
    Name             Index  Value
    CMD              1         SET_FILTER
    DATA_PROVIDER    1         DP_1
    FILTER_IOBJNM    1       <StructureID>
    FILTER_VALUE     1       <Item1>
    CMD              2         SET_FILTER
    DATA_PROVIDER    2         DP_1
    FILTER_IOBJNM    2       <StructureID>
    FILTER_VALUE     2       <Item2>
    CMD              3         SET_FILTER
    DATA_PROVIDER    3         DP_1
    FILTER_IOBJNM    3       <StructureID>
    FILTER_VALUE     3       <Item3>
    Any ideas?
    Thanks,
    Jason

    Jason,
    thank you for the information. This morning I found out myself by checking the 3.5 Web API Reference which basically offers everything I need.
    To facilitate data entry you could try using a reference command area somewhere in your excel sheet where you can easily enter the command data and also can make use of copy/paste. I tried this and it works fine - much better than to enter the values in the dialogue.
    Best regards
    Thomas

  • Lower volume button control not working help?

    Lower volume button control not working help?

    If you only restored from backup, restore to factory defaults/new iPod.  If you then still have the problem it is likely a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • One button controlling multiple buttons as3

    I'm trying to follow a tutorial I found online for a randomly selected image without using an XML or AS file.
    The problem is that I want to generate more than just one section, like generate an image from one group, and an image from another group, and etc etc. That's something I can do but there'd need to be a button for each group. It's not exactly horrible, but I was hoping to just have a "one button controls everything". So is there a basic code that will say "When this master button is clicked, all these other buttons are clicked"?
    Here's the tutorial for reference.
    Flash Tutorial: Generate a Random Frame with AS3 -HD- - YouTube

    One approach is to have the event handler of the button call all of the other button's event handler functions, passing its received event argument to them.  If you were to name the other functions in some numeric  pattern then you could loop thru them rather than writing each one out separately.
    Another approach would be to have one single function that works for all the buttons where you test which button was clicked and decide which commands to execute.

  • Is "AutoPostback" property valid for Radio button control in RCDC

    Hi,
    I have been trying to add "Autopostback" property to a radio button control, but it doesnt seem to be working.
    Below is the code:
    <my:Control
    my:Name="Activation"
    my:TypeName="UocSimpleRadioButton"
    my:Caption="{Binding
    Source=schema, Path=ADActivation.DisplayName}"
    my:Description="{Binding
    Source=schema, Path=ADActivation.Description}"
    my:AutoPostback="true"
    my:RightsLevel="{Binding
    Source=rights, Path=ADActivation}">
    <my:Properties>
    <my:Property
    my:Name="TrueText"
    my:Value="ADActive"/>
    <my:Property
    my:Name="FalseText"
    my:Value="NotActive"/><my:Property
    my:Name="SelectedItem"
    my:Value="{Binding
    Source=object, Path=ADActivation, Mode=TwoWay}" /></my:Properties></my:Control>
    Dolly

    Dolly,
    What do you expect the AutoPostback property to do?
    AutoPostback: This is an optional,
    Boolean-type attribute. The default value is false.
    If set to false, refreshing
    the page may not refresh the control. For information about AutoPostback,
    look for the Microsoft ASP.NET UI control property of the same name. -- FIM RCDC Reference
    According to MSDN:
    Set this property to true if the server needs to capture the selection as soon as it is made. For example, other controls on the Web page can be automatically filled depending on the user's selection from a list
    control.
    This property can be used to allow automatic population of other controls on the Web page based on a user's selection from a list.
    Blain Checkley illustrates its use with his blog post: http://identityminded.wordpress.com/2011/10/14/fim2010-semi-dynamic-rcdc-operations/
    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

  • Button control to make checkbox checked

    I have a button control, not a submit button, that when pressed, I want a checkbox to get checked. Is this possible? I set up a workflow and it will change the checkbox property to "true" or "yes", and will outline the checkbox in red,
    but will not check it. If this is not possible, can the button control be disabled after it is clicked once?

    You will need JavaScript to accomplish this. Something like
    <input type="button" onclick="CheckBox(checkboxId)" value="Check" />
    <script type="text/javascript">
    function CheckBox(checkBoxId)
    document.getelementById(checkBoxId).checked = true;
    </script>
    Nikolas Charlebois-Laprade Microsoft Certified Professional & Software Engineer http://nikcharlebois.com

  • Does the LabVIEW TestStand UI button control support multi-line captions?

    I would like the caption of a LabVIEW TestStand UI button control to wrap onto two lines (multi-line) instead of being confined to a single line.  For example, instead of the caption looking like:
    Loop On Selected Steps...
    I would like it to appear like this:
    Loop On Selected
            Steps...
    I have plenty of vertical space on my TestStand operator interface but my horizontal space is limited, so it would be preferrable to grow buttons vertically instead of horizontally.

    Upon further investigation, it looks like this is a bug (or a "feature change") in TestStand 4.0.  The TestStand 3.5 UI button control automatically placed text on succesive lines if the width of the button decreased below the size required to accomodate all of the caption text on a single line.  However, this is no longer the case in TestStand 4.0.  TestStand 4.0 does not place text on successive lines when the button size decreases below the threshold.  I cannot figure out any way to place button captions on multiple lines using the 4.0 UI button control, including setting the caption programmatically with a carriage return inserted between successive text lines.

  • How to delete an Item using Button control in InfoPath 2010

    Dear Experts
    In my SharePoint 2010 List, I have added and using below controls instead of Ribbons
    1) Save (button control)
    2) Cancel (button control)
    3) Delete (button control)
    My requirement is when i click on Delete (button control) in edit form then particular item has to be deleted
    How to achieve this
    Regards
    Santosh

    Hi Santosh,
    Please check this 
    http://www.bizsupportonline.net/browserforms/delete-sharepoint-list-items-object-model-infopath-browser-form.htm
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Hide and make visible a group of buttons controls or indicators

    HI
    well, may be sound weird?, but I need to hide and make visible a group of
    buttons, controls, indicator, graphs etc.
    the pint is that I have for example like 20 buttons, and depending of the
    actions of the users I need to hide them or not, I know I can do it one by one
    with the visible property, but I was wondering if there is a possibility to do
    it but all together, with the same property, like put all the buttons or control inside a
    subpanel and then hide the subpanel? I tried this but didn´t work
    any suggestions?
    thanks!!!!

    You can put all of your controls in a cluster. The reference to the cluster - Property node> Controls [] - will be an array of references. From there you can control the visibility of each control.
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell
    Attachments:
    cluster ctrls visible1.vi ‏12 KB

  • Button Controlling Motion Tweens

    I am wanting to create a button that, when pressed, will make an image move along the X axis.  However, I want several other buttons to move that object along the X-axis to other locations regardless of where it is currently.
    I want the object to move from one spot to a second spot, stop, and then move from that new location to either its previous spot or a new spot.
    Basically having multiple buttons controlling where 1 or more image goes.  I have seen banners that will scroll horizontally when you click different Menu buttons.  The banner slides along the X-axis and stops to reveal the name of the new page on the banner (i.e. Home, About Us, Contact Us, etc.).  When another menu button is pressed, the banner slides again to reveal the new title page name (ie. Home, etc).
    I am coming from a Graphic Designer point of view and not a very good scripter.  Please assume I know nothing about scripting (I don't understand the language at all but I know how to set it up properly).

    For the example you offered, that control scheme can be realized using Actionscript tweening of the x property of the movieclip(s).  Each tween would be triggered by a button and would start the object moving from its current x position and move it to a predefined x position.
    Here is a simple example using the AS3 built-in Tween class of Flash.  You will get better performance using a third party tweening engine such as TweenLite.  The buttons are movieclips with instance names of "btn0" and "btn300" and the movieclip being movied is named "mc".  So if you create these three objects and assign them the names, the following should make the mc move when you click the buttons.
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    var tw:Tween; // declare the tween
    mc.x = 150; // some starting position
    // assign values that the mc will move to for each button
    btn0.finalX = 0;
    btn300.finalX = 300;
    // assign event listeners for the buttons, they can use the same handler function
    btn0.addEventListener(MouseEvent.CLICK, moveMC);
    btn300.addEventListener(MouseEvent.CLICK, moveMC);
    function moveMC(evt:MouseEvent):void {
         var finalX:Number = evt.currentTarget.finalX;
         tw = new Tween(mc, "x", Regular.easeOut, mc.x, finalX, 1, true );
    If you have questions about the code, try researching it using the Flash help documentation.  Everything is explained there and learning to the help documents is as imprtant as anything else.
    The tweening could also be done using other code-based approaches, but what's shown above is probably the sdimpolest to get you started.

Maybe you are looking for