Gladly,
simple example.
// view
<mx:Button label="submit"
enabled="{model.formValidated}" />
// model data Object
public function set
username(value:String):void
{
_username = value;
validateForm()
}
private function validateForm():void
{
if (_username !=
undefined)
formValidated = true;
}
This is code i've just typed, but the principle remains the
same.
Data drives the view via dataBinding. There are
alternatives to the way you would structure your models and views but the
principle remains the same.
Regards,
Bjorn
Schultheiss
Senior Flash
Developer
QDC
Technologies
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of grahampengelly Sent: Friday, 8 September 2006 12:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm... Where should this go? Thanks all for the discussion.. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- [flexcoders] Cairngorm... Where should this go? grahampengelly
- RE: [flexcoders] Cairngorm... Where should this g... Dimitrios Gianninas
- [flexcoders] Re: Cairngorm... Where should th... grahampengelly
- RE: [flexcoders] Re: Cairngorm... Where s... Dimitrios Gianninas
- RE: [flexcoders] Re: Cairngorm... Whe... Graham Pengelly
- [flexcoders] Re: Cairngorm... Wh... lostinrecursion
- RE: [flexcoders] Re: Cairngo... Robert Stuttaford
- RE: [flexcoders] Re: Cairngo... Bjorn Schultheiss
- [flexcoders] Re: Cairngo... grahampengelly
- RE: [flexcoders] Re: Cai... Bjorn Schultheiss
- [flexcoders] Re: Cairngo... grahampengelly
- Re: [flexcoders] Re: Cai... Douglas Knudsen
- [flexcoders] Re: Cairngo... bjorn.schultheiss
- [flexcoders] Re: Cairngo... Tim Hoff
- [flexcoders] Re: Cairngo... Tim Hoff
- Re: [flexcoders] Re: Cai... Ralf Bokelberg
- [flexcoders] CustomListR... matt wicks
- [flexcoders] Re: Cairngorm... Where should this g... bjorn.schultheiss
- [flexcoders] Re: Cairngorm... Where should th... Tim Hoff
- Re: [flexcoders] Re: Cairngorm... Where shoul... Douglas Knudsen