我有一个不是我创建但需要编辑的 Flash 移动网站。单击提交按钮时,它会检查登录名和密码是否在 SQL 数据库中。问题是,我找不到在数据库上运行查询的方法,甚至找不到数据库连接的位置。我尝试在代码中搜索“SQL”、“数据库”和“连接”等词,但没有成功。我单步执行代码,在其中找到对方法“super”的调用,但随后它返回到原始方法,然后用户登录。有人可以解释对数据库的调用在哪里吗?
我想知道的其他事情是:SQL 连接在哪里?在主要(非移动站点)中,有一个 web.config 有一行说
<add name="TPConnectionString1"
connectionString="DataSource=xxx.xx.xxx.xx,xxxx\sqlexpress;Initial Catalog=TP;Persist Security
Info=True;User ID=xxxxx" providerName="System.Data.SqlClient"/>
移动代码中的类似行在哪里(什么文件:例如 web.config、xyz.as 等)?
super(type, bubbles, cancelable) 有什么作用?
这是提交按钮的方法:LoginView.mxml
private function btnclicked():void{
techController.username = txtUsername.text;
techController.password = txtPassword.text;
var evt:TechEvent = new TechEvent(TechEvent.LOGIN_USER);
this.dispatchEvent(evt);
}
这是调用的 TechEvent 函数:TechEvent.as
public function TechEvent(type: String, bubbles:Boolean=true, cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
}
这是 dispatchEvent 方法: UIComponent.as
override public function dispatchEvent(event:Event):Boolean
{
if (dispatchEventHook != null)
dispatchEventHook(event, this);
return super.dispatchEvent(event);
}