Select to view content in your preferred language

Parcel Notification Widget-will this work on Flex 2.1

4003
12
10-04-2010 08:34 PM
JayDira
Emerging Contributor
I found a Parcel Notification widget that was created in flex 1.3. Will this parcel notification widget work for Flex 2.1?
THanks.
Tags (2)
0 Kudos
12 Replies
philippschnetzer
Frequent Contributor
fixed that error by using import spark.components.ComboBox rather than its mx counterpart.  But now on to a new error:

1020: Method marked override must override another method

Here's a portion of the affected code (from the AutoComplete.as file):

package myWidgets.ParcelNotificationWidget
{
import flash.events.Event;
import flash.events.FocusEvent;
import flash.events.KeyboardEvent;
import flash.net.SharedObject;
import flash.ui.Keyboard;
import mx.collections.ArrayCollection;
import mx.collections.ListCollectionView;
import mx.core.UIComponent;
import spark.components.ComboBox;

------------------------------------------------

//--------------------------------------------------------------------------
 //
 //  Overridden Properties
 //
 //--------------------------------------------------------------------------

  //----------------------------------
 //  editable
 //----------------------------------
 /**
  *  @private
  */
  override public function set editable(value:Boolean):void
 {
     //This is done to prevent user from resetting the value to false
     super.editable = true;
 }
 /**
  *  @private
  */
  override public function set dataProvider(value:Object):void
 {
  super.dataProvider = value;
  if(!usingLocalHistory)
   tempCollection = value;


The error has to be attributed to Flash Builder 4 since this code worked perfectly in Flex Builder 3 / SDk 3.3.....

THANK YOU!!!!
0 Kudos
JayDira
Emerging Contributor
Hi Phillip,
Has there been a resolution for you error?

fixed that error by using import spark.components.ComboBox rather than its mx counterpart.  But now on to a new error:

1020: Method marked override must override another method

Here's a portion of the affected code (from the AutoComplete.as file):

package myWidgets.ParcelNotificationWidget
{
import flash.events.Event;
import flash.events.FocusEvent;
import flash.events.KeyboardEvent;
import flash.net.SharedObject;
import flash.ui.Keyboard;
import mx.collections.ArrayCollection;
import mx.collections.ListCollectionView;
import mx.core.UIComponent;
import spark.components.ComboBox;

------------------------------------------------

//--------------------------------------------------------------------------
 //
 //  Overridden Properties
 //
 //--------------------------------------------------------------------------

  //----------------------------------
 //  editable
 //----------------------------------
 /**
  *  @private
  */
  override public function set editable(value:Boolean):void
 {
     //This is done to prevent user from resetting the value to false
     super.editable = true;
 }
 /**
  *  @private
  */
  override public function set dataProvider(value:Object):void
 {
  super.dataProvider = value;
  if(!usingLocalHistory)
   tempCollection = value;


The error has to be attributed to Flash Builder 4 since this code worked perfectly in Flex Builder 3 / SDk 3.3.....

THANK YOU!!!!
0 Kudos
philippschnetzer
Frequent Contributor
Dira,

I decided to scrap getting this to work in 2.1 when the eSearch widget was released.  This widget has all the capabilities that the old parcel notification widget had plus some...

Check it out:

http://forums.arcgis.com/threads/15783-Enhanced-Search-Widget-for-FlexViewer-2.1?
0 Kudos