not sure of the reason but could be a type casting problem. try
switch (MyType([EMAIL PROTECTED])) jason -----Message d'origine----- De : [email protected] [mailto:[EMAIL PROTECTED] la part de ben.clinkinbeard Envoyé : lundi 17 juillet 2006 05:17 À : [email protected] Objet : [flexcoders] switch (expression)? I think not Posting this mostly for reference in case anyone else spends 30 minutes uttering WTF over and over... Although the documentation for the switch statement purports to accept "any expression", that is most certainly not the case. See below. // will always fall through to the default case. switch ([EMAIL PROTECTED]) // will work as expected var myVar:MyType = [EMAIL PROTECTED]; switch (myVar) Is there a valid reason for this behavior? Ben ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/

