ObjectUtil.getClassInfo(myObj).properties

-Josh

On Thu, Jan 8, 2009 at 4:31 PM, Nate Beck <n...@tldstudio.com> wrote:

>  As far as I know... which is pretty much the quote from the documentation
> you posted there.  You cannot unless you're dynamically adding properties to
> the object.
> I do know, however, that if your class extends flash.utils.Proxy, you can
> setup an iterator by overriding the  nextName, nextNameIndex, and nextValue
> methods.
>
> http://livedocs.adobe.com/flex/2/langref/flash/utils/Proxy.html#nextName()<http://livedocs.adobe.com/flex/2/langref/flash/utils/Proxy.html#nextName%28%29>
>
> HTH,
> Nate
>
> On Wed, Jan 7, 2009 at 9:51 PM, p smith <flexcod...@yahoo.com> wrote:
>
>>   Does ActionScript have any statements/operators that support looping
>> the properties of user-defined classes?
>>
>> for..in works on looping basic objects. However, in the docs, the Looping
>> page for "Programming ActionScript 3.0" says:
>>
>> What you cannot do is iterate through the properties of an object if it is
>> an instance of a user-defined class, unless the class is a dynamic class.
>> Even with instances of dynamic classes, you will be able to iterate only
>> through properties that are added dynamically.
>>
>> Doc page here:
>>
>> http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_16.html
>>
>> thanks,
>>
>> p
>>
>>
>>
>
>
> --
>
> Cheers,
> Nate
> ----------------------------------------
> http://blog.natebeck.net
>
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk

Reply via email to