<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow
title="{ResumeBuilderModelLocator.getString
( 'profile.settings.cancelaccountwindow.title' )}"
layout="vertical"
horizontalAlign="center"
showCloseButton="true"
close="close ();"
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:validators="com.zolio.components.validators.*">
<mx:Script>
<![CDATA[
import
com.zolio.control.profile.settings.CancelAccountWindowEvent;
import
com.zolio.control.profile.settings.CancelAccountEvent;
import com.zolio.model.ResumeBuilderModelLocator;
import com.zolio.vo.User;
[Bindable]
private var _user : User =
ResumeBuilderModelLocator.getInstance
().user;
private function cancelAccount () : void
{
new CancelAccountEvent ( _user, this ).dispatch
();
}
private function close () : void
{
new CancelAccountWindowEvent (
CancelAccountWindowEvent.CLOSE,
this ).dispatch ();
}
]]>
</mx:Script>
<mx:Binding
source="emailAddress.text != null &&
emailAddress.text.length > 0 &&
emailAddress.text == _user.email_address"
destination="cancelAccountButton.enabled" />
<validators:MatchingValidator id="matchingValidator"
source="{emailAddress}"
property="text"
required="true"
matchTarget="{_user.email_address}"
matchFieldError="{ResumeBuilderModelLocator.getString
( 'profile.settings.cancelaccountwindow.match.message' )}" />
<mx:Label
styleName="title"
text="{ResumeBuilderModelLocator.getString
( 'profile.settings.cancelaccountwindow.query.label' )}" />
<mx:Form>
<mx:FormItem
required="true"
label="{ResumeBuilderModelLocator.getString
( 'profile.settings.cancelaccountwindow.emailaddress.label' )}">
<mx:TextInput id="emailAddress"
width="350" />
</mx:FormItem>
</mx:Form>
<mx:Text
width="100%"
htmlText="{ResumeBuilderModelLocator.getString
( 'profile.settings.cancelaccountwindow.reminder.htmltext' )}" />
<mx:Box
width="100%"
direction="horizontal"
horizontalAlign="center">
<mx:Button id="cancelAccountButton"
label="{ResumeBuilderModelLocator.getString
( 'profile.settings.cancelaccountwindow.cancelaccountbutton.label' )}"
click="cancelAccount ();" />
<mx:Button
label="{ResumeBuilderModelLocator.getString
( 'profile.settings.cancelaccountwindow.cancelbutton.label' )}"
click="close ();" />
</mx:Box>
</mx:TitleWindow>
Above one is the MXML file in which "Cancel Account" is created. But
"cancel account" button is not working because it is not clickable.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---