Hey guys,

I'm getting the error referenced in the subject line when I place any series
effect anywhere in any application. I get it with SeriesInterpolate,
SeriesSlide, and SeriesZoom tags. I also get it if I try to apply the effect
in ActionScript using the setStyle method of a chart series (e.g. PieSeries,
ColumnSeries) object. In fact, I get the same error even if the series
effect tag is the only thing between <mx:Application> and </mx:Application>!

Anybody else run into this? I'm thinking that either my SDK, or my copy of
Flex Builder, or my copy of Charting, or perhaps my Flash player, is
corrupt. 

Please pass along any info or suggestions you may have. I'm pasting the
complete error message plus a code sample below.

Thanks
-Jim

============================
Here's the complete error message:


param 1 incompatible
   virt mx.effects::IEffectInstance
mx.effects::TweenEffect/mx.effects:TweenEffect::initInstance()
   over mx.effects::EffectInstance
mx.charts.effects::SeriesEffect/mx.charts.effects:SeriesEffect::initInstance
()
VerifyError: Error #1053: Illegal override of SeriesEffect in
mx.charts.effects.SeriesEffect.
        at TestSeriesEffects/TestSeriesEffects::_SeriesInterpolate1_i()
        at
TestSeriesEffects$iinit()[C:\projects\dhs\TestSeriesEffects\TestSeriesEffect
s.mxml:25]
        at _TestSeriesEffects_mx_managers_SystemManager/create()
        at
mx.managers::SystemManager/mx.managers:SystemManager::initializeTopLevelWind
ow()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2289]
        at
mx.managers::SystemManager/mx.managers:SystemManager::docFrameHandler()[C:\d
ev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2214]
[SWF] C:\projects\dhs\TestSeriesEffects\bin\TestSeriesEffects-debug.swf -
722,293 bytes after decompression


===========================

I first ran into the error when trying to use the effect in an app that I'm
building for a customer. When I couldn't get around it, I tried it in
various other apps, but kept getting the same error. I finally copied and
pasted an entire sample app from the docs, and got the same result. Here's
the sample app I used:

<?xml version="1.0"?>
<!-- charts/SeriesInterpolateEffect.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
  <mx:Script><![CDATA[
     import mx.collections.ArrayCollection;

     [Bindable]
     public var items:ArrayCollection = new ArrayCollection([
        {item: 2000},
        {item: 3300},
        {item: 3000},
        {item: 2100},
        {item: 3200}
     ]);

     public function addDataItem():void {
        // Add a randomly generated value to the data provider
        var n:Number = Math.random() * 3000;
        var o:Object = {item: n};
        items.addItem(o);
     }
  ]]></mx:Script>

  <!-- Define chart effect -->  
  <mx:SeriesInterpolate id="rearrangeData" 
     duration="1000" 
     minimumElementDuration="200" 
     elementOffset="0"
  />
  
  <mx:Panel title="Column Chart with Series Interpolate Effect">
     <mx:ColumnChart id="myChart" dataProvider="{items}">
        <mx:series>
           <mx:ColumnSeries 
            yField="item" 
            displayName="Quantity" 
            showDataEffect="rearrangeData"
           />
        </mx:series>
     </mx:ColumnChart>
  </mx:Panel>
  <mx:Button id="b1" click="addDataItem()" label="Add Data Item"/>
</mx:Application>


Reply via email to