If the statement does not work/be executed

I have a button that makes a flip on the x axis 180 if his name is not in a table called "shutters", it determines this by running an if statement. If his name is in the table then the button to run the code to do the folding panels. However, it is not. He let the sign flip one way, but does not have the code for it folding. I was wondering if someone could take a look to see if they know why...

Code is linked below.

http://pastebin.com/mc7457

Thank you

I don't want to pretend that I understand what you try to do it with the code, but the last section to see ms to be a little hard to swallow.  I don't see any sense in declaring conditionally works, in the call to them.  If I had to guess at a rewrite of the code, it would be...

photosPane.addEventListener (MouseEvent.CLICK, photoinout);

function photoinout(e:MouseEvent):void {}
If (panes.indexOf ("photos") =-1) {}
addEventListener (Event.ENTER_FRAME, photosrotate);
Panes.push ("photos");
trace (Panes);
} ElseIf (panes.indexOf ("photos") = 0) {}
addEventListener (Event.ENTER_FRAME, photosrotateout);
trace ("stuff");
}
}

And insofar as these ENTER_FRAME listeners go, you should remove them in the functions they call as soon as they reached their goal.  Otherwise, they will continue to call these functions several times.  Example:

function photosrotate(event:Event):void {}
If (photos.rotationX<>
photos.rotationX += 6;
} else {}
removeEventListener (Event.ENTER_FRAME, photosrotate);
}
}

And, as I said, due to my lack understanding, if my remarks do not apply, I meant no harm.

Tags: Adobe Animate

Similar Questions

  • Still 'Away', the State does NOT work

    I recently registered in Skype for linux 4.3, and on a separate account under windows, even if Skype for linux said it was 'Online' on my separate account on windows and to all those who had this account as a contact, it was still 'Away', even if Skype for linux said it was "online". In line/Away status on the linux client Skype works do not is a HUGE problem, and I really hope this is addressed soon

    There is difficulty, type directly in a chat on any conversation window, restart your Skype and BAM, your status will be fixed!

    Awesome, finally. This command should run automatically whenever you connect to Skype for linux or something...

  • I run the program "TuneUp utilities" and I recently received a notification of the statement that "the BHDrvx64device does not work correctly.

    I run the program "TuneUp utilities" and I recently received a notification of the statement that "the BHDrvx64device does not work correctly" program proposed to update the driver, but there is no provision in any of the dialog boxes.  Windows Help and support says: help for this program was created in Windows Help format, which depends on a feature that is not included in this version of Windows. However, you can download a program that will allow you to view help created in the Windows Help format. All this brought me here, please, how to fix this?

    The last thing you want to do is install and run any third tuneup/Optimizer program.

    In the worst cases of such utilities can cause system failure or program, uninstall it, having restored firstly of the changes he could do.

  • FN + F3 disable the Touchpad does not work. Dell XPS L702X

    Hello, I am new to this forum.

    The function FN + F3 that disable the Touchpad does not work, my laptop Dell XPS 17 (L702X)

    I googled my problem and the only thing I found was this: http://en.community.dell.com/support-forums/laptop/f/3518/t/19454265.aspx

    I think that my problems with the touchpad started when I plugged a mouse into the USB port. It didn't work (it worked well before), and in material-sound-mouse control panel, the system asked me to uninstall a driver or other. I do not remember, but later the mouse worked.

    After this weird thing with the mouse, I noticed that the touchpad was malfunctioning. While I write, the cursor moves without touching the touchpad, it is annoying because it makes me write bad because he is moving in the middle of writing, as I write so it's a mess.

    The second oddity, the Fn + F3 does not disable the touchpad, the orange light come on (the led on the top of the touchpad), but the cursor can be moved in any case, with or without a connected mouse.

    I checked for driver updates, perform an audit of the system, checked for viruses, spywares and I don't know what I could do. I don't know if the problem with the mouse had nothing to do with the function Fn + F3 problem.

    I have not formatted or re installed windows 7, never.

    In Device Manager I have this:

    -mouse and other pointing devices:-Compatible PS/2 mouse

    Help, please. Thank you.

    DOH! Problem between Chair and keyboard...

    C:\dell\drivers\R289237

    Run the executable file of Synaptics.

    Download of extracts only the program on your disk. You must manually install the driver for the Synaptics touchpad with its own executable.

    FN + F3 now disables =)

  • Delete statement does not work properly

    Hello

    The following delete statement does not work correctly.
    If I press DELETE will delete everything in the table of categories
    I don't know whats wrong with it.
    -Delete category line if there is not the infrastructure to support-
    IF: P12_DFCY_SEQNO4 IS NOT NULL AND: P12_DFCY_CATG_C = "7" THEN
    REMOVE FROM DFCY_CATG
    IF NOT EXISTS (SELECT I.DFCY_SEQNO
    OF DFCY_CATG C, DFCY_CATG_INFRSTRCTR I
    WHERE C.DFCY_SEQNO = I.DFCY_SEQNO
    AND: P12_DFCY_SEQNO4 = I.DFCY_SEQNO);
    end if;

    Thank you
    Mary

    You probably the where more clause:

    DELETE FROM DFCY_CATG
    WHERE C.DFCY_SEQNO = :P12_DFCY_SEQNO4
    AND NOT EXISTS(SELECT I.DFCY_SEQNO
    FROM DFCY_CATG C, DFCY_CATG_INFRSTRCTR I
    WHERE C.DFCY_SEQNO = I.DFCY_SEQNO
    AND :P12_DFCY_SEQNO4 = I.DFCY_SEQNO);
    

    Not sure if this is the exact name of your column in the table, but that limit the scope of deleting just a record that you control.

    Hope it will be useful,

    Aaron

  • iPhone 5: objective of the camera does not work after update iOS 10

    Hello everyone.

    I swear to you that I have no idea how do... after a few weeks since the release of iOS 10, yesterday I force myself to be updated - the situation with iOS 9.3.2 became crash and unbearable lag every second. The fact is that I update, I like the system and use it for a few hours. Check the camera this morning, I see that the focus does not work. Now I also see AE / AF Lock, light changes whenever I tap on one side or the other, but not to focus. Not even close or far, nothing to do. I have not tried in the settings to do a full erase, I had no way to restore it since I do not have a backup.

    I tried to clean the lens - already cleaned, I tried to give him a few small nicks and follow the many guides online. I rebooted and everything done. Nothing has changed.

    The last photo was taken last night and has been developed. So I don't think it's a hardware problem and if so, how has it happened? A few hours ago the iPhone is fallen, but tell me if it makes sense. If it's a software problem, what could I do?

    I would avoid the assistance. It is a used iPhone, never jailbroken. I don't have a lot of confidence with the help, in 6 or 7 years he never went - iPhone always bought used and always worked very well.

    PS: I have no way to get into DFU, as iTunes does not see my iPhone. Up to iOS 9 that I had no problem even if I had enough of the device with the cable isn't original, but barely now lets load ("This accessory may not work").

    Hello

    I also have an iPhone 5 and I tested the question and mine is fine, how bad was the fall that you mentioned? Sometimes problems can come and go. Also try to reformulate your device.

    After this answer please.

    Thank you Will

  • Fast forward on the videos does not work on tvos 10

    Hello

    After updating to the latest tvos, 10, fast forward on the videos does not work. I can only fast forward when I press on the right place on the pavement and fast forward 10 seconds in time.

    Someone else has the same problem? Is this a bug in update?

    Hello. It seems to work as described here https://help.apple.com/appletv/#/atvb7944597f press next to move to 10 sec, press and hold to fast forward. They have it changed again?

  • My update of the software does not work

    My update of the software does not work and I can't return to the main he keeps on telling me to restart the computer and then go through the software update settings, then it ends by does not and then it tells me to restart and restart and restart again and again

    What updates you trying to install?

  • I can't select or copy text on Firefox for Android 26.0.1 (device: Samsung Galaxy Note 2) OS: Android 4.3. Long press on the text does not work. )

    Can't select or copy text on Firefox for Android 26.0.1.
    Device: Samsung Galaxy 2 Note.
    OS: Android 4.3.
    Long press on the text does not work.

    I would ask someone to check that...

    I'm glad to hear that your problem has been resolved by using the beta version.

    If you have not already the case, please mark this thread as solved by the solution of marking.

    This will help other users experience similar problems helps to find faster and more efficiently.

    I hope that you will continue using our products and we thank you for contacting the Mozilla Support.

  • using firefox 24, yahoo toolbar disappears and the keyboard does not work on some websites

    We have installed firefox 24, yahoo toolbar sometimes disappears. On some web site when trying to enter a password, the keyboard does not work until you double click of the mouse on the registration form. This on two different systems of windows 7. Each thin seemed to work fine before the update prior to the installation of 24.

    Hello

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • Under Windows, you can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac, you can open Firefox 4.0 + in Safe Mode holding the key option key when starting Firefox.
    • Under Linux, you can open Firefox 4.0 + with leaving Firefox then go to your Terminal and running Safe Mode: firefox-safe-mode (you may need to specify the installation path of Firefox for example/usr/lib/firefox)
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    I hope this helps!

    Curtis

  • Yahoo speaker icon Chinese big5 dictionary web to pronounce the Word does not work on firefox 26,27.

    http://tw.dictionary.search.Yahoo.com/search;_ylt=A3eg.nXHREBSxRUAzBh7rolQ?p=test & fr = SFP
    the speaker icon of web for the Word does not work on firefox 26,27. It works on firefox 24,25.

    Hello mizuc, thanks for reporting that - I can reproduce the problem and get an error in the web console:

    Media resource http://___.mp3 could not be decoded.
    

    Edit: I have filed bug 919572 for this question

  • no service to customer without having to pay when the product does not work?

    no service to customer without having to pay when the product does not work?

    You will need to tell us more of the history for anyone to be able to give advice. The WHOLE story would be great!

  • Shortcuts mouse to "Open the link in a new tab" help "Middle-click on the link" does not work on 10.0.1

    Shortcut of mouse to "Open the link in a new tab" help "Middle-click on the link" does not work on 10.0.1, it worked on version 9.0.1.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

  • Key on the keyboard does not work in firefox box when you type in the web site, but it works everywhere else?

    Key on the keyboard does not work in firefox box when you type in the web site, but it works everywhere else?

    Try Firefox SafeMode to see how it works there.

    A way of solving problems, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open the mode without failure of Firefox 4.0 + by pressing the SHIFT key when you use the desktop Firefox or shortcut in the start menu.
    • Or use the Help menu option, click restart with the disabled... modules while Firefox is running.

    Do not choose anything at the moment, just use 'continue in safe mode.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before using the shortcut of Firefox (without the Shift key) to open it again.

    If it's good in Firefox Safe mode, your problem is probably caused by an extension, and you need to understand that one.

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

    Can be caused by an add-on to the AVG.

    When find you what is causing that, please let us know. It might help others who have this problem.

  • Satellite X 200-219 - the touchpad does not work as it should

    Hi all

    I recently bought a 2nd hand Toshiba Satellite x 200-219. Had some problems with it that I have overcome now, except one... The touchpad does not work as it should. I think that the cable has been damaged at some point.

    So I'm wondering if I should use the same ribbon cable to connect the keyboard to the motherboard or can I get one of a different model of PC Toshiba laptop?

    I tried searching on the net for advice but have resulted in nothing so thought I would try the forums.

    Any help you can give will be greatly appreciated.

    Thanks in advance,

    Lee

    I think you can use the items to the satellite X 205 series since this seems to be the same series as X 200:
    Found some related parts the touchpad:
    Satellite X 205 / X 200 touchpad Board with cable: reference number: K000047950
    Satellite part number for the TOUCH PAD FFC X 205 / X 200: K000047980

    But why you n t come into contact with a Toshiba authorized service provider in your country and order the part necessary and compatible?

Maybe you are looking for

  • Replacement pen

    I dropped my pen and plastic on the edge disc broke. The usable again is pen? If this is not the case, how can I order a replacement?

  • move the contacts from one account to another iCloud

    My iCloud account is created and bound to a business e-mail address. I also have my account linked to my personal email address (for iTunes) apple staff. I'm leaving this work and want to transfer all the data from iCloud my iCloud account of work ac

  • Satellite L30-10 X - CPU Upgrade

    Hello I have rather old laptop L30-10 X Satellite and I recently got Intel CPU T5300 and I wanted to replace Original Celeron M440 for newer processor. I read a lot (even on this forum) that people were able to make these changes (and event to the to

  • Salvation for laptop: administrator password

    I forgot the password code and pass administrator... the error I get is 57545583.someone please help

  • HP Pavilion a6110n: NVIDIA rejected updates

    This box has started with Windows Vista Home Premium and has recently been upgraded to Windows 7 Home Premium. The installation was relatively smoothly and I was pleasantly surprised when I was told that he is qualified for the upgrade of Windows 10.