I don't have a simple example of this at hand, but consider whipping
one up. The idea is a user gesture, click a button, throws a click
event, you designate a event handler kind of like this
<mx:Button click="handleMyClick( event )"
Now, your method signature could look like this
public function handleMyClick( theEvent : Event ) : void {}
in this method you would call your service, a RemoteObject, WebService
or REST call. The service tag would have a result event/handler
attribute kind of like this
<mx:RemoteObject result="handleTheResult( event )"
with something like
public function handleTheResult( event : ResultEvent ) : void
where you may have
myLocalData = event.result;
where myLocalData would be bound somewhere like this
<mx:Label text="{ myLocalData }"
that's the basic idea. I suggest getting this flow working in a
simple helloworld example code, eh? Then move to the fun stuff!
HTH!
DK
On 6/14/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> ah, I'd have the one view populated however you have your objects/data setup.
> Each button fires a event FETCH_MON_CALENDAR that gets your data. In the
> onResult handler set the result to your local object that is bound to your
> view. bamm!
>
>
> Well, not bamm yet. I am very new to this handler, firing, event, object
> stuff. So, I don't immediately see the code that would do all this in my
> head. Any simple examples, pseudo code, pointers to helpful sections of the
> documentation greatly appreciated.
>
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> ---------
> | 1 | |
> --------- Binary Soduko
> | | |
> ---------
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice: This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:37:2725
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/37
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:37
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54