flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kessler CTR Mark J <mark.kessler....@usmc.mil>
Subject RE: Bindable functions
Date Thu, 26 Jun 2014 12:17:31 GMT
We use events bound to a get function all the time to have it show change in this manner.

Without a SET function it doesn't generate events at all.  If you have a set/get and it's
marked bindable, it will add the event/checks on its own.


-----Original Message-----
From: Christofer Dutz [mailto:christofer.dutz@c-ware.de]
Sent: Thursday, June 26, 2014 8:03 AM
To: users@flex.apache.org
Subject: AW: Bindable functions

Nope ... the other way around.
last() is able to emit "lastChangedEvent" events ... it doesn't consume them.


Von: Kessler CTR Mark J <mark.kessler.ctr@usmc.mil>
Gesendet: Donnerstag, 26. Juni 2014 11:58
An: users@flex.apache.org
Betreff: RE: Bindable functions

//This responds to an event to show binding changes.
public function get last():Boolean
    return this.viewIndex === (this.numElements - 1);

//This could dispatch the event to trigger the binding changes after a new element has been
dispatchEvent(new Event("lastChangedEvent "));


-----Original Message-----
From: Scott Matheson [mailto:smatheson@intralinks.com]
Sent: Wednesday, June 25, 2014 5:20 PM
To: users@flex.apache.org
Subject: Bindable functions

   well I have never manage to get Bindable functions to work, but now i may need then

I have a view stack, with a renderer, in the rendered i would to disable elements of the render
dependent on the view stack, i could hold a bit off Bindable data (thats what i do in other
place), if i could create a Bindable function i could call this function in the render and
disable elements as needed

unfortunately i can not get this approach to work


public function get last():Boolean


return this.viewIndex === (this.numElements - 1);


<common:ViewStack id="block" dataProvider="{blocks}"

  verticalCenter="0" horizontalCenter="0"




i want to be able to dibble a button in ReadingBlockRenderer


Disclaimer: This electronic mail and any attachments are confidential and may be privileged.
If you are not the intended recipient, please notify the sender immediately by replying to
this email, and destroy all copies of this email and any attachments. Thank you.

View raw message