I am trying to get a user message to display from within a validation
class. When validation fails I want to retrieve the appropriate
message so that it shows up in the default message display generated
by Validator class. Thus, I do not know how I can bind to the
"mouseover" message area from the view, it seems to me only the
Validation class knows which field to bind to, at run time.
Undoubtably this issue has been solved many times by you guys so
please help me understand what I am doing....

--- In [email protected], "kaibabsowats" <[EMAIL PROTECTED]> wrote:
> 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 [email protected], "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 [email protected], "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 --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/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