Statement of Cash Flows Question

Can someone explain to me the difference on the Statement of Cash flows between the Operating Activities of "Trading Securities" and the Investing Activities of "Trading Securities" I keep getting MCQ incorrect because I don't know if the investments they are referring to go into Operating or Investing Activities. Wiley has a questions that shows an investment: MES* (Available for sale) *= Cost and market value Then asks "Under investing activities, cash outflows during 2010 totaled?" In their answer they include the investment of MES in the investing activities, why isn't it in Operating Activities?