If and Else statements? Help!

I am a dress up game in Adobe Flash 8 (AS2) and I am trying to Show and hide multiple video Clips on the release of a button to sort of a menu like this:


http://charfade.deviantart.com/art/dress-up-NALA-game-107105062


Its probably if/else statements, but I do not know how their code in ActionScript 2 , so it could very well help if you had a response

You can use the movieclips _visible property to show (mc._visible = true) and hide (mc._visible = false) a movieclip mc.

Tags: Adobe Animate

Similar Questions

  • IF and ELSE statements

    The man... I'm so close to figure this out and I didn't have to go back on the forum for this because I had a few topics here already when I started this project and to halfway through it and now towards the end of it, LOL! I hope that you all don't mind!

    in any case...

    Now I am trying to get users to fill out 4 boxes with the correct information, then press the ENTER key to go to the next section. Everything works perfectly with this part of my code, however, it is the part on whether they enter the wrong info that I be puzzled over.

    I tried the ELSE statements and various forms of listeners and IF statements, but I can't seem to make it work.

    When they enter the wrong info, in the entry boxes, I have to be taken to a different image. I had a script in there little worked, but instead of him awaiting until they entered all the information, it would just automatically go to the 'wrong' because technically, they received only a chance to enter the first letter of the first word.

    in any case, the code that I use now is attached. It works very well except the part of the erroneous info being entered. If a user has just this framework (where the code is located) and hits ENTER, thn, they are taken as part of 'Wrong', which is good, because technically they do not capture in 4 boxes. But. If they start typing in a box and then press ENTER, they need the same "Incorrect" framework because they have not all enter, but it is not that. Even if they conclude each info box and a letter is missing for example, which is wrong and should go to this 'Wrong' page, but is not.

    Any ideas?

    It is strange.so your code looks like this (and all the other stuff that was already there?):

    If (Key.isDown (Key.ENTER)) {}
    trace ("talk to the hand, because I'm no longer listening.");
    Key.removeListener (listener);
    trace ("the time it was the Enter key, then I should evaluate.");
    Evaluate();
    }

    It should work. I just tested it and it works for me. Well, it worked on the second try, the first time that I misspelled "listner", so be sure that you have spelled everything correctly!

    Unless you are sure that it is the function of battery called? How do you know? Y at - he got another code which could be initially move the playback cursor?

    BTW, if you use Actionscript, you shouldn't use scenes. There are strange things that occur with it and it is not worth!

  • How to use an IF ELSE statement and the xdoxslt: get_variable together?

    First of all, I'm a big fan of this forum and I would like to thank the community for helping to make better the world BI Publisher.

    I'm trying to populate a table with a value of years of data with column = PRODUCT and row = month to DATE. Here's the catch, not every month will be given. Then here's where is my problem, I am not able to use an IF ELSE statement with an expression XDOXSLT:GET_VARIABLE so that if there is no given for this month the default value will be 0.

    Can someone help me find a solution to one of the attempts below or a method entirely new? Thank you!

    BP4 = numeric value of months with a DATE (more code to extract only the month DATE not included here)
    JAN1 = PRICE if there is data, 0 otherwise

    (1) I tried and it did not work:
    <? If: xdoxslt:get_variable($_XDOCTX,'BP4'), 01 xdoxslt:set_variable($_XDOCTX,_'JAN1',PRICE) then another end if xdoxslt:set_variable($_XDOCTX,_'JAN1',0)? >
    <? xdoxslt:get_variable($_XDOCTX,'JAN1')? >
    <? end if? >

    (2) I tried and it did not work:
    <? xdoxslt:IfElse (xdoxslt:get_variable($_XDOCTX,'BP4') = '01', xdoxslt:set_variable($_XDOCTX,_'JAN1',PRICE), xdoxslt:set_variable($_XDOCTX,_'JAN1',0))? >
    <? xdoxslt:get_variable($_XDOCTX,'JAN1')? >
    <? end if? >

    (3) I tried and it did not work:
    <? xdofx:If xdoxslt:get_variable($_XDOCTX,'BP4') = '01' xdoxslt:set_variable($_XDOCTX,_'JAN1',PRICE) then another end if xdoxslt:set_variable($_XDOCTX,_'JAN1',0)? >
    <? xdoxslt:get_variable($_XDOCTX,'JAN1')? >
    <? end if? >

    example of XML data:
    < ROW >
    < name > Craig Hernandez < / NAME >
    < DATE > 2013 - 01-01 T 00: 00:00.000 + 08:00 < / DATE >
    < PRICE > 31 < / PRICE >
    BPD of < PRODUCT > < / PRODUCT >
    < / ROW >


    -TRD

    Published by: 990965 on February 28, 2013 08:27

    >
    (1) I tried and it did not work:


    (2) I tried and it did not work:


    (3) I tried and it did not work:


    >
    so

    
    
    

    works for me, it's

  • Problem with the checkbox and 'if' statement 'else if '.

    Hi, I had something like this:

    if (this.rawValue=="0" ){
      app.alert("0");
      this.resolveNode("Circle1").presence = "hidden";
      this.resolveNode("cross").presence = "visible";
     }  
    
    
    else if (this.rawValue=="1"){
      app.alert("1");
      this.resolveNode("Circle1").presence = "visible";
      this.resolveNode("cross").presence = "hidden";
      }
    
    else{
      app.alert("2");
       this.resolveNode("Circle1").presence = "hidden";
      this.resolveNode("cross").presence = "hidden";
     }
    

    I put a default position on the neutral State. The values are default: on = 1, off = 0, neutral = 2.

    When I'm clicking my button to check it works only 'market' (1) and (2) State "neutral." 'off' State does not work and I do not know why.

    Please help me with this.

    Hello

    Here is the form to the you: https://acrobat.com/#d=qiBnkcpRnPWxA5hokFXvQw.

    I shook the script, but it wasn't the main problem. The issue was that the box is on the Master Page and had a default value of the neutral. Some objects on the Master Page, as with the values by defect and buttons, checkboxes can behave badly when the form is reparqué (layout: ready event).

    If you take a look at the form, you will see the objects on the design Page behave as expected. However, similar objects on the Master Page by default returns every time that the layout event: loan fires. It has already been noted with Adobe.

    I recommend that you move the objects in a design Page or perhaps use a drop-down list instead of the check box.

    Niall

  • file 2/3 with Indesign States"file archive is missing... "we have already downloaded part 1 and 3. Help?  what it means

    Archive file InDesign States"is missing... "we have already downloaded part 1 and 3. Help?  what it means

    File 2 of 3 is important.

    http://trials2.adobe.com/AdobeProducts/IDSN/8/Win32/InDesign_8_LS16.exe

    Access denied error?

    Click on the link below and open the page and just keep it open.

    Once again click on the link above.

    https://helpx.Adobe.com/Photoshop-elements/KB/Photoshop-elements-10-11-downloads.html

  • To what size, we can use if and else in HFM statements rules?

    Hi Experts,

    To what size, we can use if and else in HFM statements rules?
    (Scenario, year, time, account, PKI, value, view, entity, Custom1, Custom3, Custom3, Custom4)

    concerning
    Dev
  • hide and show the icon view using if else statement

    is - it possibleto hide and expose the display icon using if else statement? I try to use erase them but I don't know how show it on again after that I want to come back. Thank you

    There are two functions... EraseIcon and Exposeicon

    Mike

  • If/else statement in the MathScript node

    I want to write if/else statement in MathScript node.

    If (Yes is Yes)

    {

    a = 0;

    }

    other (no = no)

    {

    b = 1;

    }

    'Yes' and 'No'--> of Type String

    'a' and 'b'--> Type Double

    Hi johndoe.

    Thank you for contacting National instruments.

    I would like to highlight a number of items which you may find useful for the implementation of an if-else statement in a MathScript node.  The first is a book white tutorial, which the second part explains how to use LabVIEW MathScript node. The second is an article describing the required syntax to write functions and scripts in the MathScript node, including instructions for the use of the If-Else statements.

    I hope that these help. Please let me know if you need additional assistance.

    Kind regards

    James

  • limited number of else statements?

    A change of statements, I so, otherwise if and else. I can add a fourth condition? If so, how?

    Any help would be appreciated!

    You can add as many of "otherwise if"s as you like. "

  • If else statements

    Hello world!

    I cannot re written one "if else" statement of Excel in ActionScript 3. Maybe someone can tell me what am I translated badly in the new formula of AS3.

    The original argument of Excel is:

    =IF(AND(F8<=5,F39>=10),10,IF(AND(F8<=5,F39<10),F39,IF(AND(F8>=6,F8<=10,F39>30),30,IF(AND(F8>=6,F8<=10,F39<=30),F39,IF(AND(F8>10,F39<30),F39,30)))))

    I translated this into AS3 as follows:

    if(q1_preCalc <= 5 && q13_preCalc >= 10)
         {
              q13_preCalc = 10;
         }else if ( q1_preCalc <= 5 && q13_preCalc < 10)
         {
              q13_preCalc = q13_preCalc;
         }else if (q1_preCalc >= 6 && q1_preCalc <= 10 && q13_preCalc > 30)
         {
              q13_preCalc = 30;
         }else if (q1_preCalc >= 6 && q1_preCalc <= 10 && q13_preCalc <= 30)
         {
              q13_preCalc = q13_preCalc;
         }else if (q1_preCalc > 10 && q13_preCalc < 30)
         {
              q13_preCalc = 30;
         }else
         {
              q13_preCalc = 30;
         }

    As you can see, I'm trying to set the vaule of the variable "q13_preCalc" according to the value of 2 other variable: q1_preCalc and q13_preCalc (himself).

    After you set the value, I do the calculation with the value:

    q13_preCalc_2 = (q13_preCalc*0.01)*-2.787;

    I don't know if I translate the "If another 'instructions properly in AS3 since Excel."

    Thank you in advance for your help!

    Rafa.

    It seems correct to me, just the last part is different:

    IF (AND (F8 > 10, F39<>

    but in AS3 you wrote:

    If (q1_preCalc > 10 & q13_preCalc)<>
    {
    q13_preCalc = 30;

    ...

    }

    and I see in your AS3 to 2 variables: q1_preCalc, q13_preCalc

    Where is the 3. ?

    in Excel, you have 3 cells (values): F8, F39 and the cell containing the formula.

  • Otherwise, if the statement help

    Well I'm well enough to the 'if' statement and the "else" statement as well. But what do I do if I need 2 conditions to be met before that nothing is done in my form. I'll do my best to explain what it is I'm doing.

    I want radio2 to change its value to 2 when radio1 has a value of 2. But radio1 runs a different calculation of numericfield1 then radio2 made in numericfield2.

    Basically what I do is to design a guide to estimate for a flooring company. (Working on the carpet now section) Problem is that the carpet is available in 2 different widths. large carpet 12 and 15 wide carpet. Most of my customers don't know what width of carpet they will choose when I am at home to measure for carpet. So I was preaching different estimates for each. But rather than filling an entire form for 15 carpet wide, I want simple selections as if or not move us furniture or pulling automatically out carpets to be filled in the section 15 of width of the estimate that I answer the questions in section 12 wide. But here's the catch. Some of my clients are 100% sure that they choose 12 wide carpet (or scale 15 incidentally). If I don't want the calculations made, unless a check box has been checked if it does not confuse my customers. Thanks for any help

    Sorry, now I see:

    this.rawValue = cost15wide.rawValue * qty15wide.rawValue;

    You must .rawValue when accessing the value of the objects.

    Hope that works,

    Niall

  • can't microsoft installation service net framework 1.1 pack 1 and 2604110 kb and kb 2656407 help me please

    can't microsoft installation service net framework 1.1 pack 1 and 2604110 kb and kb 2656407 help me please

    I'm xp pack 3

    Hi brigitteserre,

    Thank you for writing to Microsoft Communities. The problem description, I understand that you are not able to install the updates. Provide the following information:

    ·         Did you do changes on the computer before the show?

    ·         You get the error message?

    ·         You are able to install other updates successfully?

    Follow these methods.

    Method 1: Temporarily disable the security software.

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.

    Method 2: Put the computer in a clean boot State to see if there is a software conflict as the clean boot helps eliminate software conflicts.

    Note: After completing the steps in the clean boot troubleshooting, follow the section How to configure Windows to use a Normal startup state from the link to start the computer to a Normal startupmode.

    After the clean boot used to resolve the problem, you can follow these steps to configure Windows XP to start normally.

    (a) click Start, run.

    (b) type msconfigand click OK.

    (c) the System Configuration Utility dialog box appears.

    (d) click the general tab, click Normal startup - load all services and device drivers and then click OK.

    (e) when you are prompted, click restart to restart the computer.

    Method 3: You can also manually install updates (KB number) by downloading from the Microsoft Download Center.

    http://www.Microsoft.com/downloads/en/default.aspx

    Method 4: Follow the steps in the article.

    How to reset the Windows Update components?

    You cannot install some programs or updates

    Note: You must take the backup of the data before performing any installation of windows.

    Let us know if you need more assistance. We will be happy to help you.

    Thank you.

  • In Windows Vista, I can not change the settings in my 'reports on problems and Solutions' Please help

    I'm the administrator of this PC, and it is the only account that I have.

    Quick fix pls help thnks

    Hello
    • What happens when you try to change the settings?
    • You receive an error message?
    • What were the changes made before the problem occurred?
    • Which settings you want to change?

    You can view these methods:
    Method 1:
    I suggest you to disable any program of security on your computer and check if it solves the problem.

    After reviewing the question you must reactivate the security on your computer program.

    Note: Run the computer without antivirus software or firewall is a potential threat to the computer; Be sure to activate security software after completing the troubleshooting steps and after identifying the problem.

    Method 2:
    I recommend you perform the clean boot.

    Configuration of your system in a clean boot state helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.

    See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135

    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

     
  • How would enable remote desktop connection and asking for help?

    How would enable remote desktop connection and asking for help?

    Do you mean on this site?  Sorry, but we don't do that.  We do not have the software required to make the connection (it's too expensive to buy personally) and even if we did we would not get in this practice.  We work by display.

    If you mean for someone else to help you, here is the procedure: http://www.howtogeek.com/howto/windows-vista/turn-on-remote-desktop-in-windows-vista/.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • OME does not receive details of the inventory and the State for some devices

    OME does not receive the details of the inventory and the State for some servers.

    For example when looking at one of our PowerEdge R620s is all that presents itself:

    iDRAC firmware and LCC is updated (version 2.21.21.21 is installed.)

    I reset the iDRAC, and that did not help.  I have no problem with most of the other R620s in the same range of discovery.

    I deleted the object to OME and re-discovered twice over the past week it but did not help.

    Things seem ok when I use the troubleshooting tool:

    Anyone has any info on what may be going on here or how to fix this?

    Thank you

    Hello

    Thanks for the details in the post.

    Wanted to check what version of OME use you - OME 2.1?

    If so, this behavior with ws - man discovery could potentially due to expiry of certificate on this device. You can launch the iDRAC user interface and confirm the certificate information.

    2.1 the OME, the WS - Man communication component is updated. The most recent component does not communicate with the device if that device has been exceeded in the certificate.

    Sslresetcfg running via racadm will reset the certificate. For details and solution, see same threadhttp://en.community.dell.com/techcenter/systems-management/f/4494/t/19653767 .

    Let us know if that helps.

    Thank you
    Vijay

Maybe you are looking for