Help with this & quot; for & quot; loop...!

Hello. I recorded an ArrayCollection collection on the desktop. When I read it in the application I get the problem that the ArrayCollection collection is now a collection of objects, not a collection of type 'Player' which is the class that represents each item in the collection ArrayCollection. Each player class has three properties of type string associated with it.

I created a function to "grab" the elements of the ArrayCollection collection. It takes the ArrayCollection collection that has been saved on the desktop as the first argument and the 'player' class as the second argument and must return a typed ArrayCollection collection.

Try to understand why he continues to launch a mistake... and if I need a second loop inside the first passing variables of objects of the element to the temp object.

Thank you!

private void typeCollection (object: collection, clazz: Class): ArrayCollection collection

{
var arr:ArrayCollection = new ArrayCollection();
for each {(var point: objet de collection)}

var temp: Object = new clazz()
Temp = item;
arr.addItem (temp);
}
Return arr; return the collection of table
}

Hello.

The error I get is below...

ArgumentError: Error #1063: inconsistency of Argument on Player() County. 3 EXPECTED, got 0. hand / typeCollection [C:\Documents and Settings\Utilisateur\Mes Documents\Flex Builder 3\main\src\main.mxml:108])

108 is the line var temp: Object = new clazz();

When you ask what clazz in... Clazz represents the second argument of the typeCollection function and the argument that is passed is the player class, which is a class in an external actionscript file.

In fact I just to work. The problem was... I created the constructor function of the class player to accept three arguments (id, first name, family name)... and so new clazz() should have 3 arguments... I just changed the code below and it seems to work...

If there is a better way happy to hear!

Thanks for responding.

private void typeCollection (object: collection, claz: Class): ArrayCollection collection

{
var arr:ArrayCollection = new ArrayCollection();

var a: String;
var b:String;
var c:String;

for each {(var point: objet de collection)}

var temp: Object = new claz (a, b, c)
Temp = item;
arr.addItem (temp);
}

Tags: Flex

Similar Questions

  • I dealt with this problem for months. Even hired a comp tech to fix it and still have the same question. There, nobody helping me?

    I dealt with this problem for months.  Even hired a comp tech to fix it and still have the same question.  I had my computer wiped and windows 7 and 8 then reinstalled by a professional.  This all started when I upgraded form 7 to 8.  After 7 to 8 my computer kept getting this error. . kept crashing.  He was supposed to be fixed and it still does the same thing. I was told then move to 8.1.  I have always the same coming error.  I'm not on computer.  IS THERE ANYONE WHO KNOWS HOW TO FIX THIS?  Someone who can explain to me step by step how to fix?  I've tried everything.  Error 0x0000005c [settings 000000000000800 0x000000000000000B x 0 0 x 0000000000000000 0 x 0000000000000000]

    Hello

    The upgrade to 8.1 was perhaps not the best thing to do...

    A lot of people are having problems with it also.

    If it is a desktop computer, have you checked the wall outlet and the plug on the back of the computer?

    Your point about starting the tone certainly as a power or a hard disk problem...

    The problem with you mouse pointer could be related to a feature called quick start...

    Your other problem also, perhaps... Try to turn it off and see if it helps...

    This feature works only when you make a STOP and then start.

    It is not perform a RESTART.

    Turn on or off...

    Go to the control panel... Power options, and then select choose the power what buttons on the left.

    Then select change settings that are currently unavailable near the top center of the screen...

    Lower on the window, uncheck the quick start.

  • Where can I get help with this message? «Adobe Acrobat Reader DC could not open (my file.xls) because it is not a type of supported file or because the file has been damaged (for example, it was sent as an attachment to e-mail and has not been correctly d

    Where Iget can help with this message? «Adobe Acrobat Reader DC could not open (my file.xls) because it is not a type of supported file or because the file has been damaged (for example, it was sent as an attachment to e-mail and has not been correctly decoded).» I don't know where to go or how to solve this problem. It started to happen after I went to the office 356 and uses Windows 10.

    Hi brionp43071032,

    Please see the troubleshooting provided in this KB doc steps: fix damaged document error when opening PDF files

    Let us know if you still experience the problem.

    Kind regards

    Meenakshi

  • Installation update for creative cloud can never exceed 2%, which means that I cannot have access to Premiere Pro. Can anyone help with this?

    Installation update for creative cloud can never exceed 2%, which means that I cannot have access to Premiere Pro. Can anyone help with this? I need urgent access to Premiere Pro, so I can return videos to my clients.

    Check your (win) Task Manager or activity (mac) for a suspended adobe monitor helps the process that you can complete.

  • Dialog box that says ' Creative Cloud Installer wants to make changes. Type your password for this purpose"- I type my password for Adobe ID (creative cloud), but it will not accept it. who should I go for help with this query?

    Dialog box that says ' Creative Cloud Installer wants to make changes. Type your password for this purpose"- I type my password for Adobe ID (creative cloud), but it will not accept it. who should I go for help with this query?

    It does not ask the cloud your computer admin password password!

  • Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.

    Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.

    Printing which forms an angle seems ok, but one that is horizontally seems faded, incomplete.

    I was wondering if I saved a layer somewhere and set it as a default value.

    If you group the layers, you will be left with a single layer, thus spreading your concern.

    Suggest that you do the following:

    1. Make sure you have the latest drivers for your printers
    2. Reset the default preferences.

    Hold the Alt, Ctrl + Shift keys when you click the icon to open the items. When asked if you want to delete the settings file, say Yes.

    Items nearby and let regenerate the file.

  • Help, had fights with this sql for a day now

    Grateful if someone could give me a pointer here. fighting with this thing for a day and can't do things.

    Have 2 tables
    tbl_ate_jun & tbl_pd_jun
    the two paintings by xt

    This is creates it for everyone.
    CREATE TABLE "ME"."TBL_PD_JUN"
      (
        "ID"                  VARCHAR2(500 BYTE),
        "PROJECT_NUMBER"      VARCHAR2(500 BYTE),
        "PROJECT_NAME"        VARCHAR2(500 BYTE),
        "DESCRIPTION"         VARCHAR2(500 BYTE),
        "PROJECT_TYPE"        VARCHAR2(500 BYTE),
        "ORGANIZATIONAL_NAME" VARCHAR2(500 BYTE),
        "CUSTOMER_NAME"       VARCHAR2(500 BYTE),
        "OFFICE_FSR"          VARCHAR2(500 BYTE),
        "PROGRAMS_FSR"        VARCHAR2(500 BYTE)
      )
      ORGANIZATION EXTERNAL
      (
        TYPE ORACLE_LOADER DEFAULT DIRECTORY "XE_FTP" ACCESS PARAMETERS ( records delimited BY newline skip 0 fields terminated BY ',' OPTIONALLY ENCLOSED BY '"' MISSING FIELD VALUES ARE NULL ) LOCATION ( 'tbl_pd_jun.csv' )
      ) ;
    CREATE TABLE "ME"."TBL_ATE_JUN"
      (
        "ID"                        VARCHAR2(500 BYTE),
        "PERSON_SSO"                VARCHAR2(500 BYTE),
        "FIRST_NAME"                VARCHAR2(500 BYTE),
        "LAST_NAME"                 VARCHAR2(500 BYTE),
        "VOUCHER_HOURS"             VARCHAR2(500 BYTE),
        "FISCAL_YEAR_WEEK"          VARCHAR2(500 BYTE),
        "ORG_TIER2_NAME"            VARCHAR2(500 BYTE),
        "ORG_TIER3_NAME"            VARCHAR2(500 BYTE),
        "VOUCHER_REASON"            VARCHAR2(500 BYTE),
        "VOUCHERING_STATUS"         VARCHAR2(500 BYTE),
        "ORG_TIER4_NAME"            VARCHAR2(500 BYTE),
        "TIER4_MANAGER_NAME"        VARCHAR2(500 BYTE),
        "VOUCHER_CODE"              VARCHAR2(500 BYTE),
        "VOUCHER_DESCRIPTION"       VARCHAR2(500 BYTE),
        "PERSON_COUNT"              VARCHAR2(500 BYTE),
        "HOUR_TYPE"                 VARCHAR2(500 BYTE),
        "APPLIED_FLAG"              VARCHAR2(500 BYTE),
        "COST_CENTER_CODE"          VARCHAR2(500 BYTE),
        "VOUCHER_CLASS"             VARCHAR2(500 BYTE),
        "VOUCHER_CLASS_DESCRIPTION" VARCHAR2(500 BYTE),
        "VOUCHER_SUB_CLASS"         VARCHAR2(500 BYTE),
        "PROGRAM_TYPE"              VARCHAR2(500 BYTE),
        "PAYCODE_NAME"              VARCHAR2(500 BYTE),
        "PAY_CODE"                  VARCHAR2(500 BYTE)
      )
      ORGANIZATION EXTERNAL
      (
        TYPE ORACLE_LOADER DEFAULT DIRECTORY "XE_FTP" ACCESS PARAMETERS ( records delimited BY newline skip 0 fields terminated BY ',' OPTIONALLY ENCLOSED BY '"' MISSING FIELD VALUES ARE NULL ) LOCATION ( 'tbl_ate_jun.csv' )
      ) ;
    Basically, in tbl_ate_jun, it has all the user ID (person_sso)
    Im trying to generate a report that contains all person_sso numbers in the first column.
    Second column have applied_hours, then office_hours, then programs_hours, then total_hours, then diff_hours (difference).

    Here's the code so far, but I just cant get, it is true, that it shows never all of the sso, each select individually works very well, but may not be combined, does not work well.

    select a.person_sso,NVL(sum(b.applied_hours),0),NVL(sum(c.office_hours),0),NVL(sum(d.programs_hours),0),NVL(sum(e.total_hours),0),NVL(sum(f.diff_hours),0) 
    from 
    
    tbl_ate_jun a,
    
    (SELECT
    tbl_ate_jun.person_sso as applied_sso,
    tbl_ate_jun.Voucher_Hours as applied_hours
    FROM
    tbl_pd_jun,
    tbl_ate_jun 
    WHERE
    tbl_ate_jun.voucher_code IN (select project_number from tbl_pd_jun
    where Office_FSR IS NULL AND Programs_FSR IS NULL)
    and tbl_ate_jun.voucher_code=tbl_pd_jun.project_number
    )b,
    
    
    (SELECT
    tbl_ate_jun.person_sso as office_sso,
    tbl_ate_jun.Voucher_Hours as office_hours
    FROM
    tbl_pd_jun,
    tbl_ate_jun
    WHERE
    tbl_pd_jun.Project_Number=tbl_ate_jun.Voucher_Code AND tbl_pd_jun.Office_FSR = 'Y' 
    )c,
    
    (SELECT
    tbl_ate_jun.person_sso as programs_sso,
    tbl_ate_jun.Voucher_Hours as programs_hours
    FROM
    tbl_pd_jun,
    tbl_ate_jun
    WHERE
    tbl_pd_jun.Project_Number=tbl_ate_jun.Voucher_Code AND tbl_pd_jun.Programs_FSR = 'Y'  
    )d,
    
    (SELECT
    tbl_ate_jun.person_sso as total_sso,
    tbl_ate_jun.Voucher_Hours as total_hours
    from
    tbl_ate_jun 
    )e,
    
    
    (SELECT
    tbl_ate_jun.person_sso as diff_sso,
    tbl_ate_jun.Voucher_Hours as diff_hours
    from
    tbl_ate_jun
    WHERE voucher_code NOT IN (select project_number from tbl_pd_jun)
    )f
    
    
    where
    a.person_sso=b.applied_sso
    and a.person_sso=c.office_sso
    and a.person_sso=d.programs_sso
    and a.person_sso=e.total_sso
    and a.person_sso=f.diff_sso
    
    group by a.person_sso
    Help, please. not every column is filled with a sum of data, some would be empty if it applies to the sso.

    Published by: Jay on August 10, 2011 07:45

    not every column is filled with a sum of data, some would be empty if it applies to the sso.

    You will probably need to OUTER JOIN then...
    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/queries006.htm#sthref3295
    http://www.Oracle-base.com/articles/9i/ANSIISOSQLSupport.php#outer_join

  • [Error number: 0x8024400A] Need help with this error... I reinstalled XP SP1 and I can't get an auto update that's simple to install, just get this error every time

    [Error number: 0x8024400A] Need help with this error... I reinstalled XP SP1 and I can't get an automatic update that's simple to install, just get this error at each time HHHHEEEELLLPPPPP! Thank you

    I had the same problem.  But finally found a solution.  If your listing is similar to mine, then keep.  XP Media Center Edition 2005 (sp2).  AMD Athlon 64 x 2 Dual-Core, HP a1630n desktop computer.

    Go to the HP website, search for sp37394-XP sp3 Upgrade utility Microsoft for systems equipped with AMD processors.

    I had the same 0 x 80240036, 0x8024400a error, but realize my problem was really get manually downloaded sp3 and installed without continue loop crashing and not error messages.

  • help with this thread using oracle 7.3

    Dear expert;

    On this thread, I am using

    Help with this

    but I'll need help more with additional information in this regard. see examples of data below

    Hello experts.

    I use oracle 7.3. Therefore, I have the sample data below

    create the table table_one

    (

    req_week varchar (1000).

    Username varchar (1000).

    sale number (30),

    place varchar (1000).

    break_sales number (30)

    );

    insert into table_one values ("week 1", 'John', 100, "NY", 2 ").

    insert into table_one values (' week 1', 'Chris', 20, "TX", 3 ')

    insert into table_one values ("week 1", "Melissa", 80, 'GOES', 4 ')

    insert into table_one values (' week 2', 'Katy', 40 'SC', 1 ")

    insert into table_one values (' week 2', 'Angle', 10, 'NC', 2 ')

    insert into table_one values (' week 2', "Vick", 30, 'CA', 3 ')

    insert into table_one values (' week 3', 'Zack', 60 'CA', 1 ")

    insert into table_one values (' week 3', 'Deb', 60 'NM', 2 ')

    insert into table_one values (' week 3', 'Antoine,"60,"TX", 3 ')

    necessary results

    I need the top 2 sales in a place a week

    expected results

    req_week username place sales

    Week1 John 100 NY

    Week1 Melissa 80'S

    Semaine2 Katy 40 SC

    Semaine2 Vick 30 CA

    Semaine3 Zack 60 TX

    Semaine3 Deb 60 NM

    Note, in this particular case, if there is equality in sales, then use the break_sales column as a case. The break_sales was never a tie... it is so far the query and it does not work as expected

    SELECT    d.req_week, d.username, d.sales, d.place
    FROM      nikeus_report.dbo.table_one  d
    ,        nikeus_report.dbo.table_one  o
    WHERE    d.req_week  = o.req_week
    AND      d.sales    <=  o.sales   
    GROUP BY  d.req_week, d.username, d.sales, d.place
    HAVING    COUNT (*)  <= 2         
    ;
    
    

    Any help is appreciated. Thank you

    Hello

    It seems that your existing query is very good, he's going; Just add the conditions for breaking in the WHERE clause:

    SELECT d.req_week

    d.username

    d.sales

    d.place

    FROM table_one d

    table_one o

    WHERE d.req_week = o.req_week

    AND (d.sales< >

    OR (d.sales = o.sales

    AND d.break_sales > = o.break_sales

    )

    )

    GROUP BY d.req_week

    d.username

    d.sales

    d.place

    HAVING COUNT (*)<=>

    ORDER BY d.req_week

    COUNT (*)

    ;

    Thanks for posting the CREATE TABLE and INSERT statements; that really helps.

  • I had to update my windows computer and you can no longer open Photoshop cs2.  trying to find help with this new system is not easy to use to put it kindly.  I downloaded the program and don't have the available key.  I tried to sign in but where.

    I had to update my windows computer and you can no longer open Photoshop cs2.  trying to find help with this new system is not easy to use to put it kindly.  I downloaded the program and don't have the available key.  I tried to sign in but where.

    For Photoshop CS2 activation has been reprocessed, so your original drive and the serial number does not work.

    As an owner of CS2, Adobe has a copy without activation and serial number, to which you are entitled.

    The serial number is to the right of the download link for Windows. You'll need this one, not your old number.

    Get them here: download Acrobat 7 and CS2 products

  • Need help with this gallery of xml!

    I have build a gallery but its very simple... There are pictures of the xml file.

    I have attached all the zip files.

    I just want two things if anyone can help.

    first of all when I press the next button, he's going to the next image, but without effect. It just displays the following image... I want to incorporate the effect of dragging when the image is changed to another.

    and secondly, I want to use the AutoPlay feature.

    Once swf starts images came one by one with a vertical drop of a few seconds.

    Thanks in advance... I really need help with this..!

    For the look of sliding effect using the actionscript class Tween.  Allows you to create motion tweens using the code.  The example below will be tween property _x of the instance named anObject from 0 to 300 in 3 seconds...

    import classes before using

    Import mx.transitions.Tween;
    Import mx.transitions.easing.Regular;

    TW var = new Tween (anObject, "_x", Regular.easeIn, 0, 300, 3, true);

    To implement an enforcement function auto you need to import all the images first, in the order, then you will need to use form any controlled timer, such as setInterval (with clearInterval not to need) in order to have things turn on automatically by some part-time

  • Help with this

    Help with this

    Help with what?

  • Illustrator draw android app says that it requires 4.3. I have a viking RCA pro 10.1 which is 5.0, but it says that my device is not compatible. Can anyone help with this?

    Illustrator draw android app says that it requires 4.3. I have a viking RCA pro 10.1 which is 5.0, but it says that my device is not compatible. Can anyone help with this?

    HI JBlessed,

    What is a Tablet? Because the draw is not yet supported on Android tablets.

    Sue.

  • I was told that I have to disable my account from my PC to add to another computer... I've done it before and I lost many of my images that were on LR.  No matter WHAT HELP with this please

    I'm trying to load another computer with CC, I was told that I have to disable my PC mine.  I did once before and lost a lot of my images from LR, suggestions on this please.

    I do the LR back ups system too.

    Thank you very much

    PAM

    Hi goaliemom

    There is no way to disable CC products. When you enable a CC product on another computer, simply connect to Creative Cloud.CC will ask you if you it will activate on more than 2 computers.

    I've done it before and I lost many of my images that were on LR.  No matter WHAT HELP with this please

    On the computer on which you will see that your images are not displayed?

    Catalog check the most recently used file > open recent in Lightroom

    Try opening a recent backup made on your newly added computer

    ~ Assani

  • Get error 207 trying to download creative Cloud and someone please help with this problem, thanks in advance please.

    Get error 207 trying to download creative Cloud and someone please help with this problem, thanks in advance please.

    Please refer to

    Error 207 to "install Adobe".

Maybe you are looking for

  • Unable to connect by Satellite Z30 - A - 1 8 external projector

    Hello I have problems to connect to this laptop to an external projector. When I connect the cable, it recognize the projector and screen is displayed, but after 15-30 seconds, the screen goes black and computer keeps trying to connect again to proje

  • Apple TV with Mac Mini question

    I'm looking into getting an older Mac mini to use as a server for my 4th generation, Apple TV, when I went with my laptop.  I understand that El Captain can be installed in a Mac Mini it's early 2009 or earlier, but since I don't use it as a computer

  • HP OfficeJet 6500 (E709a) network problems

    Hello. I have a new HP OfficeJet 6500 (E709a) its all in one. I'm trying to use it through a network at home. He was already working for 1 computer, a laptop wireless, BUT not for me, an ethernet wired desktop. PC: Windows 7 64-bit Laptop: Windos Vis

  • Windows 7 64 bit does not recognize the external hard drive.

    Windows 7 64 bit does not recognize the external hard drive.  I have an old 250 GB Western Digital external hard drive.  Neither of my windows 7 machines recognize it.  It does not show in the device, Manager of the computer Manager or Explorer.  Any

  • Need help with a JavaScript to generate random number

    HelloFirst things first. I don't know the JavaScript J.When I thought about a ready to use solution to generate a random number in Captivate, I found this on a forum of LinkedIn.(1) add a user to your project variable, called "NombrAl". Its value can