for (var i:int = 0; i < numChildren; i++) {
StyleClient(videoButtonBox.getChildAt(i)).setStyle("backgroundColor","#FF0000")
}

1180: Call to a possibly undefined method StyleClient.

Thanks, but I don't get it. Please explain.

Alex Harui wrote:
 >
 > It is if you cast everything correctly
 >
 >
 >
 > IStyleClient(videoButtonBox.getChildAt(i)).setStyle(…).
 >
 >
 >
 > The compile is trying to help you out so the return types of methods 
and properties are important
 >
 >
 >
 > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
On Behalf Of [EMAIL PROTECTED]
 > Sent: Monday, July 21, 2008 10:14 PM
 > To: flexcoders@yahoogroups.com
 > Subject: [flexcoders] accessing styles of children
 >
 >
 >
 > videoButtonBox. is an VBox with HBoxes for children.
 > How do I change styles as I iterate thru children?
 > videoButtonBox.getChildAt(i).setStyle() is not a function.
 >
 > var numChildren:Number = videoButtonBox.numChildren;
 > for (var i:int = 0; i < numChildren; i++) {
 > videoButtonBox.getChildAt(i)
 > }
 >
 > This page talks about rawChildren as a way to access styles, but I have
 > read it 10 times and I have no idea what they are trying to describe.
 >



------------------------------------

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to