<fx:Script>
<![CDATA[
import com.xmercury.event.OpenAccountEvent;
import mx.utils.StringUtil;
import mx.managers.PopUpManager;
protected function openaccount_openAccountHandler(event:OpenAccountEvent):void
{
// TODO Auto-generated method stub
if(StringUtil.trim(event.state)=="1"){
openAccountContent.removeElement(openAccountPanel);
var rechargeWindow:openRecharge=new openRecharge();
PopUpManager.addPopUp(rechargeWindow,this,true);
PopUpManager.centerPopUp(rechargeWindow);
}
}
]]>
</fx:Script><fx:Script>
<![CDATA[
import com.xmercury.event.OpenAccRechargeEvent;
import com.xmercury.event.OpenAccountEvent;
import mx.managers.PopUpManager;
import mx.utils.StringUtil;
var rechargeWindow:openRecharge=new openRecharge();
protected function openaccount_openAccountHandler(event:OpenAccountEvent):void
{
// TODO Auto-generated method stub
if(StringUtil.trim(event.state)=="1"){
//openAccountContent.removeElement(openAccountPanel);
PopUpManager.addPopUp(rechargeWindow,this,true);
PopUpManager.centerPopUp(rechargeWindow);
rechargeWindow.rechargeButton.addEventListener(MouseEvent.CLICK,function():void{
PopUpManager.removePopUp(rechargeWindow);
});
}
}
]]>
</fx:Script>var openAccount_:openAccount=new openAccount();
PopUpManager.addPopUp(openAccount_,this,true);
PopUpManager.centerPopUp(openAccount_);
openAccount_.x=FlexGlobals.topLevelApplication.stage.stageWidth/2-openAccount_.width/2;
openAccount_.y=FlexGlobals.topLevelApplication.stage.stageHeight/2-openAccount_.height/2;
openAccount_.cancelAccountButton.addEventListener(MouseEvent.CLICK,function():void{
PopUpManager.removePopUp(openAccount_); });
本文介绍了一个使用Flash技术实现的充值流程处理系统。该系统通过监听OpenAccountEvent事件来触发充值窗口的显示,并在用户完成充值操作后关闭窗口。文章详细展示了如何使用PopUpManager管理和定位弹出窗口,以及如何响应鼠标点击事件。
783

被折叠的 条评论
为什么被折叠?



