FlexBuilder looks for [Inspectable] metadata. This is what we have on the Panel that allows you to specify the layout property...
[Inspectable(enumeration="vertical,horizontal,absolute", defaultValue="vertical", category="General", verbose="1")] There's nothing in AS that can force the compiler to only allow those 3 known types. You'd need to write a class specifically to contain that enumeration. We've decided not to do that for most of our components. Matt -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of grae_hall Sent: Monday, February 27, 2006 2:55 PM To: [email protected] Subject: [flexcoders] syntax / code hinting help for a custom classes 'type' variable I'm extending the effects class to allow me to have a custom tag that can tween a component in a known and limited number of ways. I'm not really sure what the correct syntax is to define those limited types of class methods. Say my tween class allows you to tween the alpha, the scale, and the coordinates of a designated item on the stage. So, I'm not sure how to define a variable in my class called "tweenType" so it consists of 3 potential values named alphaFX, scaleFX and coordFX, with one of them being a default. I'd also like to be able to type <myMX:effect tweenType="alphaFX"... and it code hint the known values of the variable in the class. I'm not really sure what sort object/variable is the correct one to use in AS3. Any help would be greatly appreciated - etc. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> 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/

