My & quot; for & quot; loop is not supposed!...

Hello - my problem is the following...

Here is a block of code. There are two tracks inside. My onstage are three MC named 'ch1_mc', 'ch2_mc' and 'ch3_mc '...

.. .the first stroke appears as soon as you test the animation, and it traces '1' (since it is this 'I'). Now, the trace of the second (which has just ONE line that separates the two traces) returns to a '4' when I rollover my 'ch1_mc' MC. How 'I' came from 1-4 in this line? In fact, how it get to 4, based on this code? ...

I'm very confused, and this is stuff messing around online toward the end, I need to load the SWF "01/titlePage.swf", but instead it tries to load ' 04/titlePage.swf"(which doesn't even exist!)...

Thanks in advance for any help that can be offered...

********************************************************************************

I don't know where this second track is picking up at i = 38, but it's not going to be the same as the i used to set the rollover. If you want to _root ["ch" + i + "_mc"] to know that it is about i, you set something like

Tags: Adobe Animate

Similar Questions

  • for each loop works not

    My instructions of tracing inside ma for each loop will not appear. Please someone check my code. I'm no errors in flex builder. When I debug all vars are holding data prober. Thank you very much


    "essa tkinen" wrote in message
    News:gr27rt$3SB$1@forums. Macromedia.com...
    > Yes there are data there is a list of comma delimited keywords that are
    > catagorys. the selectedCatArray holds to a list item. I want to
    > returns true if the item is in this list

    On the one hand, you will leave this function in the first round,
    because you return the result inside the loop. Return immediately leave him
    function. On the other hand, I am tempted to move on to something more like
    this:

    for (var i = 0; i)<_item.cats.length; i++)="">
    iCat var = item.cats ;
    do your business here
    }

    I had really bad luck to get for each to work the way I think that it
    expected.

    HTH;

    Amy

  • "1 MHz" for the name of the source on the time loop does not work on LabVIEW Real-time 9.0

    A Loopis Timed running as expected if a time source is manually chosen in the dialog box of configuration for "1 kHz" (first digit) and "1 MHz" (second digit). If the time Source name is set through the input of the channel "1 kHz", the loop is executed, too third figure). But if the input string is "1 MHz", the loop is not executed (last figure). The channel two are created by "create constant" on the entry of the loop to exclude typos. Is it possible to set the Source of a loop time timed through the input string to the real-time clock hard Mhz?

    OK, I was a bit confused by the difference between the behavior of error...

    Now, the question is quite clear. Aid for the timed loop provides the following regarding the Source of the calendar entry:

    Specifies the name of the synchronization source to use to control the structure. The source of synchronization must be created using the create synchronization Source VI on the block diagram or selected in the dialog box Configure the timed loop .

    So, I think that you have somewhere in your code a time Source.VI create if you pass "1 kHz" as the name. But you did not do this for your clock "MHz 1"...

    hope this helps,

    Norbert

  • For loop does not

    Hello world

    I try to use a simple loop for and it does not work. I have a group of drop-drop that I named Dropdown.A - Dropdown.F

    I am able to make a table using:

    var Dropdown = this.getField("Dropdown").getArray ();

    However when I try and loop on the table to help:

    for (i = 0; i < Dropdown.length; i ++) {}

    Console.println (dropdown [i]. (Name)

    }

    I get "Drop-down list [i] is not defined" so it seems that the i is never replaced by the correct when number one loop.

    We never seen this or know why this is happening?

    Thank you

    Mike

    This code works for me in an event of the button mouse up, so there is more than that, or I do not understand how you use.

  • Code for the loop in AS3

    Hi there, new ActionScript in general, I have this code snippet I want again and again for always loop:

    Quote:
    If (controlID.text == "2") {}
    trace ("worked");
    } else {}
    trace ("failed");
    }
  • IMAP is not supposed to retrieve emails from the server only? In my case, all mails are downloaded to my mac and I can see the offline!

    IMAP is not supposed to retrieve emails from the server only? In my case, all mails are downloaded to my mac and I can see the offline!

    His grip on my mac space, even if I'm using the same settings for my Iphone email are not downloaded to the phone and its not not using any space!

    It is often possible to access the same account using IMAP or POP.

    Make sure that your settings are correct. The account type is on the first part of the account preferences.

  • I am told my Firefox version is outdated but on Firefox said I'm updating version 39.0 + solutions for older versions do not work

    I run Firefox version 39.0 but told me that my version of Firefox is outdated even by the Mozilla site.
    About Firefox said I'm updating version 39.0 + solutions for older versions do not seem to work.
    I tried to download the full installer and run it, https://www.mozilla.org/firefox/all/
    (he was supposed to detect my existing installation and update).
    Then reopen Firefox and go to this site.
    Yet this site advises again once update me my version of Firefox...
    I would appreciate your help.
    Keep up the good work,
    Thanks in advance,

                                   Gunter Von Breslau
    

    If you couldn't fix it by resetting the custom entries general.useragent subject: config as described in the article above, then you might also Update firefox that should address this issue as well...

  • loop does not work when exporting my slide show

    Photos (1.5) loop works on the slideshow which saves to iTunes, but not when I save on USB or play office.

    Photos documentation does not, if the "Loop" function is supposed to be exported with the video rendering.

    But you can play the video in QuickTime Player as an infinite loop using the command "View > loop ⌥⌘L.

    You can report the problem to Apple: Apple - Photos - comments

    It's a bug or a problem of incomplete documentation.

  • Possibility to use the Enum control as an index for the loop entry For

    Hello world

    I'm curious to know if an ENUM type could be an index entry for a loop For (in fact, I tried in labview but it did NOT work).

    I use Enum to my two configurations (only two elements), but sometimes I need to run the two together.

    I wonder if it has a good structure to manage it, or simply replace ENUM with table.

    Thank you

    -Kunsheng

    Here is an example of use of the nodes of property:

  • SR400 while the loop does not work

    Hello

    I'm using LabVIEW for control SR400 through a GPIB card.

    I use SR400 to count the number of signal in a second, wait 0.05 s, then again count the signal once, wait 0.05 s once again, and so on.

    However, the while loop didn't iterate. When I started the program, it is only once.

    In execution of highlight mode, when an iteration is finished, he waited a long period starting the next. In normal mode, it doesn't have to iterate.

    Also when I clicked the stop button, it's been clicked. However when I wrote a very simple program, the stop button worked normally.

    In any case the button issue is not very important. I don't care that the program iterates forever or not. I just want to iterate.

    I searched the jury and had not could not any related problem.

    Is it better to attach my VI? The VI is in my computer lab.

    Thank you very much!

    This code just feels bad.

    (No real management mistakes, deep, stacked sequences FOR lines that are wired to iterate through only once, controls on the right and right to left, wiring weird code on average the last 10 items (Hint: means ptbypt with a length of 10 sample he would!).) If you want to use the wire of the error, the sequences would not even necessary)

    If the stop button does not reset, it means that the iteration of the loop does not terminate. It can fill in only if the two structures of the sequence ends.

    Have you tried running in execution, emphasizing fashion while looking at the diagram? Probably one of the communications is at a standstill. For example, the instrument sends really 6 bytes at the end? When you set the overall timeout and what is it?

  • write 1 d digital table in a binary file and start a new line or insert a separator for each loop writing file

    Hello:

    I'm fighting with digital table of 1 d writeing in a binary file and start a new line or insert a separator for each loop writing file. So for each loop, it runs, LABVIEW code will collect a table 1 d with 253 pieces of a spectrometer. When I write these tables in the binay file and the following stack just after the previous table (I used MATLAB read binary file). However whenever if there is missing data point, the entire table is shifted. So I would save that table 1-d to N - D array and N is how many times the loop executes.

    I'm not very familiar with how write binary IO files works? Can anyone help figure this? I tried to use the file position, but this feature is only for writing string to Bodet. But I really want to write 1 d digital table in N - D array. How can I do that.

    Thanks in advance

    lawsberry_pi wrote:

    So, how can I not do the addition of a length at the beginning of each entry? Is it possible to do?

    On top of the binary file write is a Boolean entry called ' Prepend/chain on size table (T) '.  It is default to TRUE.  Set it to false.

    Also, be aware that Matlab like Little Endian in LabVIEW by default Big Endian.  If you probably set your "endianness" on writing binary file as well.

  • Why a while loop does not start in a flat sequence if I have another loop running in a different sequence of flat?

    Hi all

    Basically, I'm in the order of many device and regulation for that pourpose, I created a sequence of plate to do. Also, at times I have start the potentiostat measures I use too, which follows a sequence and I created a second flat sequence to do this. In a part of my experience, I want to follow the voltage and current of high voltage power supply that is located in the flat main sequence and also read the results I'm getting with the potentiostat simultaneously.

    In the main sequence, there is a constant bollean which triggers the beginning of the secondary sequence. In the framework after it contant Boolean, I have a while loop in which I read 2 analog inputs of the power supply high voltage with my USB-6218 for awhile every 100 m, my problem is that the Boolean constant actually starts the subsequence flat but when it reaches a while loop in which I continue to read the results of the potentiostat , for a reason that the operation does not start until the while loop in the main loop is not finished.

    I communicate with the software of the potentiostat through a driver made by the manufacturer.

    Is it possible to read analog inputs with USB DAQ and simultaneously read the results of the potentiostat?

    Thank you very much

    Without being able to see the code, can only speculate. My guess is that you have probably some data flow to the second loop that depends on the first loop finish.

  • Error blue screen STOP: 0x0000007e. I powercycled the sys, unable to choose for sure (keys do not work when you try to select a mode) sys is trying just to go back to the blue screen. Help, please

    STOP: 0x0000007e (0xc000001d, ox8537008 0xba4c3508 0xba4c3204) and the system would not come to the top.

    Error blue screen STOP: 0x0000007e. I powercycled the sys, unable to choose for sure (keys do not work when you try to select a mode) sys is trying just to go back to the blue screen. Help, please

    Symptoms: Booted computer, loaded the raid drivers and showed at the start screen XP for half a second then to BSOD with a Stop error Code 0x0000007E - see also a lot of users (0xC0000001D, 0 x-, etc.) as well.

    Solution:

    1 boot from your Windows XP CD and start the recovery console. You may need to press F6 while RC loads in order to load the SATA drivers. you will have a prompt c:\WINDOWS to the console.

    2. type: CD $NtUninstallKB977165$ \spuninst (it's the update, I had to uninstall to get out of the boot loop, other updates can be uninstalled by changing the name of the directory to $NtUninstallKBCODE$, where KBCODE is the code KB)

    3. type: BATCH spuninst.txt

    4. type: exit

    Don't forget to configure your system to boot from the HD before resuming. I hope this helps. Saved me a lot of hassle today.

    -Tom Steele
    http://www.hawkandtom.com Tom Steele

  • AS3/AIR - for the loop is ignored but the rest of the function to run

    This has left me speechless. It is either something really stupid on my part or part of the Flash. Here goes:

    I have a function that accepts all simply a table of movieclip references, executes a loop to add them to a sprite container, then the container gives a background color. It works perfectly the first time. Now, when the program returns to this feature yet it completely ignores the loop but always adds the background color. Here's the function:

    public void prepareContainer (sections): Sprite

    {

    trace ("prepareContainer called.");

    trace ("cuts" + sections);

    containerClips.splice(0,containerClips.length);

    trace ("containerClips.length is" + containerClips.length);

    for (var rs: int = 0; rs < sections.length; rs ++)

    {

    trace ("sections [" + rs + "] is" + [rs] sections);

    }

    var w: Number = 0;

    var l:Number = 0;

    for (var sx:int = 0; sx < sections.length; sx ++)

    {

    trace ("sx is" + sx);

    section of the sections [sx] = var;

    If (SX > 0)

    {

    section.y = sections [sx-1] there + .height sections [sx-1];

    w = section.width;

    l = l + section.height;

    }

    container.addChild (section);

    }

    container.graphics.beginFill (0xfafafa); Just for the background color in the container.

    container.graphics.drawRect (0,0,w,l);

    container.graphics.endFill ();

    containerClips = sections;

    for (var p:int = 0; p < containerClips.length; p ++)

    {

    trace ("containerClips [" + p + "] is" + containerClips [p]);

    }

    return the container;

    }

    You can also see that I have traces in the service to trace the content and the length of the incoming array.

    It's track of the first time through:

    called prepareContainer!

    sections.length is [object ViewPrevTranClosed_AEM], [medicareHead_AEM object], [object NAMEsubscriberSection_AEM], [object SearchInformationSection_AEM]

    containerClips.length is 0

    sections [0] is [object ViewPrevTranClosed_AEM]

    sections [1] is [object medicareHead_AEM]

    sections [2] is [object NAMEsubscriberSection_AEM]

    sections [3] is [object SearchInformationSection_AEM]

    SX is 0

    SX is 1

    SX is 2

    SX is 3

    containerClips [0] is [object ViewPrevTranClosed_AEM]

    containerClips [1] is [object medicareHead_AEM]

    containerClips [2] is [object NAMEsubscriberSection_AEM]

    containerClips [3] is [object SearchInformationSection_AEM]

    ============================================

    As you can see, the traces in the loops went very well and the result is as expected. The container is filled with the movieclips. However, on the next time through the result is that the background color and none of the movieclips are added to the container. The following trace shows also that the loops did not stand even if the table is full and there is no condition that stop the loops. This is the inside track:

    called prepareContainer!

    sections.length is [object ViewPrevTranClosed_AEM], [medicareHead_AEM object], [object NAMEsubscriberSection_AEM], [object SearchInformationSection_AEM]

    containerClips.length is 0

    Any ideas on what is the cause?

    You can have a circular reference. containerClips is the same table that the sections. Try this simple test:

    array1 = [1,2,3,4] var;

    var array2 = array1;

    array1.splice(0,array1.) Length);

    array1 = [];

    trace (array2. Length);

    I'm sure that you expect to see it trace 4, but it trace 0. Now try to use the line commented out instead. Now you get a record of 4.

    If somewhere in your code you establish sections also point to the same table as containerClips, that you really wanted to duplicate a table, you can use the concat:

    Var items = containerClips.concat ();

    It would be either his own picture double and a pointer to the same table.

  • syntax for a loop

    Hey people,

    I've heard for loops is the best way to accomplish what I need. With my level of coding, I try to have that when all checkbox States are true, then a specific image.  the question is when I was using earphones of events within each of the mouse click events, this would trigger the click on the ninth all the conditions would be met. The syntax for a loop seems daunting, is it possible to run my function, so it is always "listening" or will run eimmeidatley if the conditions are met?

    OFbandSEVENclose.addEventListener (MouseEvent.CLICK, OnFRYERbandSEVENclose);

    function OnFRYERbandSEVENclose (e: MouseEvent): void

    {

    gotoAndPlay (1);

    }

    OFbandSEVENcheckONE.visible = false;

    OFbandSEVENcheckTWO.visible = false;

    OFbandSEVENcheckTHREE.visible = false;

    OFbandSEVENcheckFOUR.visible = false;

    OFbandSEVENcheckFIVE.visible = false;

    OFbandSEVENcheckSIX.visible = false;

    OFbandSEVENcheckSEVEN.visible = false;

    OFbandSEVENcheckEIGHT.visible = false;

    OFbandSEVENcheckBUTTON1.addEventListener (MouseEvent.CLICK, checkbuttonONE, false, 0, true);

    function checkbuttonONE(e:Event):void

    {

    If (OFbandSEVENcheckONE.visible == true) {}

    OFbandSEVENcheckONE.visible = false;

    } else {}

    OFbandSEVENcheckONE.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON2.addEventListener (MouseEvent.CLICK, checkbuttonTWO, false, 0, true);

    function checkbuttonTWO(e:Event):void

    {

    If (OFbandSEVENcheckTWO.visible == true) {}

    OFbandSEVENcheckTWO.visible = false;

    } else {}

    OFbandSEVENcheckTWO.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON3.addEventListener (MouseEvent.CLICK, checkbuttonTHREE, false, 0, true);

    function checkbuttonTHREE(e:Event):void

    {

    If (OFbandSEVENcheckTHREE.visible == true) {}

    OFbandSEVENcheckTHREE.visible = false;

    } else {}

    OFbandSEVENcheckTHREE.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON4.addEventListener (MouseEvent.CLICK, checkbuttonFOUR, false, 0, true);

    function checkbuttonFOUR(e:Event):void

    {

    If (OFbandSEVENcheckFOUR.visible == true) {}

    OFbandSEVENcheckFOUR.visible = false;

    } else {}

    OFbandSEVENcheckFOUR.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON5.addEventListener (MouseEvent.CLICK, checkbuttonFIVE, false, 0, true);

    function checkbuttonFIVE(e:Event):void

    {

    If (OFbandSEVENcheckFIVE.visible == true) {}

    OFbandSEVENcheckFIVE.visible = false;

    } else {}

    OFbandSEVENcheckFIVE.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON6.addEventListener (MouseEvent.CLICK, checkbuttonSIX, false, 0, true);

    function checkbuttonSIX(e:Event):void

    {

    If (OFbandSEVENcheckSIX.visible == true) {}

    OFbandSEVENcheckSIX.visible = false;

    } else {}

    OFbandSEVENcheckSIX.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON7.addEventListener (MouseEvent.CLICK, checkbuttonSEVEN, false, 0, true);

    function checkbuttonSEVEN(e:Event):void

    {

    If (OFbandSEVENcheckSEVEN.visible == true) {}

    OFbandSEVENcheckSEVEN.visible = false;

    } else {}

    OFbandSEVENcheckSEVEN.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON8.addEventListener (MouseEvent.CLICK, checkbuttonEIGHT, false, 0, true);

    function checkbuttonEIGHT(e:Event):void

    {

    If (OFbandSEVENcheckEIGHT.visible == true) {}

    OFbandSEVENcheckEIGHT.visible = false;

    } else {}

    OFbandSEVENcheckEIGHT.visible = true;

    }

    }

    THE FINAL SCREEN =.

    function OFbandSEVENCOMPLETE(e:Event):void

    {

    If (OFbandSEVENcheckONE.visible == true & & OFbandSEVENcheckTWO.visible == true & & OFbandSEVENcheckTHREE.visible == true & & OFbandSEVENcheckFOUR.visible == true & & OFbandSEVENcheckFIVE.visible == true & & OFbandSEVENcheckSIX.visible == true & & OFbandSEVENcheckSEVEN.visible == true & & OFbandSEVENcheckEIGHT.visible == true) {}

    gotoAndPlay (12);

    }

    }

    Stop();

    I see the problem:

    check .visble [n-1] =! check .visible [n-1];

    must be visible not folded down

Maybe you are looking for