I'm trying to find if a row with the same name exists in an XML List
Collection. The problem is, the e4x I try is not supported by
XMLListCollection. I keep getting a Error #1123: Filter operator not
supported on type mx.collections.XMLListCollection.

Here is my code:

    public function addNewProject(event:FlexEvent):void {
        var projectName:String = project.text;
        var exists:Boolean = projectsList.(@name == projectName);

        if (!exists) {
           var newNode:XML = <project name=""/>;
           [EMAIL PROTECTED] = project.text;
           newNode.created = new Date();
           projectsList.addItemAt(newNode, 0);
        }
    }


TypeError: Error #1123: Filter operator not supported on type
mx.collections.XMLListCollection.

Reply via email to