Help! If/else check operation

Hello

I have a little trouble with some pretty basic code. I hope someone can help!

It's the source of my misfortunes:

var check1:Number = 0;

images.onEnterFrame = function() {}
If (images._x = 630) {}
Check1 = 0;
} ElseIf (images._x < 630) {}
Check1 = 1;
} else if (images._x > 630) {}
Check1 = - 1;
}
}

With just this active code (I've set up a test file), the 'images' clip gets repositioned to x = 630 during execution. Why it does this? I tried this function only to change the value of the variable "check1", not actually do any translation on "images".

Any help would be greatly appreciated!

(Oh, and it comes to AS2.)

Because you assign to be so...

If (images._x = 630) {}

= is for transfer, == for comparison

Tags: Adobe Animate

Similar Questions

  • Check operation fate

    I cannot perform spell checking operations after the creation of a message. The check mark of fate (a box with the letters ABC at the top) appears washed out. Your help, please.

    What e-mail program? Win7 have a built-in.

  • a pop up has informed me of a firefox update at a time when I couldn't do it. later, I clicked on browser &gt; help &gt; about firefox &gt; check for updates and was informed mine to date...? Is there another way to check?

    I tried to copy the url of origin of the first window for can jump the debates when I was clear to do, but unfortunately it isn't copy-able.

    The update:

    • Click (in Firefox) help > about Firefox > check updates

      • It downloads / installs the incremental update, so that you do not need to download the installation program complete, largest in the link below and is fully automatic
    • Download, SAVE to the desktop, close Firefox, and then click the file downloaded to install/update:

    See: http://support.mozilla.com/en-US/kb/Installing+Firefox

  • With the help of VBA - check to see if Acrobat Pro is open on the computer of the users

    Hi all. I have an access request that generates a lot of single page PDF reports in a folder on the user's computer, then when it's over, it combines all files in a single pdf file on the desktop of users. If the user has left open Acrobat Pro before it begins to run reports, when it starts to try to combine the files, he will receive an error message.

    I would check if Adobe Acrobat Pro is open from the beginning of the routine, so that the user doesn't have to spend as much time regenerating reports yet. I was not able to find the VBA code that will do this. Can anyone help?

    Thank you

    David

    Hello test screen name. I do catch the error and generate a friendly error message to ask the user to close Adobe Acrobat. The problem is, according to the criteria they choose for the report, it might take 5-10 minutes before you still see this error because of the hundreds of individual reports pdf it takes to generate. It is not until my code is ready to combine these pdf files they see the message. So, it is not really an error of execution, so to speak.

    But, I found the answer to my question and I wanted to share with everyone. The answers are found here:

    API: Whether an application is running

    API: Get the class name of a running application

    What I did, is to paste all of the code in these 2 pages in a new module of access. Then I made sure that Adobe Acrobat is loaded on my machine. I ran the fEnumWindows() void and it printed all my open programs class names. I got the class name for Adobe Acrobat, which is AcrobatSDIWindow. Then, I modified the select case statement in the following function, to include the Acrobat of the string and the name of the class:

    [code]

    Function fIsAppRunning (ByVal strAppName As String _

    Optional FActivate As Boolean) As Boolean

    Dim lngH As Long, strClassName As String

    Dim GNLX As Long, lngTmp As Long

    Const WM_USER = 1024

    On Local Error GoTo fIsAppRunning_Err

    fIsAppRunning = False

    Select Case LCase$ (strAppName)

    Case "excel": strClassName = "XLMain".

    Case "word": strClassName = "OpusApp".

    'Access' box: strClassName = 'Omain '.

    Case "powerpoint95": strClassName = "PP7FrameClass.

    Case "powerpoint97": strClassName = "PP97FrameClass.

    Case 'Notepad': strClassName = "Notepad".

    Case 'acrobat': strClassName = "AcrobatSDIWindow."

    Case "wordpad": strClassName = "WordPadClass."

    Case Else: strClassName = vbNullString

    Select end

    If strClassName = "" then

    lngH = apiFindWindow (vbNullString, strAppName)

    On the other

    lngH = apiFindWindow (strClassName, vbNullString)

    End If

    If lngH <> 0 Then

    apiSendMessage lngH WM_USER + 18, 0, 0

    GNLX = apiIsIconic (lngH)

    If GNLX <> 0 Then

    lngTmp = apiShowWindow (lngH, SW_SHOWNORMAL)

    End If

    If fActivate then

    lngTmp = apiSetForegroundWindow (lngH)

    End If

    fIsAppRunning = True

    End If

    fIsAppRunning_Exit:

    Exit Function

    fIsAppRunning_Err:

    fIsAppRunning = False

    CV fIsAppRunning_Exit

    End Function

    [/ code]

    Now I can just send 'acrobat' this function to see if the application is open.

    Sincerely,

    David

  • HELP PLEASE! My operating system is xp, SP3. I have a half finished email to complete & send, but I can't re - open my Outlook. I get a message that a "DIALOG" box is open & must first be closed and "BEEP"

    Please see title above.  This computer is really crazy.   Unable to open my Outlook.  Said dialog boxes open and must be closed before I open Outlook, but I can not find something open.  I even tried restarting the comptr.  PLEASE HELP ASAP!  Thank you.

    Rich

    This dialog box means there is an open window (somewhere maybe under your enlarged window) which must be closed before you can reopen outlook.

    If there is no visible window I open the Task Manager and check there.  If there is not, you may lose any changes and restart to clear the error.

  • I have a Dell Inspiron 1525. The player/cd-DVD drive will not work. The help section it says it is (code 10). The drivers seem to be installed. Can you help me please? Operating system is Windows Vista Home Premium

    I tried the support centre and followed their advice, but no luck yet.

    Hello

    Description of errors related to the 10 Code that generates the Device Manager in Windows on computers
    http://support.Microsoft.com/kb/943104/

    Please make all below even if you have done some before as it is often the set of operations which solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double-click on the device - driver tab - click
    Update the drivers (this will probably do nothing) - then RIGHT click the drive - UNINSTALL - REBOOT
    This will refresh the default driver stack.

    Then, work your way through these - don't forget the drive might be bad, could be a loose cable or
    slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error during the installation of Windows Vista after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Hope these helps.
    Rob - bicycle - Mark Twain said it is good.

  • HELP blackBerry smartphones - check email account problems

    I got a Blackberry message asking me to check my email 3 days ago, so that all these problems with Blackberry are produced.  When I go to email account wonder my username and paassword.  BlackBerry does not seem to recognize these one more, so now mymail has completely disappeared from my Blackberry (8900 torch with the last update 6.00 on this).

    I spent over 2 hours trying all sorts of things, including the 3 but thingy, steps I can't do step 2, and yet he asks me my user name and password which he doesn't like!

    Orange has the ability to reset your password and set up your account for you.  If you ever hurt to validate your e-mail address when asked to do so, Orange should be your solution.

    I hope that helps you.

  • Help to reinstallation of operating system!

    Hi, have a HP laptop and reinstall a hard drive. Do everything with it, now I need to install an operating system. I had windows XP before the computer crashed and don't have a recovery disc, to help or suggestions is appreciated. Thank you, Lisa

    As you don't have a recovery disk, you will need to get either a HP or a version of Windows XP OEM recovery disk and use the product ID at the bottom of your laptop (which, in my experience, becomes unreadable after a lot of used real turn).

    But, given that the keys are locked to certain media, should be an OEM of Windows XP (Home, Pro, based on your license) version. If you were to use a detail or the multimedia upgrade, it would not work with your key, even if it's a legitimate key.
  • Show/hide multiple fields on list drop-down choice to help if else

    Goal is to display or hide the three fields according to a choice of menu drop-down. If show X, hide if Y.

    How a syntax on line error 6 when adding to the trigger mouse-to the top of the field drop-down list.

    Are several actions allowed for each if condition?

    if(event.target.value = "Yes")
      getField("Top_inches").display = display.visible;
      getField("Top_numerator").display = display.visible;
      getField("Top_denominator").display = display.visible;
    else
      getField("Top_inches").display = display.hidden;
      getField("Top_numerator").display = display.hidden;
      getField("Top_denominator").display = display.hidden;
    

    You have at least two syntax errors. The first is that you used the wrong operator for comparison. 'Is', not '=' (this is the value assignment operator).

    The second is that you did not put blocks of code inside the curly braces.

    If your code should be:

    if (event.target.value == "Yes") {
        this.getField("Top_inches").display = display.visible;
        this.getField("Top_numerator").display = display.visible;
        this.getField("Top_denominator").display = display.visible;
    } else {
        this.getField("Top_inches").display = display.hidden;
        this.getField("Top_numerator").display = display.hidden;
        this.getField("Top_denominator").display = display.hidden;
    }
    
  • If else check box in the table does not properly

    I'm new to this forum and hope someone can help me with that.

    I created a dynamic array and I have 2 types of boxes.

    One is a check box for the individual lines that fills a value in a cell. Otherwise, it will be zero.

    Another is a master checkbox that activates the check all lines and value box

    Problem statement:

    When I click on the master check box, every individual is selected. However, the value of the cell is incorrect. Value of all the rows is based on the value of the first row.

    Here is my code:

    Master Checkbox (using the formcal in click):

    If (CheckBoxAll == "1") then

    Table.Row1 [*]. CheckBox1 = "1";

    Table.Row1 [*]. Cell4 = table.row1 [*]. Cell2;

    on the other

    Table.Row1 [*]. CheckBox1 = '0 '.

    Table.Row1 [*]. Cell4 = 0;

    endif

    Check box for the individual line (using the formcal in click):

    If (CheckBox1 == "1") then

    Cell4 = Cell2

    on the other

    Cell4 = 0

    endif

    Otherwise, I tried to turn the master value of the box fill off & put a validation in each line instead. This time it works! but it kept prompting a message for each rows whenever I unchecked the box: "the value of Checkbox1 is not valid.

    Here is my code:

    Master Checkbox (using the formcal in click):

    If (CheckBoxAll == "1") then

    Table.Row1 [*]. CheckBox1 = "1";

    on the other

    Table.Row1 [*]. CheckBox1 = '0 '.

    endif

    Check box for the individual line (using the formcal to validate the event):

    If (CheckBox1 == "1") then

    Cell4 = Cell2

    on the other

    Cell4 = 0

    endif

    Appreciate all the help that I am at a loss as to why the tis error occurs and how to solve it.

    Thank you!

    Hello world

    I managed to find a solution to my problem. I write for the benefit of any1 facing the similar problem.

    I changed formcal to Javascript.

    Master box (Click event):

    vRows var = Table._Row1.count;

    for (var i = 0; i)

    {

    If (this.) RawValue is "1")

    {

    xfa.resolveNode ("Table.Row1 [" + i + "]"). CheckBox1.rawValue = "1";

    xfa.resolveNode ("Table.Row1 [" + i + "]"). Cell4.RawValue = xfa.resolveNode ("Table.Row1 [" + i + "]"). Cell2.RawValue;

    }

    on the other

    {

    xfa.resolveNode ("Table.Row1 [" + i + "]"). CheckBox1.rawValue = "0";

    xfa.resolveNode ("Table.Row1 [" + i + "]"). Cell4.RawValue = 0;

    }

    }

    Another point to note, it only works for the table of data binding. If the row in the table has been created original, somehow the Table._Row1.count does not work. It detects that the value = 1.

    Thanks to all who tried to help me!

  • Help with the check box.

    Hello

    I have a question with the checkbox. I use Apex 4.0.
    I have 5 check boxes and using the Lovs I gave values for each check box.

    When I select the boxes to tick and submit, the values are inserted into a single column.
    Example of
    Consider the CB as checkbox

    CB1 1
    CB2 2
    CB3 3
    CB4 4
    CB5 5

    When I select CB1 CB4, CB5 databases it stores like 1:4:5 but, I need to be stored in format 10045. As if I select CB2, 3 5, then it should be kept as 02305

    The return value of the checkbox should be included as well as the other values not selected as 0s such as related in the above format.

    Can someone help me with this.


    Thank you
    Rik

    It should work now.

    Like I said before, you should use the new element (P2_X) in the process of page(process of CB_EXAMPLE line) as the concatenated numbers.
    So I changed the field reference column DB on the P2_NUMBER_2 and added to P2_X.
    Also, I changed P2_X to only textfield display(you can change to hidden, without security of checksum), since view only items will be unavailable in the process of the page.

  • Need help (what else is new)

    Hello

    I has been a while since I have regarding aid (it's good)

    How ever Noah I think I'm losing my mind

    Simple script button and sound stop button do not work,

    Here is the script

    mySound = new Sound();
    mySound.attachSound ("destination.mp3");
    sound_btn.onRelease = function() {}
    mySound.Stop ();
    }

    btn_skip.onRelease = function() {}
    getURL("..) ("/ pages/main.htm");
    }

    If I am controlled BOF error within the action editor window I get no error

    But if I run the app I get the buttons do not work and I get errorlike this:

    * Error * scene = scene 1, layer = Layer 3, frame = 1:Line 1: statement must appear in the Manager
    mySound = new Sound();

    * Error * scene = scene 1, layer = Layer 3, frame = 1:Line 2: statement must appear in the Manager
    mySound.attachSound ("destination.mp3");

    {* Error * scene = scene 1, layer = Layer 3, frame = 1:Line 3: statement block must end by '}'
    sound_btn.onRelease = function() {}

    * Error * scene = scene 1, layer = Layer 3, frame = 1:Line 5: operator '=' must be followed by an operand

    * Error * scene = scene 1, layer = Layer 3, frame = 1:Line 3: statement must appear in the Manager
    sound_btn.onRelease = function() {}

    * Error * scene = scene 1, layer = Layer 7, setting 1:Line = 1: statement must appear in the Manager
    btn_skip.onRelease = function() {}

    Total ActionScript errors: 6 reported errors: 6

    Any help would be appreciated

    Thanx

    Lev

    Most of your mistakes come join this code to an object rather than place them on the timeline occupied by this object (all errors referring to require a ' Manager on ").  So to remove the code for the object and create a new layer actions on this timeline and place the code.

  • Mini 110: help! Password check failed

    Help please...

    Verified password failed

    Fatal error... System stopped

    CNU9363HJ9

    At the password prompt try > > e9lofgfzwo

    Other than the 9 are all lower case

  • Help to resume the operating system pre-installed with regard

    I lost my pre-installed operating system 'Windows 8 Pro' & now I have no way to recover it. My laptop is under warranty and I bought it in January 2014 to Saudi Arabia. What should I do to recover my operating system pre-installed? HP Saudi Arabia can provide me free recovery disk, if I managed to ship I have relatives there for the reception.

    You have a choice of where to get a set of recovery disks. The cost is usually about $30,00 USD

    Order a HP recovery disk

    It is unlikely that you will be able to get a recovery disk free of charge. A choice of methods to create recovery recovery disk series or usb media has been presented to you when you set up the laptop and unfortunately you chose to not use it.

  • Need help installing SPA962 - check DNS?

    Establishing a SPA962 behind a 7402V billion.

    Static IP is fine, can ping OK phone, get the advanced config login screen in Internet Explorer, BUT as soon as I enter my VSP on ext 1,2 and 3 phone is stuck on a screen "check DNS".

    I have the settings from my ISP in DNS 1 and 2, but some how they don't seem to work.

    Port railroads RTP and SIP for the SPA ports.

    Any advice on how to get my installation work would be appreciated.

    The "check DNS" was the question, which is now resolved. I changed my billion router to select the DNS address automatically, then the DNS addresses is entered in the phone of the SPA of my ISP DNS, selected "DHCP, manual" in the box, enter a hostname for my system, put my routers IP address in the domain box dah and the ti just clicked on the spot.

    I spent my VSP in the post and they recorded immediately.

Maybe you are looking for