According to the text value, can I stop specific sounds universally?

I have a button where it changes the value of a text field to 0 or 100 (vice versa). The text field called CheckSound function


function CheckSound():void
 {
 if(options_mc.onoff_txt.text == "100")
 {
 tchannel = theme.play(0,9999);
 }
 else if(options_mc.onoff_txt.text == "0")
 {
tchannel.stop();
 }
 }

The sound stops and plays. When I go to another scene in the game, tchannel stops playing and rchannel starts to play. This is what I want. My question is how can I stop tchannel and rchannel if the value is 0. And if the value is 100, how can I make playable tchannel and rchannel to their images right?

Set the text property to a variable, and check the value of this variable after going to another scene.

Tags: Adobe Animate

Similar Questions

  • How can I get the text value of an element XML in MXML?

    Hello


    I have the following XML loaded into a variable of XML type:

    Properties of <>
    the RIMpro data collector Configuration < comment > < / comment >
    < key="server.pear.username"/ entry >
    < key = "enter server.apple.retry.times" > 5 < / entry >
    < Enter key = "rdc.proxy.host" > http://192.168.1.2:8080 < / Entry >

    /Properties >

    I can easily get the key attribute displayed in a DataGridColumn by setting the dataProvider my variable and the data in "@key" area  But I don't know how to get the text value in a second column...  Is it possible or do I have to change my XML to something like this:

    Properties of <>
    the RIMpro data collector Configuration < comment > < / comment >
    < key="server.pear.username"/ entry >
    < key = "enter server.apple.retry.times" value = "5" > < / entry > "
    < Enter key = "rdc.proxy.host" value ="
    http://192.168.1.2:8080"""> < / entry > "

    /Properties >

    Thanks in advance.


    Marc

    Yes, you'd better change your XML structure to fit the internal mechanisms of the DataGrid.

    As model dataField require each element of the grid line to have a named property to display, otherwise you will be forced to overcome this model to the custom help labelFunction for the particular column that will implement your custom actions on how to extract the appropriate data for this column of the grid line item. It will be much more complicated that just reorganize your xml structure.

  • Can Financial Reporting get the text value of the Capex planning Module?

    Hi all


    I read in the documentation that financial information can display Annotation using the planning information as a data connection source. Now, EN 9.3.1 may display the text value of the Capex Module?
    I tried to get the value of text, but it shows #error...

    Thank you

    Hello
    try to use the adapter to details of Planning in Financial Reporting Studio.
    Kind regards

  • have place the sim card into the computer according to the instructions, but can't make it work

    Original title: sim set up

    I have acquired a dell inspiron duo and have place the sim card in the back according to the instructions, but can't make it work

    Hello

    You can buy a WWAN card to use a SIM card. You should also call your mobile service provider and check with them.

    Similar question has already spoken here: http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/how-to-make-the-sim-card-work-in-studio-15-dell/4507610a-e4aa-4bfd-9e94-ed71a60ad550

  • How to find the absolute position of the end of the text, it can be one or more,

    How to find the absolute position of the end of the text, it can be one or more,

    in the position I need to inseart the image of the size of the font that it friendly ordinary view sequiential - image as custom image

    Please help us find the position of the text, and even for a function more, I demanded the conclusion the text length

    I want to do we will be right and the other will be left how I can I align is their way to find the width of the label or text?

    Thank you

    This should help align your labels layouts, depending on what you did you do could go with absolute layout, docking station or stack (allows you to align the top to bottom or left to right)

    I'm not too sure that everything, however, to determine the length of the text, I would think that you could store the text in a string and then somehow programmatically count each letter & do return a result... not exactly on how to do it but it's an idea

  • When I Center the text, I can't get back to the aligned left for the rest of the text in WordPad.

    * Original title: centering in Word Pad

    I don't know how to Center in Word Pad; However, when I Center the text, I can't get back to the aligned left for the rest of the text.  Everything I typed after that a title is also centered.  If I've left this text, the title goes back to the left margin.  Any info out there?

    Hello

    -Is confined to a specific document?

    This problem may be due to the rule of pointer.

    I suggest you to drag the rule of pointer to the left and see if it helps.

    Keep us informed on the status of the issue.

  • I have a form in which the text area can be developed to accept more text, but the text does not appear on the printed copy.  How can I get the text to print?

    I have a form in which the text area can be developed to accept more text, but the text does not appear on the printed copy.  How can I get the text to print?

    Hi robinm6200,

    Make sure that you have selected 'Document and annotations' under 'Comments and forms' when printing.

    Kind regards

    Nicos

  • When I Change the size of a Widget/Menu of the text box, the other objects move according to it. How can I stop?

    Example: There is an area of text and objects below it. I add more text and the text box size becomes larger.

    Then the objects below move downwards.

    How can I stop from happening?

    Hi LP700CR7,

    This is a default behavior, I'm afraid, it is not possible to stop this behavior at this point in the Muse.

  • According to the selection value hide/show page list item

    Hi all
    I have a list of selection P_X (with Char, varchar2, number values).
    When I select the tank it must display P_Max (text box), if I select the number he must display two textboxes (P_Text1, P_text2).
    By default it should not display any page except P_X element.
    How can I achieve this by creating dynamic actions.
    I tried a dynamic textbox P_max display action when I click the Char value in the select list (P_X)

    After presenting the process:
    Start
    : p_x: = "Char";
    end;

    Condition:
    Value of exp1 = exp2
    Exp1:P_X
    EXP2:char

    dynamic action:
    event: change
    Select the type: article
    product (s): p_x
    condition: equals
    value: Char
    Real action: see question: p_max

    But it is not workking correctly.

    Hi Karthikeyan,

    Sorry for the late reply, stuck with another work.

    Now you check in your example I changed it accordingly. According to me, he answered your question, check in.

    Kind regards
    Mini

    Brand responses appropriately.

  • Search for the text value data store

    Hello, I have a PDO of data to store, and I would like to search for a text value in a quantity of measure.  In each of my test series, there is a quantity of measure with the name TCNAME and stores the cell name of test in the string format.  I would like to get all the TCNAMEs that contain "TC4" for example.  Currently, I have to load TCNAME in the portal and display it in an array of string.

    Any ideas how I can do this?

    I assume you are using a PUMA testbed that stores this kind of goods on a unique value chain chains.

    There is no direct search method, so I guess that a script is the only solution we can offer.

    Datafinder you can search for the minimum and maximum of a channel. That would be too much work in the store of ASAM.

    "PDO / cpp"
    protected tcnameMQs: set tcnameMQs = store. GetElementList ("MeasurementQuantity", "name = TCNAME", true)
    protected tcnameMQ: for each tcnameMQ in tcnameMQs
    MsgBox tcnameMq.References ("local_columns"). Elements (1). Properties ("values"). Value
    Next

    ' AOP5 / Corba
    protected tcnameLCs: set tcnameLCs = store. GetElementList ("LocalColumn", "measurement_quantity.name = TCNAME", true)
    protected tcnameLC: for each tcnameLC in tcnameLCs
    MsgBox tcnameLC.Properties ("values"). Value
    Next

    I have added the example which should be the shortest path from my point of view. In AOP5, you can search LocalColumn and spend BA which is less overhead.

    It is perhaps a good idea to post-processing of the data base and crush the decription "Test name" by

    "The test cell name == NAME. You can search not post-processed by Searchin' for.

    protected tcnameMQs: set tcnameMQs = store. GetElementList ("MeasurementQuantity", "description = name of the test cell", true)
    protected tcnameMQ: for each tcnameMQ in tcnameMQs
    tcnameMQ.Properties ("description"). Value = "name of the test cell is" & tcnameMq.References ("local_columns"). Elements (1). Properties ("values"). Value
    Next
    Store.Save

    Thereafter, you would be able to search for it.

    Greetings

    Andreas

  • Replace the text values

    Hello.

    I have problem with replacement of values in text strings and I can't find a solution.

    I have two or three channels filled with only 2 values: OK and NOK. How can I replace these values with for example 1 for OK and 0 for NOK?

    This replacement is necessary for drawing a chart. I can't draw the chart because the tiara do not accept the values of text like a ladder with the current values.

    Thanks in advance :-)

    Hello Domin,

    replaces a substring in a text with another text can be done with VBS 'Replace' function

    The execution of a function on an entire channel can be made using ChnCalculate.

    Combine the two and you get:

    ("ChnCalculate ("ch ()"" statistics text"" "") = Replace (ch ("' statistics text" "" '), '' value' ', "" LLL"") ")

    It is a channel in the DIAdem example data set. The above command executes the command "Replace" for each value of the text string "text of statistics". He replaces each occurrence of 'value' by 'LLL '.

    Hope this helps

    Andreas

  • [v 20141] Cannot get the text value code entry type

    Hello world

    I noticed that there are a lot of changes between versions 2014.0 and 2014,1.

    In the old version, I used to put a text of the entry type and get its value in this way:

    //-------------------- put code -----------------------------------

    var text_element = sym.$("t_element")

    text_element.html("");

    inputtext_element = $('<input_/>').attr ({'type': 'text', 'placeholder': ", 'id': 'text_element', 'size': '30'});

    inputtext_element. CSS ("background-color", "#ffffff");

    inputtext_element. CSS ('font-size', '14px');

    inputtext_element. CSS ('color', ' #000000 ' ");

    inputtext_element. CSS ('outline', 'none');

    inputtext_element. CSS ("at borders', 'none');

    inputtext_element.appendTo (text_element);

    //------------------- get Code -------------------------------

    var input_value = $("#text_element").val ();

    If (input_value == 'something') {}

    doSomething();

    } else {}

    doSomethingElse();


    }

    //-------------------- end code ------------------------------

    But now I can not use this system.

    I inserted the text this way entry type:

    SYM. $("t_element") .html ("< input type = 'text' = ' to write here!' placeholder = 'textElement' size = '30' style =' border: none;") background-color: #FFF; do-size: 11pt; Color: #000000; " / > ») ;

    but now I can't retrieve its value.

    Thanks for the help!

    We do not add default jQuery as a dependency in 20141 more. Some of these tasks are dependent on the jQuery. Can you try to add jQuery as a dependency? You can use the option as shown in the attached screenshot. We are currently working on how to make it easier to add these dependencies if you need on a regular basis.

    DIA-

  • How to reorder the columns in the chart according to the heighs values

    Hello
    I have an apex graphic screen 3D columns, I want to arrange the column according to the tops of values, so if I 7,3,4,9. Then I would have my willing columns 9.7, 4, 3 from right to left.

    I hope I made my point clear.

    Thank you in advance,

    Published by: Najla on February 20, 2013 06:33

    You can adjust the order of your query for this clause...

      select x,y,z order by z
    
    where z is the column with the numeric value displayed in your chart
    

    Thank you

    Tony Miller
    Ruckersville, WILL

  • Expression to replace the image according to the text of the layer.

    Hello, I wanted to ask you is it possible to replace the image in the function composition text text layer. That is the text layer contains code # 34 and expression indicates what kind of image should be placed according to conditions in expression of image.

    Sincerely, Deimantas

    Hello

    Expressions can not add/replace images.

    All images must be here somewhere, in the form of layers in the model or in a precomp, but not only as items in the project Panel.

    Then you can play with the opacity of these layers, with an expression of opacity to each of them:

    textLayer = (pickwhip the text layer that transports information);

    If (textLayer.sourceText == thisLayer.name) 100

    0 otherwise;

    The condition can be something different, for example "if (textLayer.sourceText is thisLayer.index"), etc, etc.

    Not clear what should be this condition in your case.

    Xavier.

  • In OS 10.7.5, after resigning during the shutdown, how can I stop 23 Firefox opens automatically when you restart?

    Before I turned off my computer, I stopped all my open applications. This makes startup cleaner. But now, at the start, Firefox 23 automatically... not open Safari, no email, just new Firefox 23. This seems to be the new default. I can't stop this behavior?

    See:

    ' Reopen the windows when you log in.

    • http://www.apple.com/findouthow/mac/#tutorial=startup - Applications open automatically at startup
    • Control-click on the Firefox Dock icon and uncheck 'open the connection '.
    • Click accounts (in the line of the System Preferences window system)
      • Click the login items tab
      • Click on Firefox in the list
      • Click the minus (-) button

Maybe you are looking for