How about this below.  I’m not sure what binding will provide in this case though.  Maybe you can be more specific about what you want?

Tracy

 

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

<mx:Script><![CDATA[

  [Bindable]

  private function now():String

  {

    var dNow:Date = new Date();

    return dNow.toDateString();

  }

]]></mx:Script> 

  <mx:Label text="{now()}" fontSize="20" />

</mx:Application>

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of efeminella
Sent: Friday, July 21, 2006 4:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FLEX 2: Databinding return values

 

Does anyone have any simple examples demonstrating how to use the new
bindable directive to bind a value returned by a method?

Thanks in advance,
Eric

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





YAHOO! GROUPS LINKS




__,_._,___

Reply via email to