Get text from a reapeater object – flex-Collection of common programming errors

I have a label that is using a repeater to get information form a database. Now I’m trying to pass the information in that label to another label component, but I haven’t had any luck.

if I do a trace on the label in the repeater eg.

trace (Gotid.text);

I get this error in debug mode

warning: unable to bind to property ‘user_name’ on class ‘Object’ (class is not an IEventDispatcher) undefined

Any ideas on how I go about getting information form Gotid to display as text in another label?

  • k I’ll try to make this as straight forward as possible

        private function Getid():void {
        var stmt:SQLStatement = new SQLStatement();
        stmt.sqlConnection = sqlConn;
        stmt.text = "SELECT * FROM tbl_animal WHERE animal_ptag='"+ptagInput.text+"'"; 
        stmt.execute();
        var result:SQLResult = stmt.getResult();
        acGetid = new ArrayCollection(result.data);
        animalid.text = Gotid.text;
        trace (Gotid.text);
    }