If statement works is not a reason any

In a scene for one of my animations, I have the following-

if(a == 3)

{

a = 0;

gotoAndPlay (1, "scene 4");

}

on the other

{

gotoAndPlay (1, "Scene 3");

}

If (clicked2)

{

gotoAndPlay (1, "scene 5");

}

on the other

{

gotoAndPlay (1, "Scene 3");

}

I have the variable declared in a previous scene, and it worked at first.  It does not give me an error, but the Variable seems do nothing (he won't in the next scene, even if it is equal to 3)

It is the line of code in the context previously-

var clicked2:Boolean = false;

Button2.addEventListener (MouseEvent.CLICK, goScene2);

function goScene2(event:MouseEvent):void {}

clicked2 = true;

}

a ++ ;

Thanks in advance!

Use the statement trace for debugging.  for example,.

trace (a, a String, a == 3);

if(a == 3)

{

a = 0;

gotoAndPlay (1, "scene 4");

}

on the other

{

gotoAndPlay (1, "Scene 3");

}

If (clicked2)

{

gotoAndPlay (1, "scene 5");

}

on the other

{

gotoAndPlay (1, "Scene 3");

}

Tags: Adobe Animate

Similar Questions

  • Solution for IE CSS/Htc works is not a reason any

    Hello

    I use DW CS4 on a processor intel Mac. I have the thing of rounded corners CSS goes for the div Central on most of my pages - and of course, it works very well with everyone but IE.

    I have this code in my CSS: behavior: url(border-radius.htc) and I have downloaded the HTC file as well.

    And rounded corners don't appear in IE, the background image (it repeats Y) does not. It wobbles on in a first time, then disappears.

    Boy, I like IE.

    Here is a link to get to the right area - I put in a little different place on some pages to see if a CSS of appearance order may be the cause. No real progress on this point either. http://www.frankbright.com/index3.htm

    Thanks much for any help.

    I appreciate it,

    Frank B.

    This method works with simple layouts.  The thing about behavior url must go inside a conditional comment IE browsers Pre - IE9 target.

    Also, I applied to a Div ID because it carries more weight than .classes alone.

    /**CSS ROUNDED CORNERS for Mozilla, Webkit, Linux, Opera, IE9**/
    
    #Your-Div-Name,#Another-Div-Name,table  {border: 5px solid #FFF;-moz-border-radius: 20px;-webkit-border-radius: 20px;-khtml-border-radius: 20px;border-radius: 20px;}
    

    See the link below for more details:

    http://ALT-Web.com/demos/CSS-rounded-corners.shtml

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • Web Apps list filter - if statement works do not?

    I create a selectable list by link of the subcategories with number of assigned press releases

    next to the subcategory listed.

    I use an if statement to filter the subcategories with no assigned press releases.

    The site-> settings-> categories are filled with categories and subcategories.

    There is a Web application with the same categories and a Web application with the same subcategories as

    the site-> settings-> categories.

    When a Parent category is selected in the left column menu, we go to a Page of category model

    to view a list of the subcategories of this category.

    To display the subcategory list is the following code:

    {module_webapps make = "collection" template="/layouts/custom/subcategories-collection.tpl" id = "29111" filter = "classified" itemid = "{{CategoryID}}"}

    Here is the "/ layouts/custom/subcategories-collection.tpl" file:

    < table >

    < thead >

    Name < th > < /th >

    Number of PRs < /th > < th >

    < / thead >

    < tbody >

    {% for item in items %}

    {% If {module_webappscount, 29117, c, {{point.}} CategoryID}}}! = 0 %}

    < b >

    < td > {{item.categoryName}} < table >

    < td > {module_webappscount, 29117, c, {{point.} CategoryID}}} < table >

    < /tr >

    {endif %}

    {% endfor %}

    < / tbody >

    < /table >

    Note: Web App #29117 is press releases, #29110 is #29111 and categories subcategories.

    The problem:

    When the if statement is included to filter empty subcategories

    only displays the table header, and there is no list of subcategories.

    If you delete the statement all subcategories are listed under

    the header of the table. Empty and assigned.

    Why is the survey not only select the subcategories that have

    Assigned press releases.

    If someone would like to know, here is the solution that I use:

    The announcement subcategory Page module:

    {module_webapps id = "Subcategories" filter = 'class' itemid = "{{CategoryID}}" resultsPerPage = "100"}

    List subcategory template code:

    {module_webappscount id = filter "29117" = "classified" itemId = "{tag_categoryid}" collection model = "my_prcount" =""}

    {% If my_prcount.count! = 0-%}

    {tag_name} - {module_webappscount id = filter "29117" = "classified" itemid = "{tag_categoryid}"},

    {endif %}

    NOTE: #29117 = press releases Web App id

    Image of the category list Page:

    Thanks to Dave Haggblad and Scott Reynolds!

  • My Abobe photoshop 4.0 is not compatible with my Windows 7 a mild wear. It was, but for some reason any won't work now. I thought it was time to try a new version of photoshop and somehow ended up with a cloud, and apparently will have to pay for access t

    My Abobe photoshop 4.0 is not compatible with my Windows 7 a mild wear. It was, but for some reason any won't work now. I thought it was time to try a new version of photoshop and some sort finished with a cloud, and apparently will have to pay for access to Photoshop elements, which is everything I wanted in the first place. Is there a way I can get out of this oblogation to $120.00 and go to Staples and buy Photoshop elements 14?

    You may have to wait until Monday because of the long holiday weekend in the United States

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Cancel https://helpx.adobe.com/creative-cloud/help/cancel-membership.html

    -or https://helpx.adobe.com/contact.html?step=ZNA_account-payment-orders_stillNeedHelp

    > finished with a cloud and apparently will have to pay to access Photoshop elements

    I don't know what you bought, but Photoshop Elements only not part of the cloud

    Also, to install or run version 4 with Win7, did you do a RIGHT click on the program and select a compatibility mode from the option list?

  • HP5610 All in One Printer and for some reason any fax does not work

    * - Original title - the printer does not properly

    I have a HP5610 All in One Printer and for some reason any fax does not work.  What could be the problem?  I don't have the CD installation disc.

    Hello

    To provide a proper resolution, I would need more information on your side.

    1. what operating system is installed?

    2. don't you make changes to the computer before this problem?

    We can refer to this article and check if that helps.

    Unable to send or receive Fax: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c01670485

    You can also ask your question in the Forums of HP Support (scanning, fax and copy): http://h30434.www3.hp.com/t5/Scanning-Faxing-and-Copying/bd-p/Scan

    Thank you.

  • Hello everyone. I recently installed a Samsung SSD (hard solid state drive) in my destop PC. For some reason any Lightroom do not see? So I can't ingest pictures of her, or copy photos from a card itself. It is not listed as a player option. See LR

    Hello everyone. I recently installed a Samsung SSD (hard solid state drive) in my destop PC. For some reason any Lightroom do not see? So I can't ingest pictures of her, or copy photos from a card itself. It is not listed as a player option. LR sees any other drive. My computer he sees very well, so I was able to create a catalog it. IM using windows 8.1. Any ideas? I would also add that this drive has become corrupted and was repaired by Samsung. Maybe they did do a very good job......

    Did receive the disk with the letter of A: or B: drive? See below, which deals with the question:

    Re: lr 4 does not display the new hard drives > 2 TB

  • The numbers "could not open file for some reason any."

    Suddenly some of my documents of numbers prompt response "numbers" could not open file for some reason any ' "the document is unavailable. Other documents numbers remain accessible. My backup versions invites the same response when I try to open them. Is there a solution?

    Hello Fred,.

    Thanks for this info and choosing the communities Support from Apple. I know how important is able to open all your files in numbers is for you!

    If I understand correctly, you cannot open some files of numbers even from backups, but others continue to work. To limit this problem, I would suggest starting with the following steps:

    1. first of all, run disk utility and check for questions on your hard drive, as hard drive problems can lead to situations like yours.

    Disk utility (Yosemite): a disc repair

    2. then, you can test this in a new user, to refine, if it's a question broad system or specific to your username.

    How to test a question in another account on your Mac.

    See you soon!

  • Pages pull up of certain documents and States "it cannot be opened for some reason any."

    I use the Pages more up-to-date on my macbook, but whenever I have pull up some documents, he says that he cannot find it for some reason any? I had no problem before, but all of a sudden does not work?

    If you get a dialog box that says essentially that "Pages cannot open this document for some reason any", you're actually done with this document because he suffered internal damage. Get an old copy of your Time Machine backup.

  • "Could not open file for some reason any." Error message since then reinstall it.

    I have recently restored OS X from a backup, the same (current) version of the numbers and I use the same files (one document, different versions tried), but since I only get the error message "... cannot be opened for some reason any."

    I found absolutely no fix or solution floating around the web this fix in my case. I tried 3 machines, different, another user account fresh installation, conversion/dissemination/export the file, number in iOS and iCloud - nothing.

    This document contains the data value of several MONTHS of work and is encrypted password. It's just an unacceptable loss.

    Does anyone know another way to recover the data?

    If not, please give it a try, here's the document mentioned:

    https://www.dropbox.com/s/9dezibbcjvtw9sj/document.numbers.zip?DL=0

    So says "... cannot be opened for some reason any ', I'm having a very bad time...

    But If you are asked to enter the password - thank God - contact me

    There is nothing on the face of the planet to open a document from v3.6.1 numbers once you get 'Document.numbers' cannot be opened for a dialogue of reason. Be it password protected, or not makes no difference. Your only hope is to get a copy of older backup and restore. The same thing happens in the current versions of Pages v5.6.n also.

    Any other spreadsheet application would have not done this for you.

  • Could not open the xls for some reason any

    When I try to open a XLS file with numbers 3.6.1 I get the error message ' cannot be opened for some reason any. "

    I tried to change the type of file csv and txt but neither technique gives readable results.

    I also tried to fix HD Mac (in fact a SSD) with disk utility and reboot, but that did not help either.

    Thoughts?

    Dick

    Hi Dick,

    Change the extension (.csv or .txt) is not any change in the type of file.

    Assuming that, since you posted in the numbers for the Mac community and state what version 3.6.1 a number you're on a Mac (and not using iOS 8 on your iPad), you can try opening the file using LibreOffice or Apache OpenOffice. Both are free to download and use. If none of them opens the file, it is probably corrupted. If they can open the file, there may be a compatibility problem between this file and the numbers. Try registering LibreOffice or Apache OpenOffice (like a MS Excel file), then try opening thaat version saved in number.

    Kind regards

    Barry

  • Wi - Fi does not at all for some reason any.

    Hello

    Wi - Fi does not at all for some reason any.  Never had problems before.  __When, I click to view available networks, it tells me that windows cannot configure.  What can I do?  Need help as soon as possible.  Thank you.  number - this is a public forum so never post private information such as numbers of mail or telephone!

    Hello

    Maybe this can help.

    My wireless is not working - http://www.ezlan.net/wireless.html

    Basic wireless configuration - http://www.ezlan.net/Wireless_Config.html

    Wireless Security - http://www.ezlan.net/Wireless_Security.html

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • Vista OS does not load. I tried booting and the load screen bar continues to work without success. When you run the start he stops to c:\windows\system 32\cmd.exe that I don't want to lose my files so I have not reinstalled. Any suggestions?

    Vista OS does not load.  I tried booting and the load screen bar continues to work without success.  When you run the start he stops to c:\windows\system 32\cmd.exe that I don't want to lose my files so I have not reinstalled.  Any suggestions?

    Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     

    If restore work not and you do not have a Vista DVD from Microsoft, do a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use it.

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner: http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Data recovery, if/before you reinstall:

    1. slave of your hard drive in another computer and read/save your data out there.

    2. put your Hard drive in a USB hard drive case, plug it into another computer and read/save from there.

    3 Alternatively, use Knoppix Live CD to recover data:

    http://www.Knopper.NET/Knoppix/index-en.html

    Download/save the file Knoppix Live CD ISO above.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://isorecorder.alexfeinman.com/isorecorder.htm

    Download the Vista software from the link above.

    After installing above ISO burning software, right click on the Knoppix ISO file > copy the Image to a CD.

    Knoppix is not installed on your PC; use only the resources of your PC, RAM, graphics etc.

    Change the boot order in YOUR computer/laptop to the CD/DVD Drive 1st in the boot order.

    Plug a Flash Drive/Memory Stick, BOOT with the Live CD, and you should be able to read the hard drive.

    When the desktop loads, you will see at least two drive hard icons on the desktop (one for your hard drive) and one for the USB key.

    Click on the icons of hard drive to open and to understand which drive is which.

    Click the icon for the USB drive and click on "Actions > Change the read/write mode" so you can write to disk (it is read-only by default for security reasons).

    Now to find the files you want to back up, just drag and drop them on the USB. When you're done, shut down the system and remove the USB key.

    See you soon.

    Mick Murphy - Microsoft partner

  • Automatic synchronization of blackBerry 10 BB10 works does not in roaming in the United States

    Our Canadian users with Blackberry Z10 devices have reported that when they travel to the United States activesync does not work automatically. They must go in the settings of e-mail, stop pushing and then turn it on again manually synchronize their devices. It is the same for users connected through COMICS or directly via ActiveSync.

    Have already checked political active Exchange is set to false for "RequireManualSyncWhileRoaming." Users have downloaded the latest software updates on their devices. We have no problems with iOS, Android, and Windows Mobile devices. Auto-Sync works absolutely fine on a trip with these devices in the United States.

    Have reported this problem to the Support of Blackberry and got one of the user to generate and sent diagnostic Unit reports while he was in the United States. While we're waiting for Blackberry diagnose these reports want to know if someone has encountered similar problems and if they managed to solve it.

    Any help or comments in this regard will be highly appreciated.

    Thank you.

    We were able to solve this problem by making a security wipe and reconfiguring email activesync on the device of the Z10. The device updates released a few weeks back probably solved the problem on the device, but it was not effective until it has been cleared and reconfigured.

  • How can I fix the "drag and drop" feature in Windows 7? It used to work, but now does not work, for no apparent reason!

    How can I fix the "drag and drop" feature in Windows 7?  It used to work, but now does not work, for no apparent reason!

    What happens when you try?  Make sure you drag the icon image and not the text of the name.

    If it still doesn't work there are some registry changes that can try to alleviate the problem.  But because the changes to the registry are tedious and dangerous, I recommend to leave the system to repair it for you.  Here's how:
    1. Type of restore in the search box of the start menu to find and open to restore system files and settings from a restore point.
    2. Click Next, choose a date before the problem started, then click Next once more.
    • This process only takes around 2 minutes and only restores your system files/settings: it will not affect any of your files, documents, photos, emails, or anything else.
    If the system restore does not resolve the problem try this to replace missing or corrupted system files.  Here's how:
    1. Type cmd into the start menu search box, and then press Ctrl-Shift-Enter to launch as administrator.
    2. At the command prompt to start the File System Check, type sfc/scannow .
  • Active state with menu manual not working does not with child pages

    I created a horizontal menu manual on my master page with two links (at WORK and about me). I did them manually as it was the only way I could work out how the style and the menu items to distance as I wanted. I created an active state that works for the main page WORK and the about me page.

    However, I have four child pages under the work, but when you click on one of them that the active State for labor (a green line under work) does not appear. When I return to the menu options to try to "solve" the problem and choose "All pages" all child pages appear in the main menu I want and does not solve the problem. I chose manual that I could put the line to show that under the term of WORK and not all field.

    Here is my Web site to demonstrate the problem: www.robertgreens.com

    Any help to fix this would be appreciated with gratitude!

    I managed to solve this problem (with the help of Live Chat Support). I needed to create an autour work and provide a 'normal' State which resembled the active state, so when you click on the pages of the child, it looked like work page parent menu (with a green line) below. This meant that I had to duplicate master page and do the same (deletion of the green line in the menu of work) for the words Me page. And now, everything looks the same: www.robertgreens.com

Maybe you are looking for