I dont believe binding is a good use in the instance.  What is the
string in the class file used for?  

Is it used in displaying something?
  If so the value should probably be in the Model and bound to the
View and not in a Class.

Is it used for class logic?

Probably better to take a step back and disect what you are trying to
accomplish.

One way (not necessarily good) is to pass a reference to a function in
the class as a parameter of the Event object in the EventBroadcaster
call.  Then set this function reference in the execute method of the
Command object to a private attribute.  Then in the onResult method
call use this attribute to return a call back to your class file with
the data you want set.  This is a lot of coupling and you really
should look at what you are trying to accomplish before going this route.

Renaun


--- In flexcoders@yahoogroups.com, "Libby" <[EMAIL PROTECTED]> wrote:
> No takers so I guess it is not possible?
> How do you Flex gurus get your model updated dynamically, or, am I
> asking in the wrong group?
> 
> --- In flexcoders@yahoogroups.com, "Libby" <[EMAIL PROTECTED]> wrote:
> > In my class file I call EventBroadcaster to dispatch an event that
> > eventually retrieves a string into a Command.onResult(). I need that
> > string back in my class file. So, I want to bind a variable in the
> > class file to that onResult method. Could someone show me how to do
> > this? Perhaps there is a way to instantiate mx:Binding in my class
> > file some way, that would do it, but I can't figure it out.
> > 
> > Or is there a better way (the "right" way) to do this without coupling
> > the class file to the command file?
> > 
> > Thanks,
> > Libby





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to