loop / function problem

I created a series of button with references of SWFs to load that clicks on the buttons.

The click function only works for every third button. All the buttons and the names are iterated correctly.
What's the problem with the line item "ProjectClicked (this._parent.projectID)"; or something else?
Any help would be appreciated.

function buildResMenu() {}
var xSpacing:Number = 130;
var ySpacing:Number = 20;
var xStart:Number = 0;
var yStart:Number = 0;
var: number = 0;
for (i = 1; i < 4; i ++) {}
for (j = 0; j < 3; j ++) {}
Count ++;
var name: String = "menu2" + count + "_mc";
_root.M2.attachMovie ("Pinball", count);
_root.m2 [name] ._x = (I * xSpacing)-130;
_root.m2 [name] ._y = j * ySpacing;
_root.m2 [name] .main_text. Text = resMenu [count-1] [0];
_root.m2 [name] = resMenu [count-1] .projectID [1];
}


_root.m2 [name].item_btn.onPress = function () {}
itemProjectClicked (this._parent.projectID);


}
}
}


;

buildResMenu();

function itemProjectClicked (projectID:String) {}
_root. M4.loadMovie (projectID);
}

Homerun. Very logical but I could not see.

Thanks for your help ric5611

Tags: Adobe Animate

Similar Questions

  • 10g of functional problems upgrade to 11g

    Hello gurus,

    Upgrading an instance 11i, between 10 and 11g db. Can you help us with the list of common functional issues that business users would face, as linked to workflows, customizations, localozations etc... If anyone has the list of common problems to wait with their resolution, it would be very useful.

    Modules of Oracle - PO, OM, INV, WIP, BOM, PRJ, AP, AR, GL, FA, mobile Service, EAM, iProc, iExp, CPSA

    Thank you.

    A database upgrade is technical and it usually causes no functional problems. However, you may consult the following and see if they help.

    R12.1:invalid objects after 11 GR 2 Db and Ebs 12.1.3 Upgrade [1342701.1 ID]

    ORA-29532 after upgrade of database environment APPS [833237.1 ID]

    Autoinvoice does not process the records in the Table of Interface [ID 1513105.1]

    Registry of unused and unresolved recipes fail with ORA-06502 [ID 1471891.1]

    AutoInvoice error: RAXTRX does not all lines when called via RAXMTR, but imports successfully when run as a standalone [1272820.1 ID]

    Slow performance in Pick release after upgrade to RDBMS 11.2.0.1 (GR 11, 2) [ID 1087099.1]

    Configurator does not not after upgrade to 11 g 2 [ID 1206697.1]

    Transaction and quick ship shipping forms will not compile after installing new release 12.1.2 [1103188.1 ID]

    Slow performance or FRM-40212 to Documents - additional rules [1369124.1 ID]

    After upgrading the database to GR 11 2 formula generation times out [1166703.1 ID]

    Thank you

    Hussein

  • Problem with dynamically created in a loop function

    Hi, the project is to create a thumbnail image dynamically from a xml file and display an overview with the event delivery. My problem is that I dynamically create a delivery for each thumbnail and inside the function the name of the image to load. I get no error, but the loaded image is always the last of the loop. Where is my mistake? Is there a solution?
    Any help will be welcome. I work hard on it but not more idea. Thank you very much for you reply

    Thank you very much Pajaroplus, it works with your help!

  • Help Looping functions! : S

    Hey there,

    Can someone help out me once again hope. Really stuck on this, which im will she succeed to reach is to play a sound 2 times, wait a few seconds and then play again, repeat this process until a key is pressed.

    my code:

    function clickThatSays_Sound(event:Event):void

    {

    var sh_SoundLoopVar = 1;

    while (sh_SoundLoopVar = 1)

    {

    shSound_Channel = sheepSound.play (0.2);

    shSound_Transform.volume = 1;

    shSound_Channel.soundTransform = shSound_Transform;

    sh_SoundLoopVar ++;

    shSoundLoop_Timer.start ();

    shSoundLoop_Timer.addEventListener (TimerEvent.TIMER_COMPLETE, shSoundLoopTimer);

    int shSoundLoopTimer(event:Event):void

    {

    shSound_Channel = shSound.play (0.2);

    shSound_Transform.volume = 1;

    shSound_Channel.soundTransform = shSound_Transform;

    }

    }

    do not understand y it doesn't work I put in a trace, but even that appears not, it plays the sound 1 x and then stops.

    Help, please

    THX pavel

    When a while loop, and the beginning of the loop for, they are running from end to end before anything else happens.  so, it's a problem.  You also have an inconsistency of the left and right bracket.  then things get worse with nested functions and a timer that don't do anything useful.

    I don't see any way to correct your code.  but here's how I would do what you want:

    var c:SoundChannel;

    var t:Timer = new Timer (2000,1);
    t.addEventListener (TimerEvent.TIMER, playF);

    var s:Sound = new YourSound();

    playF (null);

    function f (e: Event) {}
    t.Start ();
    }

    function playF(e:Event):void {}
    c = s.play (0.2);
    c.addEventListener (Event.SOUND_COMPLETE, f);
    }

  • Function problem made Gaussian Peak.

    Hello, everyone:

    I have a problem, the buffaloes me completely. I am collect a signal of the spectrometer, and then use PIC finder to find peaks and fix them with the Gaussian curves. And that part works fine, when I tweak estimate. Next thing I've tried is to let a user choose a pic that he or she wants to adapt. Basically, I did the same thing previously, except that now it's the positions of the peaks set by the user, who are sent to Gaussian PEAK function to adapt. And here's the problem: Gaussian peak function simply do not Fit all incidental, it only to generate curves Gaussians, located at home position with initial amplitudes and the initial width. I tried everything I could think of, but nothing helped. I even tried to provide the function with a manually - set data it worked! But in my code it does nothing!

    Any ideas how this can be possible?

    Thank you very much for your help!

    Kirill

    Please form an example of ready-to-run, not a Subvi. None of your controls contain typical data.

    It seems that your data have a large lag there, but your so fixed zero offset adjustment. You need modify the setting limits and define the limits of the offset of 0.0 to inf /-inf.

    Easiets would be to right click on the entry of "limits" and "create a constant." Change it now, of zeros - inf and inf, respectively.

  • What are the Causes of 'loop Hang"problem with file i/o when using timed multiple loops on one OR cRIO-9012?

    Normal 0 false false false fr X-NONE X-NONE / * Style Definitions * / table. MsoNormalTable {mso-style-name : « Table Normal » ; mso-tstyle-rowband-taille : 0 ; mso-tstyle-colband-taille : 0 ; mso-style-noshow:yes ; mso-style-priorité : 99 ; mso-style-qformat:yes ; mso-style-parent : » « ;" mso-rembourrage-alt : 0 à 5.4pt 0 à 5.4pt ; mso-para-marge-top : 0 ; mso-para-marge-droit : 0 ; mso-para-marge-bas : 10.0pt ; mso-para-marge-left : 0 ; ligne-hauteur : 115 % ; mso-pagination : widow-orphelin ; police-taille : 11.0pt ; famille de police : « Calibri », « sans-serif » ; mso-ascii-font-family : Calibri ; mso-ascii-theme-font : minor-latin ; mso-hansi-font-family : Calibri ; mso-hansi-theme-font : minor-latin ;}

    I experienced a problem with an application. I think I've isolated the problem in the "Timed loop question - Source Code.zip" attached source code. A detailed list of my results are in the attached document "Timed loop detailed question - Results.docx.

    Overview - it seems to be closely related to the IO files and the use of "Timed loops" on the OR cRIO-9012

    1. If I activate the e/s in two loops, then two loops crash simultaneously

    2. If I activate only the e/s in a loop, then only this loop crashes

    3. If I activate the e/s in two loops and make a 'While' loop earrings, then it don't crash

    4. If it is wrote nothing in the file I/o, then it don't crash

    5. If the reference to the file is left open instead of opening and closing on each call, so it don't crash

    6. If I try to run it on "My Computer", then it don't crash

    7. If the IO is only activated in a loop and programmed to wait for one second between the file access, then it always crashes

    In my real application, any given row is only writing (at least) once a minute, but I couldn't still my application to plant within a period of 24 hours by writing a single error of a single loop once per minute, with a low CPU use. It was the impulse to test the seventh point above.

    It seems that the best solution was to open the reference to the file and let it open. I think it is a good practice in general and I'll do the update in the application. This should solve the problem, but it is very difficult to verify this due to the sporadic nature of the question. As such, I'd like to understand what was causing the problem so I can verify that it was fixed. So far, my attempts to create a single, coherent theory able to explain all aspects of this issue have failed.

    I just wanted to know at all that there has been a request for corrective action (CAR #214156) has filed for this issue to be fixed in a future release. This seems to be a problem with the VxWorks operating system, we use in real time. We have additional cRIO chassis which have a Pharlap OS where it does not work. For now, you can search for this CAR ID notes to see if this problem has been resolved for publication in the future.

    Currently, there are two solutions, we have identified for this problem:

    1. open the file before the loop and close it after. (recommended)
    2 perform file i/o in a normal loop and transfer data to a queue.

  • any other video player sansa have a loop function?

    Hello

    I'm considering buying one of the Sansa video players.  One of them have a function in a transparent manner, as is included on a DVD player video looping?

    Thank you

    Zach

    DVD players are bigger and smarter than little mp3 players.

    Video is really an add-on for the "rocket", which is actually a music player. You could investigate the new rocket +, which has a larger screen for video and may have a few more video features - it has just been introduced, so there is not much information on this subject.

  • DATACOPY function problem using several variables quick

    Hello

    I have problem when I use more variables and then a quick calculation with DATACOPY function. When I put a prompt variable in function DATACOPY it works but when I add one or more it gives me error Essbasse (I can see it in the Essbase Administration journal not in the syntax checking process):

    Not valid [Calc Script syntax

    DATACOPY Q1020-> Dec-> 'FY14'-]

    [Fri Jul 11 15:04:25 2014] Local/TS_PLAN/Prihodi/admin@Native Directory/1004/Error (1200421)

    Error occurred at or after the line [8]

    -Essbase put FY14 because it is rapidly Variable in this error above.

    I try datacopy function with this:

    DATACOPY Q1020-> Dec-> "FY14 '... It works

    DATACOPY Q1200-> Dec-> {YearPrompt}... It works

    DATACOPY Q1200-> Dec-> {YearPrompt}-> {ScenarioPrompt} it doesn't it break on variable ScenarioPrompt.

    Thank you

    Finally, I solved my problem. That was the problem Essbasse how to understand the spaces between the dimensions. I didn't not use quotes for members and I put space between the arrows. It gave me an error I think because he did not understand space as the space. Now, when I use quotes and remove the space between the arrows cross dimensions it works.

  • listagg function problem

    Hello

    I'm not able to get the data using the listagg function.

    DB: 11g

    CREATE TABLE HAS

    (NAME, VARCHAR2 (10))

    VAL VARCHAR2 (10));

    INSERT INTO A VALUES ('LTR', ' 111');

    INSERT INTO A VALUES ('LTR', ' 112');

    INSERT INTO A VALUES ('LTR', ' 113');

    COMMIT;

    SELECT * FROM A;

    SELECT * FROM WHERE A VAL IN (SELECT LISTAGG (A1. VAL, ",") THE GROUP (RANKING BY A1. (VAL) AN A1);


    Break down the problem.

    your subquery is:

    SELECT LISTAGG (A1. VAL, ",") THE GROUP (RANKING BY A1. VAL) AN A1;

    which returns the following STRING:

    LISTAGG (A1. VAL, ",") WITHINGROUP (ORDERBYA1. VAL)

    --------------------------------------------------------------------------------

    111,112,113

    Then use one to find... so basically, you do this:

    SELECT * FROM WHERE A VAL IN ('111,112,113');

    See the problem yet?

    Looking around 'dynamic IN the list... "

    I don't have the links, however, it is fairly easy to find in this search string

  • Variable effects with Loop function.

    I need to create a code that take the following strings:

    
    "Scale"
    "Position"
    "Side"
    
    
    
    
    
    
    
    
    
    
    
    

    And each of them, put in a copy of this code:

    thisComp.effect(!!!STRING HERE!!!)("Layer").name;
    
    
    
    
    
    
    
    
    
    

    And after that, the three variables, each one, receive a complete code.

    
    var a;
    var b;
    var c;
    
    
    
    
    
    
    
    
    
    
    
    

    The result would be this:

    
    var a = thisComp.effect("Scale")("Layer").name;
    var b = thisComp.effect("Position")("Layer").name;
    var c = thisComp.effect("Side")("Layer").name;
    
    
    
    
    
    
    
    
    
    
    
    
    

    I try to do it like this:

    var strings = ["Scale", "Position", "Side"];

    var val = function (a, b, c) {}

    for (var i= 0; I <channels.length; i ++) {}

    effectof the var = thisComp.effect () ('Layer') .namestrings[i];

    Val (effect);

    }

    }

    But don't have experience with functions and loops For.


    And not whether it is the right way to do it.

    I need to do this because my code becomes too long for many repetitions.

    I think for this, will have to use loop and the function.

    Thank you.

    You might have better luck if you describe what it is you are trying to do, rather than how you try to do, because it is not obvious (to me at least) exactly what your code is supposed to accomplish.

    Dan

  • Table/PHP function problem

    I'm having a problem trying to understand why a predefined table is not actually the echo/print_r when called from inside a function.

    the array is global (?) by being defined outside the or some functions. I can't see why he won't show the picture?

    He works outside the service

    $mondayset = array () "setone", "settwo", "setthree", "setfour");

    $tuesdayset = array () '' setfive', 'setsix', setseven');

    function dosets ($pubdate)

    {

    $caledardate = explode()"/", $pubdate);

      $timestamp = strtotime(""$caledardate[2]"". ) "-" . "$caledardate[0]". "-" . "$caledardate[1]");

    if (date (', $timestamp) = "MON")

    {

    echo ' it's Monday today\n ";

              print_r ($mondayset);


    }

    $thedate = 02/12/2013

    dosets ($theDate)

    Variables inside functions have local scope.

    http://PHP.net/manual/en/language.variables.scope.php

    You can pass the array to the function if you want to reference.

  • CONTAINS function problem

    Hi all!!

    I had a problem with contains the function. I am running oracle 11g.

    If I run this query:


    SELECT x.lid as id,  x.sztitular as titular, e.szname as proName, x.szresumen  as resumen, b.sztitle  as catName, 
    f.szname  as secName, d.szname  as cliName, x.datecreation as datecreation 
    
    FROM CPR_PRACTICAL_CASE x,ctg_category b, CPR_CLIENT d, pro_product e, CAT_SECTOR f, CPR_PCASE_PRODUCT g, CPR_PCASE_SECTOR h, 
    
    PRO_PRODUCTCATEGORY i WHERE  x.lid = g.lpcaseid and e.lid = g.lproductid and x.lid = h.lpcaseid 
    and f.lid = h.lsectorid and x.lclientid = d.lid and i.lproductid = e.lid and  b.lid = i.lcategoryid 
    AND x.szlocale = 'es-ES' AND  x.bavailable = '1'
    I get 1 row as a result with the column sztitular = 'rollers of measures. "

    If I add only a sentece more to this query:
    AND CONTAINS( x.sztitular, 'rodillos',1) >0
    the query returns an empty set... really, I don't understand why because the term "rollers" is present in the column of the line called "sztitular"...

    I put an index on that column:
    create index ITXT_TITULAR on CPR_PRACTICAL_CASE(sztitular) INDEXTYPE IS CTXSYS.CONTEXT;
    any help?

    Thank you very much!!!

    Hello

    the line was before creating the index or have you added the line after you have created? You created the index without the sync option, so a new line is not reflected in the index, after a sync.
    A quick synchronization goes hand in hand with

    begin
      ctx_ddl.sync_index('ITXT_TITULAR' );
    end;
    

    In addition, you could add a synchronization to creating indexes, after that, each commit will also synchronize the index:

       create index ITXT_TITULAR on CPR_PRACTICAL_CASE(sztitular) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS ('SYNC ( ON COMMIT)') ;
    

    Herald tiomela
    http://htendam.WordPress.com

  • Small loop Board problem

    Hey guys I'm reteriving a value using the getitemAt and insertion in a loop

    Now, I want to get this answer and store it in a table. I use additemAt but it doesn't seem to work. (im probably something missing :/) The data area of the table where I want to save is the following

    < mx:DataGridColumn dataField = "Num_Mach" headerText = "Machines" / >

    Here is the code

    for (var x: int = 0; x = 4; x ++) {}

    Servicetimes = int (ProcessAdder.getItemAt (x). Service_Rate)

    for (var NoMachines:int = 1; ValueRow > 100; NoMachines++)

    {

    PartProduced = Servicetimes * NoMachines

    ValueRow = 100 *(ArrivalParts/PartProduced)

    }

    NoMachines = NoMachines-1;

    ProcessAdder.addItemAt({Num_Mach:NoMachines});)

    }

    Thank you for the charges

    Gug88,

    Your code is a lot of bad things.

    First of all the variables and functions are NEVER appointed by a capital letter at the beginning - you should always use a lowercase letter at the beginning when naming variables and functions. Things that begin with a capital letter are Classes or constants.

    You should not rely on the value of a variable to loop the loop is completed.

    If you're going to have to add an element to a specific location, you must say where this place is.

    It is not clear if it is an array or ArrayCollection collection.

    You can set a value of just table by processAdder [someIndex] = {Num_Mach:NoMachines};

    For a collection of ArrayCollection is processAdder... addItemAt ({Num_Mach:NoMachines}, someIndex);

    The documentation from Adobe is excellent - spend time looking for how things work.

    Paul

  • Double line with aggrigate function problem

    I want to see in my DB duplicate rows
    This query works fine

    SELECT COUNT (*),
    Description,
    fk_patprot,
    IsConfirmed,
    actual_schdate, fk_visit
    OF sch_events1
    Description of GROUP BY, fk_patprot, isconfirmed, actual_schdate, fk_visit having count (*) > 1


    But the thing is
    I want to see the event_id between the result column, event_id is not null and unique
    If I execute this query then output will be empty, said 0 selected lines.
    SELECT event_id,
    Count (*),
    Description,
    fk_patprot,
    IsConfirmed,
    actual_schdate,
    fk_visit
    OF sch_events1
    GROUP BY description, event_id, fk_patprot, isconfirmed, actual_schdate, fk_visit
    Having count (*) > 1


    What is the alternative for this request? I want these column in a query.

    EVENT_ID | DESCRIPTION | FK_PATPROT | ISCONFERMED | ACTUAL_SCHDATE
    1. AA | BB | CC | DD
    2. AA | BB | CC | DD
    3. QQ | QQ | QQ | QQ
    4. QQ | QQ | QQ | QQ
    5. QQ | QQ | QQ | QQ

    Thanks in advance

    Published by: Navneet Singh on July 22, 2011 08:34

    Hello

    One way to solve this problem is to use the function SUMMARY, rather than the aggregate COUNT:

    WITH     got_cnt          AS
    (
         SELECT     event_id
         ,      description
         ,     fk_patprot
         ,     isconfirmed
         ,     actural_schdate
         ,     fk_visit
         ,     COUNT (*) OVER ( PARTITION BY   description
                         ,            fk_patprot
                         ,          isconfirmed
                         ,          actural_schdate
                         ,          fk_visit
                          )     AS cnt
         FROM     sch_events1
    )
    SELECT     *
    FROM     got_cnt
    WHERE     cnt     > 1
    ;
    

    Most of the functions of aggregation (including COUNT) have analytical equivalents, which can produce the same results without causing the disintegration of all results in one line per group. The PARTITION BY clause from analytical functions corresponds to the GROUP BY clause in the aggregation queries.

  • NodeIsLeaf() function problem

    Hello

    I created a derived property that uses the Boolean function NodeIsLeaf().
    The formula is:

    If (NodeIsLeaf (), S, X)

    The formula evaluates well and gives a correct result when you change the formula.
    When I save it and go to the hierarchy and checking the value of the property at the level of the node, it shows just a white.

    I noticed one thing was after a backup below is the error in the "evaluation results": message box

    ' DRM-25606: Invalid Boolean value: D..

    When I check the formula I do nto see invalid return or something else, I've included.
    Can someone tell me what can be the problem here?

    Thanks in advance,
    Mounira Dutta

    What version of DRM are you running?

    Also, since NodeIsLeaf() returns a value chain, better programming practices would be:

    If (StrToBool (NodeIsLeaf ()), S, X)

    I do not say that it will certainly solve your problem, but you might be surprised to know how many issues I have seen with access violations after upgrades and applications of a stamp that were resolved by encapsulating literals string with StrToBool(), even when they are returned by the functions of the system.

Maybe you are looking for

  • Toshiba WT8-A-102 - power problems

    Toshiba WT8-A-102 PDW09E - 00100EEN Hello I tried to lift a warranty call, but got stuck in a loop Q & A who dropped out, and he presented me with an e-mail form. Completed with all relevant details, but I have received no acknowledgement of receipt

  • Invalid credentials of AOL

    I did a factory reset because my android system used about 47% of my battery and now when I try to add my AOL account it tells me invalid credentials. Any ideas? I know the password is correct, as well as the name. I even changed my password and trie

  • Compaq 6735 b: operating system, re - install

    I don't have a Vista Business operating system drive with my laptop when I bought it. I have the product key Microsoft of the sticker on the bottom of the laptop. How can I do a reinstall Vista business without the disc?

  • Request for explanation of printing applications mobile ePrint

    What is the difference between HP ePrint Mobile Home & Biz and Google Cloud print? I have already downloaded HP Home & Biz... do I have to download both apps? If so, when I use against each other... or is better than the other if they are the same? I

  • Fan (90 b) system error / HP Pavilion dv7-4060us

    Hello. I have a Pavilion dv7-4060us for laptop, Windows 7 Home Premium, 64 - bit. I had an overheating problem not too long ago which caused my notebook to close on its own. I bought a cooling package to help with the overheating, which helped. But n