What is this error message mean exactly:

Classes must not be nested

I've search and found the error code but no discription, reason why, or any solutions. The class is not nested that I know of:

class ShoppingCart{

    var items : Array;
    var total : Number = 0;

    function ShoppingCart() {
        items=new Array();
    }

    function....

}

Called from a Flex 1.5 coded Flex Store converting to Flex 2.0 b2:

<mx:Application xmlns:mx= "http://www.adobe.com/2006/mxml" xmlns="*"
    initialize="initApp()"
    verticalGap="0"
    pageTitle="FlexStore">

    <!-- The ActionScript code for this class is externalized -->
    <mx:Script source="ShoppingCart.as"/>



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




Reply via email to