'Void' is now 'void'; lowercase.

function addToCart () : void { /* */ }

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sam5654295
Sent: Friday, February 10, 2006 10:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Type annotation is not a compile-time constant

I am working in Flex Builder 2, trying to work through some tutorials
that are in AC 2.  I can't seem to find the problem with this AC 2
code that prevents it from compiling in AC 3.  Any suggestions?

<mx:Script>
                <![CDATA[
                         function addToCart():Void
                        {
                        
cart.addItem(coffeeCombo.selectedItem.label,coffeeCombo.selectedItem.data);
                        }
                ]]>
</mx:Script>






--
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/
 


Reply via email to