You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by mark goldin <ma...@gmail.com> on 2015/02/18 17:07:18 UTC
BindProperty - use function for chain object
I am trying to use a function for the chain object.
BindingUtils.bindProperty(image, "visible", this, { name: "visible",
getter: IconVisible()});
I am getting an error:
Error #1034: Type Coercion failed: cannot convert false to Function.
Any idea how to make it work?
Thanks
Re: BindProperty - use function for chain object
Posted by Tom Chiverton <tc...@extravision.com>.
Can you post a super small self contained example ?
Tom
On 18/02/15 16:32, mark goldin wrote:
> I am getting an error in:
> private function getHostPropertyValue():Object
> {
> * return host == null ? null : getter != null ? getter(host) :
> host[name];*
> }
>
> Error #1063: Argument count mismatch on myClass/IconVisible(). Expected 0,
> got 1
>
> I dont need any parameters on IconVisible().
>
> On Wed, Feb 18, 2015 at 10:12 AM, Tom Chiverton <tc...@extravision.com> wrote:
>
>> On 18/02/15 16:07, mark goldin wrote:
>>
>>> BindingUtils.bindProperty(image, "visible", this, { name: "visible",
>>> getter: IconVisible()});
>>>
>> Should this be
>> getter: IconVisible
>> ?
>>
>> Tom
>>
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
Re: BindProperty - use function for chain object
Posted by mark goldin <ma...@gmail.com>.
I am getting an error in:
private function getHostPropertyValue():Object
{
* return host == null ? null : getter != null ? getter(host) :
host[name];*
}
Error #1063: Argument count mismatch on myClass/IconVisible(). Expected 0,
got 1
I dont need any parameters on IconVisible().
On Wed, Feb 18, 2015 at 10:12 AM, Tom Chiverton <tc...@extravision.com> wrote:
> On 18/02/15 16:07, mark goldin wrote:
>
>> BindingUtils.bindProperty(image, "visible", this, { name: "visible",
>> getter: IconVisible()});
>>
>
> Should this be
> getter: IconVisible
> ?
>
> Tom
>
Re: BindProperty - use function for chain object
Posted by Tom Chiverton <tc...@extravision.com>.
On 18/02/15 16:07, mark goldin wrote:
> BindingUtils.bindProperty(image, "visible", this, { name: "visible",
> getter: IconVisible()});
Should this be
getter: IconVisible
?
Tom