looping through object property names in actionscript

Posted by asawilliams on Stack Overflow See other posts from Stack Overflow or by asawilliams
Published on 2010-04-22T22:03:25Z Indexed on 2010/04/22 22:23 UTC
Read the original article Hit count: 170

Filed under:
|
|

I have a dynamic class that I have created

public dynamic class SiteZoneFileUploadVO
{       
    public var destination:String = "sitezone";
    public var siteZoneId:uint;
    public var fileType:String;
    public var fileContents:String;

    public function SiteZoneFileUploadVO()
    {
    }

}

when I try to iterate over this object's property names it only iterates the dynamically added properties.

        parameters.dynVar= "value";

        for(var name:String in parameters) 
        {
            trace(name);
        }

Even though the object has all the properties equal to a value (ive checked this in the debugger) the only property name that will be traced is dynVar.

How can I iterate over all the property names and not just the dynamically added ones?

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript-3