CurrentFrame command not working with Else/If statement?

The code below is part of a game in which the character moves through doors. On the current stage are three doors, all
instances from the same symbol. The symbol contains nine frames- 1,2 and 3 are three doors of three diff colors doors. 21,22, and 23 are those same three doors with a certain power up and 31,32 and 33 are the same doors with yet another power up.
Door1.addEventListener(MouseEvent.CLICK,dooraction);
                function dooraction(event:MouseEvent){
    if (Door3.currentFrame ==Door1.currentFrame + 2 ) {
              Door1.gotoAndStop(" door21");
              Door2.gotoAndStop(" door22");
              Door3.gotoAndStop(" door23");
So, this code as written works fine, When I add the code below, it stops working.
     else if (Door3.currentframe == Door1.currentFrame +2){
             Door1.gotoAndStop("door31");
             Door2.gotoAndStop("door32");
             Door3.gotoAndStop("door33");
However, when I alter the code so that all of the code in the first part  gotoAndStop's at "door21", and then remove the "+2 " from the
second part of the code, it works. What have I done incorrectly that causes the second "+2" to not work?

the else-if branch of your conditional is identical to the if-branch so i wouldn't expect the else-if branch to ever execute.

Similar Messages

  • Smart scan not working with Insert Select statements

    We have observed that smart scan is not working with insert select statements but works when select statements are execute alone.
    Can you please help us to explain this behavior?

    There is a specific exadata forum - you would do better to post the question there: Exadata
    I can't give you a definitive answer, but it's possible that this is simply a known limitation similar to the way that "Create table as select" won't run the select statement the same way as the basic select if it involves a distributed query.
    Regards
    Jonathan Lewis

  • Odi os command not working with agentservice agent.

    dear all,
    odi os command not working with agentservice agent but with local agent it work fine.. and user is administrator.
    kindly solve it
    Regards
    Naseer

    Hi,
    you referred to oscommand, so are you executing a .bat fille? if yes, where exactly does the .bat file reside, local machine or on network share?
    Also, follow these couple of documents, they may be helpful to you.
    859215.1 and 424703.1
    Regards
    Srikanth

  • Keyboard commands not working with pen tablet attached to MacBook Pro

    HELP!! I can't use the clone tool in Photoshop! None of my keyboard commands are working, zoom in, zoom out...etc.
    I went through iCloud and reset Photoshop, InDesign and Illustrator keyboard, but my keyboard on my MacBook Pro
    is not working with adobe CC.
    Is it my Bamboo pen tablet attached causing this problem?
    Please advise.
    Thanks.

    You will likely get better program help in a program forum
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Sql command not working with date time??

    I am using my own sql query to fetch data in the sql command.
    Due to the problem I found - here is the basic example:
    The sql is:
    select to_number(to_date('10/11/2011 10:23:00','dd/mm/yyyy hh24:mi:ss') - to_date('10/11/2011 10:20:00','dd/mm/yyyy hh24:mi:ss'))  minu  from dual
    But I am not getting anything in Crystal Report tool!!
    In any sql tool I get results.
    When I am not using time part (hh24:mi:ss) :
    select to_number(to_date('10/11/2011','dd/mm/yyyy') - to_date('09/11/2011','dd/mm/yyyy'))  minu
    from dual
    I am getting data!!!!
    What is the problem??
    Initially I had it with parameters of type 'Date Time'
    Please, any one knows what the problem is?

    Hi,
    Sorry for the delay and thanks for answering.
    It was partial solution
    Moving to oracle driver, not (OLE DB), this specific one worked fine:
    select to_number(to_date('10/11/2011 10:23:00','dd/mm/yyyy hh24:mi:ss') - to_date('10/11/2011 10:20:00','dd/mm/yyyy hh24:mi:ss'))*100 minu from dual
    BUT
    When I tried to change one of the hardcoded values to be parameter of type 'Date Time' I couldn't pass the validation step - mostly the errors:
    "ORA 00900 Invalid sql statment"   and
    "ORA - 00907: Missing right parnthesis"
    No matter which format I used.
    Last version is:  
    select to_date('{?tsStartReport}','yyyy-mm-dd hh24:mi:ss') from dual
    Any idea why 'Date Time; is so problematic? How can I workaround it?

  • Keyboard commands not working with Headstart

    Hello,
    I'm using Headstart 2.1.2 with Template package 5.0.3.1. Forms 6.0.5.29 and Designer 6.0.3.
    When making a form in Forms without Designer and Headstart the forms responds normally to Alt + spacebar + n to minimze the MDI window. A Headstart generated forms responds to this command with FRM-41008: undefined function key. Does anyone know a way to fix this?
    Thanks, Joost

    You will have to add a key definition for this to the qmsrf50.res resource file. Your best bet is to look in the
    forms default resource file and copy that definition.
    Regards,
    LauriThanks for your reply, Lauri. Unfortunately I'm still not clear about this, I would appreciate it if you could explain a little further.
    What does this qmsrf50.res file do? The Headstart manual instructs me to replace the original Forms fmrusw.res file with the resource file supplied with Headstart. If I do so my application fails to start.
    As I wrote before my application responds to Alt + spacebar + n with 'Undefined function key'. The Headstart foundation application forms however responds correctly. They use the same runtime executable. Could it be that the resource file is used at compile time or is it only read at runtime?

  • IBook G3 startup shortcut key commands not working with OS 9?

    My iBook does not recognize any of these key commands:
    startup from disk holding "C"
    target disk mode holding "T"
    PRAM zap
    etc...
    The only command it listens to is Shift to turn extensions off. My keyboard works fine and none of the keys are stuck. I've never seen anything like this, what could it possibly be?

    If there's a firmware password set on the computer, it needs to be removed first. This can be tested by pressing the Option key and seeing whether a padlock appears or the command is ignored.
    (51320)

  • SQL*Plus column command not working with Script Runner

    SQL Developer EA 2.1
    When running a script (interactive or from a file), the COLUMN commands are ignored. The documentation (User's Guide 1.7.1) says that COLUMN is supported, but the headings set in the column command are not changed. As a test, the SET FEEDBACK OFF command is processed.
    SET FEEDBACK OFF
    COLUMN ename HEADING 'Name'
    COLUMN job HEADING 'Job'
    COLUMN deptno HEADING 'Dept'
    SELECT ename as ename, JOB, DEPTNO
    FROM EMPLOYEES;
    The documentation for Script Runner (User's Guide 1.7.2) says that a much more limited set of SQL*Plus commands are available.
    Is this intended behavior? If so, the documentation should reflect that the COLUMN command is ignored.

    Hi,
    Doc bug logged:
    Bug 9015160 - OTNEA1: USER GUIDE COLUMN SUPPORTS 'COLUMN...NEWVAL' ONLY
    The user guide says column is supported, but
    Column supports the following new_value use only
    i.e. moving a value from a selected column to a substitution variable:
    column aval new_v a
    select 1 aval from dual;
    select '&a' || ' is 1' from dual;
    Output:
    AVAL
    1
    1 rows selected
    '1'||'IS1'
    1 is 1
    1 rows selected
    -Turloch

  • Scaling with key commands not working with objects or text frames

    Suddenly, I can no longer hold Shift+Option+Command to proportionally scale anything in InDesign CC 2014. Any suggestions?

    Which file do I want to trash or rename?

  • Ear Sir: Yesterday on 18.09.2014 evening, I wanted to install IOS 8.0 according to your instructions iPhone 5S.during installation Stopped working and was closd, I can not work with him. Ibought it in the United States Apple Store Fifth 40venue 767 N

    Dear Sir: Yesterday on 18.09.2014 evening, I wanted to install
    IOS 8.0 according to your instructions iPhone 5S.during installation
    Stopped working and was closd, I can not work with him. Ibought it in
    the United States
    Apple Store Fifth 40venue 767 New York NY1053
    iPhone 5s Spase Gray 32 gb verizon.
    Part Number: ME344ll / A.
    Serial number: DN*******NjM.
    Model A1533. I would like to request a new password for opening the
    iPhone.  Passwod..... Thank you very much,
    Im not difficult for you to request a quick answer.Israel.
    <Personal Information Edited By Host>

    We are fellow users here on these forums, you're not talking to iTunes Support nor Apple - it looks like somebody has asked the hosts to remove your personal info from your post (it's not a good idea to post any personal info on any public forum).
    What do you 'stopped working and was closed, I can not work with him' ? What exactly are you seeing on the phone's screen ?
    If it's the activation screen and you can't remember your password for your account then see if you can get it reset via http://iforgot.apple.com

  • Why windows command prompt is not working with java

    I installed java 1.6 to my computer (Laptop) and it is perfectly working with Netbeans and Eclipse
    but not working with windows xp xommand prompt
    It compiles the code but when it is going to run it throw the following exception
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Example (Unsupported major.minor version 50.0)
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)I've reinstalled java 1.6, but the output is same
    Please help me to get it correct
    Thank you

    E:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracl
    e\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progr
    am Files\Microsoft SQL Server\90\Tools\binn\;C:\OrCAD\OrCAD_10.0\tools\pcb\bin;C
    :\OrCAD\OrCAD_10.0\tools\specctra\bin;C:\OrCAD\OrCAD_10.0\tools\bin;C:\OrCAD\OrC
    AD_10.0\tools\PSpice\Library;C:\OrCAD\OrCAD_10.0\tools\fet\bin;C:\OrCAD\OrCAD_10
    .0\tools\jre\bin;C:\OrCAD\OrCAD_10.0\tools\Capture;C:\Program Files\QuickTime\QT
    System\;C:\Program Files\Java\jdk1.6.0_01\bin;C:\Program Files\Microsoft Visual
    Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev9
    8\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Mic
    rosoft Visual Studio\VC98\bin;

  • The wireless keyboard is not working with my iPad2. I turned on Bluetooth and paired it.  What else is there to do?

    The wireless keyboard is not working with my iPad2.  I turned on bluetooth and paired the device.  What other hidden step is there to do?

    Well, the tiny green light comes on and blinks. . . After a frustrating time, I turned everything off.  Later, when I tried the keyboard again, it worked.  I guess the bluetooth process takes longer than expected.  So thank you for taking the time to help a technically impaired person!!

  • Modifer keys do not work with mouse in Illustrator

    Below is a copy of a bug report I just submitted to Adobe. I don't suppose any users have run across this and found a solution or workaround?
    I found someone else with this problem in an archived topic thread, but the only response that poor fellow got was an accusation of not following instructions (His problem wasn't user error, BTW).
    Thanks
    ******BUG******
    Concise problem statement:
    Modifer keys do not work with mouse: For example, free transform or rotate behaviors that require "Click-Ctrl" .
    Steps to reproduce bug:
    1. select object
    2. select free transform tool
    3. left click (without releasing) a corner of the bounding box.
    4. start dragging
    5. press ctrl
    Results:
    object behaves as though the ctrl key was not pressed. i.e. the cursor does not change shape and the object scales rather than distorts.
    Expected results: The cursor should change shape as the ctrl key is pressed and the object should distort rather than scale.
    Additional information: This behavior is intermittent. Occasionally Illustrator recognizes the "Click-Ctrl" combination and behaves exactly as the help file predicts it will. The cursor changes shape and the object distorts rather than scales. I can offer no rhyme or reason for when Illustrator will behave as advertised and when it will ignore the modifier keys.
    The example above involves the free transform tool, but the problem occurs just as often with other tool behaviors that require a modifier key + mouse combination.
    Primarily using Wacom Intuos3 tablet. (with latest drivers), but have also tried combinations with microsoft mouse or both mice installed.
    Also, immediately after an occurrence Illustrator bug, left AI open, went to a different app that uses mouse+modifier (Ctrl+Click). That different app recognizes Ctrl+Click with no problems whatsoever.

    Thanks Guys,
    Good to know it's working for you. I guess that's the nature of intermittent bugs. Of course, Adobe's bug report form has a field for version, which I, of course, filled in. Sorry I didn't add it to this post. I'm using the latest version CS3 v13.0.2.
    Stephen,
    Sorry I was not more clear when I said, "For example, ...". I was talking about the modifier keys not working with several different tools. The Free Transform tool advertises functionality that is supposed to work with a "Click (down, but don't release)then hold down Ctrl" combination. The Rotate tool advertises a behavior that is supposed to work with an "Alt-Click" combination. These are just 2 examples of the modifier keys not working. I focused primarily on one example in the bug report(ctrl after and in addition to click in the free transform tool, not alt-click in the rotate tool).
    Here is what I expect(quoted from Adobe's CS3 help file)
    (From the "Distort Objects with the Free transform tool" help topic)
    "Select one or more objects.
    Select the Free Transform tool .
    Start dragging a corner handle on the bounding box (not a side handle), and then do one of the following:
    Hold down Ctrl (Windows) or Command (Mac OS) until the selection is at the desired level of distortion.
    Hold down Shift+Alt+Ctrl (Windows) or Shift+Option+Command (Mac OS) to distort in perspective."
    (from the "Rotate an object by a specific angle" help topic:)
    You can control the exact angle of rotation with the Rotate command.
    Select one or more objects.
    "Do one of the following:
    To rotate around the center point, choose Object > Transform > Rotate, or double-click the Rotate tool.
    To rotate around a different reference point, select the Rotate tool. Then Alt‑click (Windows) or Option‑click (Mac OS) where you want the reference point to be in the document window.
    Enter the rotation angle in the Angle text box...."
    These Tool based mouse-key combinations do occasionally work as they are supposed to, so I know what the expected results are supposed to look like, but whether they work or not appears to depend on the phase of the moon, the day of the week, and the color of the president's underwear.
    Other non-tool based mouse-key combinations in Illustrator work consistently all the time - Ctrl-A for Select All as just one example that always works.
    Thanks Again

  • Vpn-framed-ip-address not working with anyconnect

    Hi Folks, please help me to verify if this case is a bug or a "not valid scenario".
    Scenario:
    ASA 5520, OS 9.1, SSL VPN with Anyconnect v3.x, static ip address for the client, and RSA token authentication (all the users/pin/passwords are in the RSA server, not in the ASA, but i need to create some users in the ASA in order to apply the vpn-framed-ip-address attribute for specific users).
    In fact the anyconnect ssl vpn with RSA auth works fine, the ssl connection works, the user is authenticated, the anyconnect works, traffic passing,  BUT.. the anyconnect its getting an ip address from the ip local pool INSTEAD of the static ip defined with the  vpn-framed-ip-address command.
    I'm trying to assign a static ip address for a user (defined locally on the ASA) that performs auth via RSA (aaa-server), by using the  vpn-framed-ip-address  command as an attribute for this local user. But it seems the command is not working.
    Already I´ve tried to resolve (with no success) by entering the
    no vpn-addr-assign aaa
    no vpn-addr-assign dhcp
    vpn-addr-assign local
    Also i´ve tried by removing the pool from tunnel-group in order to force all the connection session to use the static ip address, but in this case, the anyconnect sends a message "No Address Available for SVC Connection".  Meaning the ASA simply is ignoring the  vpn-framed-ip-address command.
    Its supposed the ASA implement the policies in this order, DAP > User policy > UserGrp policy > ConnProfile > DefGrpPolicy, and according to this, the vpn-framed-ip-address command should take effect first since its specified as User policy, overriding everything else. But its not working.
    At this point i think the issue is... since the user is locally defined but its password its being authenticated via RSA (not local), the user attributes (static ip) are being ignored by the ASA because its not expecting to receive an ip address from the aaa server (RSA), so jumps to the next policies falling to the pool. Anyway the user policies attributes SHOULD work according to cisco.
    Please your advise, or tell if its a bug? or a not valid scenario for this command to work with the ASA.
    This is the current config:
    ip local pool PoolSSL 192.168.229.10-192.168.229.19 mask 255.255.255.0
    aaa-server RSA protocol sdi
    aaa-server RSA (inside) host 192.168.12.1
     retry-interval 5
    no vpn-addr-assign aaa
    no vpn-addr-assign dhcp
    group-policy GroupPolicyABC internal
    group-policy GroupPolicyABC attributes
     wins-server none
     dns-server value 192.168.61.1 192.168.61.2
     vpn-tunnel-protocol ssl-client
     group-lock value TunnelGroupABC
     split-tunnel-policy tunnelspecified
     split-tunnel-network-list value ServersDB
     default-domain value my.domain.com
     split-tunnel-all-dns disable
     webvpn
      anyconnect ask none default anyconnect
    username USER1 password xHhacRZ56Uadqoq encrypted
    username USER1 attributes
     vpn-framed-ip-address 192.168.229.7 255.255.255.0
     group-lock value TunnelGroupABC
    tunnel-group TunnelGroupABC type remote-access
    tunnel-group TunnelGroupABC general-attributes
     address-pool PoolSSL
     authentication-server-group RSA
     default-group-policy GroupPolicyABC
    tunnel-group TunnelGroupABC webvpn-attributes
     group-alias AccessToDB enable
    I´ll wait for your answers, regards!

    https://tools.cisco.com/bugsearch/bug/CSCtf71671/
    you need AAA assignment, or at least you needed to have it a couple of years back. 

  • Adobe Flash Player does not work with Safari. What can I do?

    Hi,
    I have a MacBook Pro, Retina, 15 inch, late 2013,  2 GHz Intel Core i7, using OS X 10.9.4. I have installed Adobe Flash Player. In my System Preference, in the advanced settings, it is set to install updates also tells me that I have the NPAPI Plug-in (version 14.0.0.145) installed but not the PPAPI Plug-in. Is this the reason why it does not work with Safari (keeps telling me to download the app, which I did but still does not work)? Is there any way I could fix the problem? Please, help.
    Thanks.

    If you can't install or update Flash, follow these instructions.
    If you have installed the latest version of Flash, please take each of the following steps that you haven't already tried. After each step, relaunch Safari and test. For a "missing plug-in" error, start with Step 8. Back up all data before making any changes.
    Step 1
    You might have to log out or restart the computer before a Flash update takes effect.
    Step 2
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data...
    and confirm. Close the window. Then select
               ▹ System Preferences… ▹ Flash Player ▹ Advanced
    and click Delete All. Close the preference pane.
    Step 3
    If you're only having trouble with YouTube videos, log in to YouTube and load this page. You may see a link with the text "Leave the HTML5 Trial." If so, click that link.
    Step 4
    a. If you get a warning of a "blocked" or "outdated" plug-in, then select the Security tab in the Safari preferences window. In the list of plugins on the left, there should be one—and only one—entry for "Adobe Flash Player," showing the same version number that you installed. Select that entry. On the right there will be a list of websites for which you have specifically allowed Flash, if any. It's normal for the list to be empty. Below that is a menu labeled
              When visiting other websites
    From that menu, select either Allow or Ask.
    b. If you still get the alerts, then go back to the Flash Player preference pane and select the Advanced tab. Click Check Now. Quit and relaunch the browser.
    c. If the alerts still persist, triple-click anywhere in the line below on this page to select it:
    /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
    Right-click or control-click the highlighted text and select
              Services ▹ Open
    from the contextual menu.* A folder should open. Inside it, there should be a file named "XProtect.meta.plist". If that file is missing and you know why it's missing, restore it from a backup or copy it from another Mac running the same version of OS X. Otherwise, reinstall OS X.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    Step 5
    In the Safari preferences window, select the Advanced tab and uncheck the box marked
              Stop plug-ins to save power
    Step 6
    Open this folder as in Step 4:
    /Library/Internet Plug-Ins
    Delete the following item, or anything with a similar name, if present:
              Flash Player (failing).plugin 
    You may be prompted for your login password.
    Step 7
    Re-download and reinstall Flash. Download it from the domain "get.adobe.com". Don't click a link from any other website, including this one, because you can't trust links. They may be an attempt to trick you into installing malware masquerading as Flash. Type the address into the browser window. Never download a Flash update from anywhere else.
    Step 8
    If you get a "missing plug-in" error, select
              Safari ▹ Preferences... ▹ Security
    from the Safari menu bar and check the box marked  
              Allow (or Enable) plug-ins
    Then click the button marked
              Manage Website Settings...
    if present and make sure that the website is not blocked for Flash.
    Step 9
    Select
              Safari ▹ Preferences... ▹ Extensions
    from the Safari menu bar. If any extensions are installed, disable them.

Maybe you are looking for

  • How to delete a file when it is open ?

    Hi all, I want to delete a file even it is open, and that should be deleted with out exiting the program itself. By using deleteOnExit() method of File class it is possible, but it is not valid for all types of files, and it works if we exit the prog

  • IPhone 5c - can't receive group messages after updating to IOS 8.0.2

    I have an IPhone 5c and I updated to the IOS 8.0.2 yesterday afternoon and now I can't receive group messages. I have rebooted my phone and reset my network settings along with turning IMessage off & on, turning group messaging off & on. Does anyone

  • Importing ESS/MSS Components into Track takes a very long time

    Hi All, I am trying to set up a track for ESS/MSS (have followed the cok book for ESS and NWDI). I am stuck @ the stage where I import the individual ESS, MSS source code into the track. Its taking fairly a large amount of time to build each single D

  • K7N420 problem: CPU error on booting

    4 red diods on the D-Bracket on power up after reflashing from BIOS 2.50 to 2.40. CPU and memory are good on over MB. Recover process can't start. How to recover this problem?

  • Flash CS5 crashes when importing an image sequence

    I am trying to compile an image sequence rendered from modeling software (550 frames). The images are approx. 120kb in size. So far I have only been able to import about 100 images at a time, but when I get to the third import flash crashes. I have a