You cannot make a class in the <mxml>, by using <mx:Script source="ShoppingCart.as"/> you put that code basically right there in the file. So, it's an include, instead of an import. Try this

<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> import ShoppingCart;<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




Reply via email to