flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark goldin <markzolo...@gmail.com>
Subject Function is not ready
Date Mon, 14 Jul 2014 17:07:58 GMT
I have the following pseudo code:

public function someTypeChange(event:IndexChangeEvent=null):void
someArrayCollection.filterFunction = someFilterFunction;
public function someFilterFunction(item:Object):Boolean
I have a component that consists of two elements: TextInput and Combo.
The code above is behind this component. someTypeChange is a listener for
combo change.
When I select a new value in the combo the above code works fine. But if I
call someTypeChange like this from combo:
override public function set data(value:*):void
super.value = value;
then I am getting:
Cannot access a property or method of a null object reference. and the
error line is:
someArrayCollection.filterFunction = someFilterFunction;

Any idea?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message