<?xml version="1.0" encoding="utf-8"?>
<InstanceReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Version>2.0.0.10</Version>
  <hasSegments>false</hasSegments>
  <ReportName>2. NEW ACCOUNTING PRONOUNCEMENTS</ReportName>
  <ReportLongName>006010 - Disclosure - 2. NEW ACCOUNTING PRONOUNCEMENTS</ReportLongName>
  <DisplayLabelColumn>true</DisplayLabelColumn>
  <ShowElementNames>false</ShowElementNames>
  <RoundingOption />
  <HasEmbeddedReports>false</HasEmbeddedReports>
  <Columns>
    <Column>
      <LabelColumn>false</LabelColumn>
      <Id>1</Id>
      <Labels>
        <Label Id="1" Label="6 Months Ended" />
        <Label Id="2" Label="Apr. 30, 2010" />
      </Labels>
      <CurrencyCode>usd</CurrencyCode>
      <CurrencySymbol>$</CurrencySymbol>
      <FootnoteIndexer />
      <hasSegments>false</hasSegments>
      <hasScenarios>false</hasScenarios>
      <Segments />
      <Scenarios />
      <Units>
        <Unit>
          <UnitID>u000</UnitID>
          <UnitType>Standard</UnitType>
          <StandardMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/iso4217</MeasureSchema>
            <MeasureValue>USD</MeasureValue>
            <MeasureNamespace>iso4217</MeasureNamespace>
          </StandardMeasure>
          <Scale>0</Scale>
        </Unit>
        <Unit>
          <UnitID>u001</UnitID>
          <UnitType>Standard</UnitType>
          <StandardMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/instance</MeasureSchema>
            <MeasureValue>shares</MeasureValue>
            <MeasureNamespace>xbrli</MeasureNamespace>
          </StandardMeasure>
          <Scale>0</Scale>
        </Unit>
        <Unit>
          <UnitID>u002</UnitID>
          <UnitType>Divide</UnitType>
          <NumeratorMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/iso4217</MeasureSchema>
            <MeasureValue>USD</MeasureValue>
            <MeasureNamespace>iso4217</MeasureNamespace>
          </NumeratorMeasure>
          <DenominatorMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/instance</MeasureSchema>
            <MeasureValue>shares</MeasureValue>
            <MeasureNamespace>xbrli</MeasureNamespace>
          </DenominatorMeasure>
          <Scale>0</Scale>
        </Unit>
      </Units>
    </Column>
  </Columns>
  <Rows>
    <Row>
      <Id>2</Id>
      <Label>Notes To Financial Statements [Abstract]</Label>
      <Level>0</Level>
      <ElementName>a_NotesToFinancialStatementsAbstract</ElementName>
      <ElementPrefix>a</ElementPrefix>
      <IsBaseElement>false</IsBaseElement>
      <BalanceType>na</BalanceType>
      <PeriodType>duration</PeriodType>
      <ElementDataType>string</ElementDataType>
      <ShortDefinition>No definition available.</ShortDefinition>
      <IsReportTitle>false</IsReportTitle>
      <IsSegmentTitle>false</IsSegmentTitle>
      <IsSubReportEnd>false</IsSubReportEnd>
      <IsCalendarTitle>false</IsCalendarTitle>
      <IsTuple>false</IsTuple>
      <IsAbstractGroupTitle>true</IsAbstractGroupTitle>
      <IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow>
      <IsEquityAdjustmentRow>false</IsEquityAdjustmentRow>
      <IsBeginningBalance>false</IsBeginningBalance>
      <IsEndingBalance>false</IsEndingBalance>
      <IsReverseSign>false</IsReverseSign>
      <PreferredLabelRole />
      <IsEPS>false</IsEPS>
      <FootnoteIndexer />
      <Cells>
        <Cell>
          <Id>1</Id>
          <ShowCurrencySymbol>false</ShowCurrencySymbol>
          <IsNumeric>false</IsNumeric>
          <IsRatio>false</IsRatio>
          <DisplayZeroAsNone>false</DisplayZeroAsNone>
          <NumericAmount>0</NumericAmount>
          <RoundedNumericAmount>0</RoundedNumericAmount>
          <NonNumbericText />
          <NonNumericTextHeader />
          <FootnoteIndexer />
          <hasSegments>false</hasSegments>
          <hasScenarios>false</hasScenarios>
          <DisplayDateInUSFormat>false</DisplayDateInUSFormat>
        </Cell>
      </Cells>
      <OriginalInstanceReportColumns />
      <ElementDefenition>No definition available.</ElementDefenition>
      <IsTotalLabel>false</IsTotalLabel>
    </Row>
    <Row>
      <Id>3</Id>
      <Label>NEW ACCOUNTING PRONOUNCEMENTS</Label>
      <Level>1</Level>
      <ElementName>a_NewAccountingPronouncementsTextBlock</ElementName>
      <ElementPrefix>a</ElementPrefix>
      <IsBaseElement>false</IsBaseElement>
      <BalanceType>na</BalanceType>
      <PeriodType>duration</PeriodType>
      <ElementDataType>string</ElementDataType>
      <ShortDefinition>Represents disclosure of new accounting pronouncements.</ShortDefinition>
      <IsReportTitle>false</IsReportTitle>
      <IsSegmentTitle>false</IsSegmentTitle>
      <IsSubReportEnd>false</IsSubReportEnd>
      <IsCalendarTitle>false</IsCalendarTitle>
      <IsTuple>false</IsTuple>
      <IsAbstractGroupTitle>false</IsAbstractGroupTitle>
      <IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow>
      <IsEquityAdjustmentRow>false</IsEquityAdjustmentRow>
      <IsBeginningBalance>false</IsBeginningBalance>
      <IsEndingBalance>false</IsEndingBalance>
      <IsReverseSign>false</IsReverseSign>
      <PreferredLabelRole>terselabel</PreferredLabelRole>
      <IsEPS>false</IsEPS>
      <FootnoteIndexer />
      <Cells>
        <Cell>
          <Id>1</Id>
          <ShowCurrencySymbol>false</ShowCurrencySymbol>
          <IsNumeric>false</IsNumeric>
          <IsRatio>false</IsRatio>
          <DisplayZeroAsNone>false</DisplayZeroAsNone>
          <NumericAmount>0</NumericAmount>
          <RoundedNumericAmount>0</RoundedNumericAmount>
          <NonNumbericText>&lt;div&gt;       &lt;div&gt;&lt;br /&gt;&lt;br /&gt;         &lt;div&gt;           &lt;table align="center" border="0" cellpadding="0" cellspacing="0" id="hangingindent_0" width="100%" style="FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt; &lt;tr valign="top"&gt;               &lt;td style="WIDTH: 12.25pt"&gt;                 &lt;div&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;&amp;#160;  &lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;               &lt;td&gt;                 &lt;div align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;2. NEW  ACCOUNTING PRONOUNCEMENTS&lt;/font&gt;&lt;/div&gt;               &lt;/td&gt;             &lt;/tr&gt;&lt;/table&gt;         &lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&amp;#160;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;In  September 2006, the Financial Accounting Standards Board (&amp;#8220;FASB&amp;#8221;) issued  guidance on measurements of fair value. The guidance defines fair value,  establishes a framework for measuring fair value in accordance with  U.S.&amp;#160;GAAP, and expands disclosures about fair value measurements. The  guidance does not require any new fair value measurements; rather, it applies to  other accounting pronouncements that require or permit fair value measurements.  In February 2008, the FASB issued authoritative guidance which allowed for the  delay of the effective date of the authoritative guidance for nonfinancial  assets and nonfinancial liabilities, except for certain items that are  recognized or disclosed at fair value in the financial statements on a recurring  basis (at least annually). Effective November&amp;#160;1, 2008, we adopted the  measurement and disclosure requirements related to financial assets and  financial liabilities. The adoption of the guidance for financial assets and  financial liabilities did not have a material impact on the company&amp;#8217;s results of  operations or the fair values of its financial assets and liabilities. We  adopted the provisions for nonfinancial assets and nonfinancial liabilities as  of November&amp;#160;1, 2009 and there was no material impact on our consolidated  financial statements.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&amp;#160;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;In  December 2007, the FASB issued amendments to the guidance for business  combinations. The revised guidance provides the recognition and measurement  requirements of identifiable assets and goodwill acquired, liabilities assumed,  and any non-controlling interest in the acquiree. It also requires additional  disclosures to enable users of the financial statements to evaluate the nature  and financial effects of the business combination. As a result of adopting the  amended guidance on November 1, 2009, approximately $6 million of business  combination costs, previously capitalized, were recognized in net income for the  three months ended January 31, 2010.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&amp;#160;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;In  December 2007, the FASB issued new guidance on non-controlling interests in  consolidated financial statements. The guidance requires that ownership  interests in subsidiaries held by parties other than the parent, and the amount  of consolidated net income, be clearly identified, labeled, and presented in the  consolidated financial statements. It also requires once a subsidiary is  deconsolidated, any retained non-controlling equity investment in the former  subsidiary be initially measured at fair value. Sufficient disclosures are  required to clearly identify and distinguish between the interests of the parent  and the interests of the non-controlling owners. This guidance was effective  beginning November&amp;#160;1, 2009 and had no material impact on our consolidated  financial statements.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&amp;#160;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;In  January 2010, the FASB issued guidance that requires new disclosures for fair  value measurements and provides clarification for existing disclosure  requirements. The guidance is effective for interim and annual periods beginning  after December 15, 2009, except for gross presentation of activity in level 3  which is effective for annual periods beginning after December 15, 2010, and for  interim periods in those years. We adopted the guidance for new disclosures for  fair value measurements and clarification for existing disclosure requirements  as of February 1, 2010 and there was no material impact on our consolidated  financial statements. We do not expect a material impact on our consolidated  financial statements when we adopt the guidance for level 3  activity.&amp;#160;&amp;#160;See Note 8, &amp;#8220;Fair Value Measurements&amp;#8221; for additional  information on the fair value of financial instruments.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&amp;#160;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;In April  2010, the FASB issued guidance on defining a milestone and determining when it  may be appropriate to apply the milestone method of revenue recognition for  research or development transactions.&amp;#160;&amp;#160;The guidance is effective on a  prospective basis for milestones achieved in fiscal years, and interim periods  within those years, beginning on or after June 15, 2010, with early adoption  permitted.&amp;#160;&amp;#160;We do not expect a material impact on our consolidated  financial statements due to the adoption of this  guidance.&lt;/font&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;     &lt;/div&gt;</NonNumbericText>
          <NonNumericTextHeader>&amp;#160;                                                 2. NEW  ACCOUNTING PRONOUNCEMENTS                                              &amp;#160;         In </NonNumericTextHeader>
          <FootnoteIndexer />
          <hasSegments>false</hasSegments>
          <hasScenarios>false</hasScenarios>
          <DisplayDateInUSFormat>false</DisplayDateInUSFormat>
        </Cell>
      </Cells>
      <OriginalInstanceReportColumns />
      <ElementDefenition>Represents disclosure of new accounting pronouncements.</ElementDefenition>
      <ElementReferences>No authoritative reference available.</ElementReferences>
      <IsTotalLabel>false</IsTotalLabel>
    </Row>
  </Rows>
  <Footnotes />
  <ComparabilityReport>false</ComparabilityReport>
  <NumberOfCols>1</NumberOfCols>
  <NumberOfRows>2</NumberOfRows>
  <HasScenarios>false</HasScenarios>
  <MonetaryRoundingLevel>UnKnown</MonetaryRoundingLevel>
  <SharesRoundingLevel>UnKnown</SharesRoundingLevel>
  <PerShareRoundingLevel>UnKnown</PerShareRoundingLevel>
  <HasPureData>false</HasPureData>
  <SharesShouldBeRounded>true</SharesShouldBeRounded>
</InstanceReport>
